>lively.ast.JSSyntaxHighlighter in http://lively-kernel.org/repository/webwerkstatt/core/lively/ast/IDESupport.js","draggingEnabled":true,"_Scale":0.8633870270132896,"eventHandler":{"__isSmartRef__":true,"id":5130},"attributeConnections":[{"__isSmartRef__":true,"id":5131}],"doNotSerialize":["$$savedWorldAsURL","$$baseThemeStyleSheet"],"doNotCopyProperties":["$$savedWorldAsURL"],"savedWorldAsURL":{"__isSmartRef__":true,"id":5133},"clickedOnMorphTime":1391551219373,"worldMenuOpened":true,"_ClipMode":"visible","loadingMorph":{"__isSmartRef__":true,"id":5134},"lastModified":{"__isSmartRef__":true,"id":5262},"prevScroll":[0,0],"_Scroll":[0,0],"_StyleSheet":{"__isSmartRef__":true,"id":5263},"lastEvt":{"__isSmartRef__":true,"id":5268},"eventStartPos":null,"__serializedExpressions__":["_Position","pastePositionInWorld","scrollOffset"],"__LivelyClassName__":"lively.morphic.World","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","pastePositionInWorld":"lively.pt(1918.0,877.0)","scrollOffset":"lively.pt(0.0,0.0)"},"1":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":3}],"eventHandler":{"__isSmartRef__":true,"id":5},"_ClipMode":"auto","derivationIds":["C046F47F-9E24-42B1-99BF-88E96E5D7590","487EE992-C691-461A-8865-21790F55C097"],"id":"24AABBA7-4E06-404F-BB7B-5C2993F05FCD","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"draggingEnabled":false,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":true,"_HandStyle":null,"allowInput":true,"_FontFamily":"Monaco,monospace","_FontSize":6,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":0},"layout":{"__isSmartRef__":true,"id":6},"syntaxHighlightingWhileTyping":false,"accessibleInInactiveWindow":true,"parseErrors":null,"_lastSyntaxHighlightTime":4,"showsHalos":false,"name":"Log","lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_TextColor","_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(2228.9,444.8)","distanceToDragEvent":"lively.pt(591.6,-15.2)"},"2":{"_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(706.6,175.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(243,243,243)"},"3":{"style":{"__isSmartRef__":true,"id":4},"chunkOwner":{"__isSmartRef__":true,"id":1},"_id":"_1454","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5":{"morph":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6":{"resizeWidth":true,"resizeHeight":true},"7":{"submorphs":[{"__isSmartRef__":true,"id":8},{"__isSmartRef__":true,"id":42},{"__isSmartRef__":true,"id":203},{"__isSmartRef__":true,"id":224},{"__isSmartRef__":true,"id":385},{"__isSmartRef__":true,"id":4816},{"__isSmartRef__":true,"id":4834}],"scripts":[],"id":"DEF77197-682C-45E2-BA5D-B8C900134F7C","shape":{"__isSmartRef__":true,"id":4839},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"PartMigrator","partsBinMetaInfo":{"__isSmartRef__":true,"id":4840},"eventHandler":{"__isSmartRef__":true,"id":4880},"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","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","16ECF252-8162-4A3F-8D4F-F043369BEA91"],"partTests":{"__isSmartRef__":true,"id":4881},"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":0},"isBeingDragged":false,"prevScroll":[0,0],"#startLetters":"getMorph","target":{"__isSmartRef__":true,"id":689},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4886},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(2950.0,446.4)","distanceToDragEvent":"lively.pt(166.8,-7.4)"},"8":{"submorphs":[{"__isSmartRef__":true,"id":9}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14},"eventHandler":{"__isSmartRef__":true,"id":15},"_ClipMode":"visible","derivationIds":["EC7EBB28-54AE-4244-80ED-3E13650F82B7","9FD2DCE2-B997-4536-B2A5-90D7DD92B3E6","0D8CC908-BD1C-4062-BB03-3FCEB910483D","92B4ADA9-C51B-41E6-A24A-65BEECC7E878"],"id":"C617EC04-89AB-4FA0-A477-56924F39C7D4","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":9},"_PreviousBorderWidth":1,"isPressed":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":16},{"__isSmartRef__":true,"id":18}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"name":"Button2","partsBinMetaInfo":{"__isSmartRef__":true,"id":20},"pinSpecs":[{"__isSmartRef__":true,"id":36}],"owner":{"__isSmartRef__":true,"id":7},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":37},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(12.4,8.4)","distanceToDragEvent":"lively.pt(72.9,-12.8)"},"9":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":11}],"eventHandler":{"__isSmartRef__":true,"id":13},"_ClipMode":"hidden","derivationIds":["7884E73F-0D17-44B3-907F-44A5223F1F3D","444B63A6-D9E7-4AB2-AB57-4A9146C18BFF","08999E10-CCC3-4CAB-99BC-4EF500309EC4","CBE6DD96-208B-4DF1-8A59-C8DF251D028E"],"id":"4DD6B666-CF93-41BD-9A61-56175090B414","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":8},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"showsHalos":false,"eventsAreDisabled":true,"_PointerEvents":"none","lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"__serializedExpressions__":["_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"10":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,20.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"11":{"style":{"__isSmartRef__":true,"id":12},"chunkOwner":{"__isSmartRef__":true,"id":9},"_id":"_126235","storedString":"migrate parts","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13":{"morph":{"__isSmartRef__":true,"id":9},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14":{"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,20.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"15":{"morph":{"__isSmartRef__":true,"id":8},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16":{"sourceObj":{"__isSmartRef__":true,"id":8},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":8},"targetMethodName":"doAction","varMapping":{"__isSmartRef__":true,"id":17},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17":{"source":{"__isSmartRef__":true,"id":8},"target":{"__isSmartRef__":true,"id":8}},"18":{"sourceObj":{"__isSmartRef__":true,"id":8},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":7},"targetMethodName":"migrateParts","varMapping":{"__isSmartRef__":true,"id":19},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"19":{"source":{"__isSmartRef__":true,"id":8},"target":{"__isSmartRef__":true,"id":7}},"20":{"partName":"Button","requiredModules":[],"partsSpaceName":"PartsBin/Inputs","comment":"A simple button that calls a method #doAction when pressed.","changes":[{"__isSmartRef__":true,"id":21},{"__isSmartRef__":true,"id":23},{"__isSmartRef__":true,"id":25},{"__isSmartRef__":true,"id":27},{"__isSmartRef__":true,"id":29},{"__isSmartRef__":true,"id":31},{"__isSmartRef__":true,"id":33}],"migrationLevel":7,"lastModifiedDate":{"__isSmartRef__":true,"id":35},"revisionOnLoad":203770,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21":{"author":null,"message":"no comment","id":"F8B70225-5143-4A51-ABB4-344B488B3811","date":{"__isSmartRef__":true,"id":22}},"22":{"isSerializedDate":true,"string":"Tue Dec 11 2012 22:15:42 GMT+0100 (CET)"},"23":{"author":"robertkrahn","message":"no comment","id":"9B8B6BE4-4519-4A6C-8F47-70DE61BBB0FB","date":{"__isSmartRef__":true,"id":24}},"24":{"isSerializedDate":true,"string":"Tue Dec 11 2012 22:53:16 GMT+0100 (CET)"},"25":{"author":"robertkrahn","message":"test","id":"ACA617B4-0416-4E3C-9F4D-171A40F44F0F","date":{"__isSmartRef__":true,"id":26}},"26":{"isSerializedDate":true,"string":"Wed May 01 2013 05:34:25 GMT+0200 (CEST)"},"27":{"author":"robertkrahn","message":"no comment","id":"811BDE87-D8DD-48BB-97B2-7A3C3F3FAE32","date":{"__isSmartRef__":true,"id":28}},"28":{"isSerializedDate":true,"string":"Wed May 01 2013 05:35:59 GMT+0200 (CEST)"},"29":{"author":"robertkrahn","message":"no comment","id":"BB2EA501-D9AF-414B-A035-E1487DA6F0FD","date":{"__isSmartRef__":true,"id":30}},"30":{"isSerializedDate":true,"string":"Wed May 01 2013 05:36:30 GMT+0200 (CEST)"},"31":{"author":"Dan","message":"no comment","id":"A594459F-DA9B-49DD-A105-547B3F613CC5","date":{"__isSmartRef__":true,"id":32}},"32":{"isSerializedDate":true,"string":"Mon Jun 17 2013 19:22:38 GMT+0200 (CEST)"},"33":{"author":"Dan","message":"no comment","id":"CFEC4071-14FF-4AEB-A399-197884CD18BF","date":{"__isSmartRef__":true,"id":34}},"34":{"isSerializedDate":true,"string":"Mon Jun 17 2013 19:24:50 GMT+0200 (CEST)"},"35":{"isSerializedDate":true,"string":"Thu Jan 16 2014 10:23:15 GMT+0100 (CET)"},"36":{"pinName":"fire","modality":"output","type":"Boolean","accessor":"fire","location":1.5},"37":{"doAction":{"__isSmartRef__":true,"id":38}},"38":{"varMapping":{"__isSmartRef__":true,"id":39},"source":"function doAction() {\n \n}","funcProperties":{"__isSmartRef__":true,"id":40},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"39":{"this":{"__isSmartRef__":true,"id":8}},"40":{"user":"undefined","tags":[],"timestamp":{"__isSmartRef__":true,"id":41}},"41":{"isSerializedDate":true,"string":"Tue Dec 11 2012 22:14:29 GMT+0100 (CET)"},"42":{"submorphs":[{"__isSmartRef__":true,"id":43},{"__isSmartRef__":true,"id":50}],"scripts":[],"id":"7CD5F8AD-655F-49C5-B224-BC6E440F121E","shape":{"__isSmartRef__":true,"id":53},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":59},"lighterFill":{"__isSmartRef__":true,"id":64},"label":{"__isSmartRef__":true,"id":43},"name":"MagnifierButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":69},"attributeConnections":[{"__isSmartRef__":true,"id":75}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":76},"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"],"_ClipMode":"visible","highlightRectangle":{"__isSmartRef__":true,"id":77},"isPressed":false,"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":153},"moved":true,"owner":{"__isSmartRef__":true,"id":7},"_Rotation":0,"_Scale":0.9920279440699439,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":154},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(178.7,33.4)","distanceToDragEvent":"lively.pt(51.4,-11.9)"},"43":{"submorphs":[],"scripts":[],"id":"40D42808-692A-42BC-9FE3-CD7C316DCF62","shape":{"__isSmartRef__":true,"id":44},"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":42},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":45},{"__isSmartRef__":true,"id":47}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":49},"_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"],"_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)"},"44":{"_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(47.9,24.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"45":{"style":{"__isSmartRef__":true,"id":46},"chunkOwner":{"__isSmartRef__":true,"id":43},"storedString":"","_id":"_1372","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"46":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"47":{"style":{"__isSmartRef__":true,"id":48},"chunkOwner":{"__isSmartRef__":true,"id":43},"storedString":"","_id":"_1373","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"48":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"49":{"morph":{"__isSmartRef__":true,"id":43},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"50":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":51},"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"],"id":"9F82016D-706B-4750-BDB3-DECDB082AFDD","eventHandler":{"__isSmartRef__":true,"id":52},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":42},"name":"leftpointing_magnifying_glass.png","isBeingDragged":false,"showsHalos":false,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-3.0,0.0)","distanceToDragEvent":"lively.pt(39.9,-9.0)"},"51":{"_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(29.0,29.0)","_Padding":"lively.rect(0,0,0,0)"},"52":{"morph":{"__isSmartRef__":true,"id":50},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"53":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":54},"_BorderRadius":5.2,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(47.9,24.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"54":{"stops":[{"__isSmartRef__":true,"id":55},{"__isSmartRef__":true,"id":56},{"__isSmartRef__":true,"id":57},{"__isSmartRef__":true,"id":58}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"55":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"56":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"57":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"58":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"59":{"stops":[{"__isSmartRef__":true,"id":60},{"__isSmartRef__":true,"id":61},{"__isSmartRef__":true,"id":62},{"__isSmartRef__":true,"id":63}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"60":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"61":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"62":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"63":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"64":{"stops":[{"__isSmartRef__":true,"id":65},{"__isSmartRef__":true,"id":66},{"__isSmartRef__":true,"id":67},{"__isSmartRef__":true,"id":68}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"65":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"66":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"67":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"68":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"69":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":4,"partName":"MagnifierButton","comment":"A magnifier, which calls setTarget: on the owner","changes":[{"__isSmartRef__":true,"id":70},{"__isSmartRef__":true,"id":72}],"revisionOnLoad":203770,"lastModifiedDate":{"__isSmartRef__":true,"id":74},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"70":{"date":{"__isSmartRef__":true,"id":71},"author":"jenslincke","message":"no comment","id":"F343C38F-1923-4DD3-BF9B-4A4B6A7111D6"},"71":{"isSerializedDate":true,"string":"Fri Feb 01 2013 15:51:27 GMT+0100 (CET)"},"72":{"date":{"__isSmartRef__":true,"id":73},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"73":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:10:10 GMT+0200 (CEST)"},"74":{"isSerializedDate":true,"string":"Thu Jan 16 2014 10:23:15 GMT+0100 (CET)"},"75":{"sourceObj":{"__isSmartRef__":true,"id":42},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":42},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"76":{"morph":{"__isSmartRef__":true,"id":42},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"77":{"submorphs":[],"scripts":[],"id":"364FF344-E489-461B-BC8C-ED45E4823ED4","shape":{"__isSmartRef__":true,"id":78},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"HighlightRectangle","partsBinMetaInfo":{"__isSmartRef__":true,"id":79},"eventHandler":{"__isSmartRef__":true,"id":120},"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":121},"_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":42},"attributeConnections":[{"__isSmartRef__":true,"id":126},{"__isSmartRef__":true,"id":128},{"__isSmartRef__":true,"id":130}],"isToolMorph":true,"isMetaTool":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":132},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(900.8,445.9)","distanceToDragEvent":"lively.pt(44.0,-14.0)"},"78":{"_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)"},"79":{"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":80},{"__isSmartRef__":true,"id":82},{"__isSmartRef__":true,"id":84},{"__isSmartRef__":true,"id":86},{"__isSmartRef__":true,"id":88},{"__isSmartRef__":true,"id":90},{"__isSmartRef__":true,"id":92},{"__isSmartRef__":true,"id":94},{"__isSmartRef__":true,"id":96},{"__isSmartRef__":true,"id":98},{"__isSmartRef__":true,"id":100},{"__isSmartRef__":true,"id":102},{"__isSmartRef__":true,"id":104},{"__isSmartRef__":true,"id":106},{"__isSmartRef__":true,"id":108},{"__isSmartRef__":true,"id":110},{"__isSmartRef__":true,"id":112},{"__isSmartRef__":true,"id":114},{"__isSmartRef__":true,"id":116},{"__isSmartRef__":true,"id":118}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"80":{"date":{"__isSmartRef__":true,"id":81},"author":"timfelgentreff","message":"no comment","id":"3DB7DB40-210A-4BED-91FD-9287005703EC"},"81":{"isSerializedDate":true,"string":"Thu May 24 2012 17:04:54 GMT+0200 (CEST)"},"82":{"date":{"__isSmartRef__":true,"id":83},"author":"tessi","message":"no comment","id":"23D7AA12-66A9-4C3B-B494-131256C291AC"},"83":{"isSerializedDate":true,"string":"Thu May 24 2012 16:57:13 GMT+0200 (CEST)"},"84":{"date":{"__isSmartRef__":true,"id":85},"author":"tessi","message":"no comment","id":"2C30B7CA-388F-4F51-B4CF-A2E50E381148"},"85":{"isSerializedDate":true,"string":"Thu May 24 2012 16:23:11 GMT+0200 (CEST)"},"86":{"date":{"__isSmartRef__":true,"id":87},"author":"tessi","message":"diable events","id":"7C1F71A3-FDAC-470A-B9A9-E1F2C9FEF18E"},"87":{"isSerializedDate":true,"string":"Thu May 24 2012 14:46:08 GMT+0200 (CEST)"},"88":{"date":{"__isSmartRef__":true,"id":89},"author":"tessi","message":"no comment","id":"01996A33-11BC-4C15-96D7-B7D219E2E961"},"89":{"isSerializedDate":true,"string":"Thu May 24 2012 14:39:50 GMT+0200 (CEST)"},"90":{"date":{"__isSmartRef__":true,"id":91},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"91":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"92":{"date":{"__isSmartRef__":true,"id":93},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"93":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"94":{"date":{"__isSmartRef__":true,"id":95},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"95":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"96":{"date":{"__isSmartRef__":true,"id":97},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"97":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"98":{"date":{"__isSmartRef__":true,"id":99},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"99":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"100":{"date":{"__isSmartRef__":true,"id":101},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"101":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"102":{"date":{"__isSmartRef__":true,"id":103},"author":"tessi","message":"no comment","id":"4B982A01-25B3-455A-848D-89C2C3C471D7"},"103":{"isSerializedDate":true,"string":"Thu May 24 2012 13:58:01 GMT+0200 (CEST)"},"104":{"date":{"__isSmartRef__":true,"id":105},"author":"tessi","message":"no comment","id":"2FD6CB7B-3BC7-4666-98B4-AACF1001954D"},"105":{"isSerializedDate":true,"string":"Thu May 24 2012 14:07:32 GMT+0200 (CEST)"},"106":{"date":{"__isSmartRef__":true,"id":107},"author":"tessi","message":"no comment","id":"09CF5ECF-2C87-4B66-A164-39848628596F"},"107":{"isSerializedDate":true,"string":"Thu May 24 2012 15:34:59 GMT+0200 (CEST)"},"108":{"date":{"__isSmartRef__":true,"id":109},"author":"tessi","message":"no comment","id":"252A3EB5-DB00-4CF9-BF38-2927DD1C5229"},"109":{"isSerializedDate":true,"string":"Thu May 24 2012 16:34:29 GMT+0200 (CEST)"},"110":{"date":{"__isSmartRef__":true,"id":111},"author":"tessi","message":"no comment","id":"81534551-62C1-4FC9-96CB-A5AC6642CA1E"},"111":{"isSerializedDate":true,"string":"Thu May 24 2012 16:45:49 GMT+0200 (CEST)"},"112":{"date":{"__isSmartRef__":true,"id":113},"author":"tessi","message":"no comment","id":"5125DE3A-D50E-4621-8490-F3A9D99C2C4C"},"113":{"isSerializedDate":true,"string":"Thu May 24 2012 16:47:20 GMT+0200 (CEST)"},"114":{"date":{"__isSmartRef__":true,"id":115},"author":"tessi","message":"no comment","id":"C81A2FBF-CB0B-4A0B-9D63-F9AEDFCB5DA6"},"115":{"isSerializedDate":true,"string":"Thu May 24 2012 16:51:06 GMT+0200 (CEST)"},"116":{"date":{"__isSmartRef__":true,"id":117},"author":"tessi","message":"no comment","id":"DC8EF5EC-7563-45B6-816D-20E2DC218525"},"117":{"isSerializedDate":true,"string":"Thu May 24 2012 16:52:10 GMT+0200 (CEST)"},"118":{"date":{"__isSmartRef__":true,"id":119},"author":"timfelgentreff","message":"no comment","id":"E7515DFB-DE7D-4E1F-A2C3-85166DCE4942"},"119":{"isSerializedDate":true,"string":"Thu May 24 2012 16:59:39 GMT+0200 (CEST)"},"120":{"morph":{"__isSmartRef__":true,"id":77},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"121":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":122}},"122":{"test01IsMorph":{"__isSmartRef__":true,"id":123}},"123":{"varMapping":{"__isSmartRef__":true,"id":124},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"124":{"this":{"__isSmartRef__":true,"id":121}},"125":{},"126":{"sourceObj":{"__isSmartRef__":true,"id":77},"sourceAttrName":"onMouseMove","targetObj":{"__isSmartRef__":true,"id":77},"targetMethodName":"updateOnMove","varMapping":{"__isSmartRef__":true,"id":127},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"127":{"source":{"__isSmartRef__":true,"id":77},"target":{"__isSmartRef__":true,"id":77}},"128":{"sourceObj":{"__isSmartRef__":true,"id":77},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":42},"targetMethodName":"removeHighlighting","varMapping":{"__isSmartRef__":true,"id":129},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"129":{"source":{"__isSmartRef__":true,"id":77},"target":{"__isSmartRef__":true,"id":42}},"130":{"sourceObj":{"__isSmartRef__":true,"id":77},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":42},"targetMethodName":"setTarget","varMapping":{"__isSmartRef__":true,"id":131},"converterString":"function () {\n return this.sourceObj.morphUnderCursor();\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"131":{"source":{"__isSmartRef__":true,"id":77},"target":{"__isSmartRef__":true,"id":42}},"132":{"update":{"__isSmartRef__":true,"id":133},"updateOnMove":{"__isSmartRef__":true,"id":137},"bringToFront":{"__isSmartRef__":true,"id":141},"morphUnderCursor":{"__isSmartRef__":true,"id":149}},"133":{"varMapping":{"__isSmartRef__":true,"id":134},"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":135},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"134":{"this":{"__isSmartRef__":true,"id":77}},"135":{"timestamp":{"__isSmartRef__":true,"id":136},"user":"lauritz","tags":[]},"136":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:29:58 GMT+0200 (CEST)"},"137":{"varMapping":{"__isSmartRef__":true,"id":138},"source":"function updateOnMove() {\n this.update(this.morphUnderCursor());\n this.bringToFront();\n}","funcProperties":{"__isSmartRef__":true,"id":139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"138":{"this":{"__isSmartRef__":true,"id":77}},"139":{"timestamp":{"__isSmartRef__":true,"id":140},"user":"lauritz","tags":[]},"140":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:18:33 GMT+0200 (CEST)"},"141":{"varMapping":{"__isSmartRef__":true,"id":142},"source":"function bringToFront() {\n this.renderContext().morphNode.style.zIndex= 1000;\n}","funcProperties":{"__isSmartRef__":true,"id":147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"142":{"this":{"__isSmartRef__":true,"id":77},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":143}},"143":{"$super":{"__isSmartRef__":true,"id":144}},"144":{"varMapping":{"__isSmartRef__":true,"id":145},"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":146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"145":{"obj":{"__isSmartRef__":true,"id":77},"name":"bringToFront"},"146":{},"147":{"timestamp":{"__isSmartRef__":true,"id":148},"user":"lauritz","tags":[]},"148":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:12:09 GMT+0200 (CEST)"},"149":{"varMapping":{"__isSmartRef__":true,"id":150},"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":151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"150":{"this":{"__isSmartRef__":true,"id":77}},"151":{"timestamp":{"__isSmartRef__":true,"id":152},"user":"lauritz","tags":[]},"152":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:18:36 GMT+0200 (CEST)"},"153":{"moveHorizontal":true},"154":{"onFire":{"__isSmartRef__":true,"id":155},"removeHighlighting":{"__isSmartRef__":true,"id":159},"onMouseMove":{"__isSmartRef__":true,"id":163},"onMouseOut":{"__isSmartRef__":true,"id":171},"reset":{"__isSmartRef__":true,"id":179},"isTracking":{"__isSmartRef__":true,"id":183},"isHighlighting":{"__isSmartRef__":true,"id":187},"currentTarget":{"__isSmartRef__":true,"id":191},"setupHighlightRectangle":{"__isSmartRef__":true,"id":195},"setTarget":{"__isSmartRef__":true,"id":199}},"155":{"varMapping":{"__isSmartRef__":true,"id":156},"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":157},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"156":{"this":{"__isSmartRef__":true,"id":42}},"157":{"timestamp":{"__isSmartRef__":true,"id":158},"user":"lauritz","tags":[]},"158":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:40:51 GMT+0200 (CEST)"},"159":{"varMapping":{"__isSmartRef__":true,"id":160},"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":161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"160":{"this":{"__isSmartRef__":true,"id":42}},"161":{"timestamp":{"__isSmartRef__":true,"id":162},"user":"jenslincke","tags":[]},"162":{"isSerializedDate":true,"string":"Tue Dec 18 2012 12:54:24 GMT+0100 (CET)"},"163":{"varMapping":{"__isSmartRef__":true,"id":164},"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":169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"164":{"this":{"__isSmartRef__":true,"id":42},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":165}},"165":{"$super":{"__isSmartRef__":true,"id":166}},"166":{"varMapping":{"__isSmartRef__":true,"id":167},"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":168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"167":{"obj":{"__isSmartRef__":true,"id":42},"name":"onMouseMove"},"168":{},"169":{"timestamp":{"__isSmartRef__":true,"id":170},"user":"lauritz","tags":[]},"170":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:25:52 GMT+0200 (CEST)"},"171":{"varMapping":{"__isSmartRef__":true,"id":172},"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":177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"172":{"this":{"__isSmartRef__":true,"id":42},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":173}},"173":{"$super":{"__isSmartRef__":true,"id":174}},"174":{"varMapping":{"__isSmartRef__":true,"id":175},"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":176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"175":{"obj":{"__isSmartRef__":true,"id":42},"name":"onMouseOut"},"176":{},"177":{"timestamp":{"__isSmartRef__":true,"id":178},"user":"lauritz","tags":[]},"178":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:21:57 GMT+0200 (CEST)"},"179":{"varMapping":{"__isSmartRef__":true,"id":180},"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":181},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"180":{"this":{"__isSmartRef__":true,"id":42}},"181":{"timestamp":{"__isSmartRef__":true,"id":182},"user":"jenslincke","tags":[]},"182":{"isSerializedDate":true,"string":"Mon Dec 17 2012 17:02:31 GMT+0100 (CET)"},"183":{"varMapping":{"__isSmartRef__":true,"id":184},"source":"function isTracking() {\n return !!this.world().firstHand().highlightConnection;\n}","funcProperties":{"__isSmartRef__":true,"id":185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"184":{"this":{"__isSmartRef__":true,"id":42}},"185":{"timestamp":{"__isSmartRef__":true,"id":186},"user":"lauritz","tags":[]},"186":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:11:25 GMT+0200 (CEST)"},"187":{"varMapping":{"__isSmartRef__":true,"id":188},"source":"function isHighlighting() {\n return !!this.targetHighlight;\n}","funcProperties":{"__isSmartRef__":true,"id":189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"188":{"this":{"__isSmartRef__":true,"id":42}},"189":{"timestamp":{"__isSmartRef__":true,"id":190},"user":"lauritz","tags":[]},"190":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:11:22 GMT+0200 (CEST)"},"191":{"varMapping":{"__isSmartRef__":true,"id":192},"source":"function currentTarget() {\n return this.owner.target;\n}","funcProperties":{"__isSmartRef__":true,"id":193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"192":{"this":{"__isSmartRef__":true,"id":42}},"193":{"timestamp":{"__isSmartRef__":true,"id":194},"user":"lauritz","tags":[]},"194":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:26:02 GMT+0200 (CEST)"},"195":{"varMapping":{"__isSmartRef__":true,"id":196},"source":"function setupHighlightRectangle() {\n \n}","funcProperties":{"__isSmartRef__":true,"id":197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"196":{"this":{"__isSmartRef__":true,"id":42}},"197":{"timestamp":{"__isSmartRef__":true,"id":198},"user":"jenslincke","tags":[]},"198":{"isSerializedDate":true,"string":"Thu Dec 13 2012 10:26:03 GMT+0100 (CET)"},"199":{"varMapping":{"__isSmartRef__":true,"id":200},"source":"function setTarget(obj) {\n this.owner.setTarget(obj)\n}","funcProperties":{"__isSmartRef__":true,"id":201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"200":{"this":{"__isSmartRef__":true,"id":42}},"201":{"timestamp":{"__isSmartRef__":true,"id":202},"user":"jenslincke","tags":[]},"202":{"isSerializedDate":true,"string":"Thu Dec 13 2012 10:27:04 GMT+0100 (CET)"},"203":{"submorphs":[],"scripts":[],"id":"C9B1F8DD-2DCC-4042-A04A-3B8BBB7BCEC8","shape":{"__isSmartRef__":true,"id":204},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"TargetNameText","partsBinMetaInfo":{"__isSmartRef__":true,"id":205},"textChunks":[{"__isSmartRef__":true,"id":221}],"charsReplaced":"foo!?","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":223},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":7},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(11.3,30.6)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(89.7,-9.1)"},"204":{"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(198.3,26.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"205":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":206},{"__isSmartRef__":true,"id":208},{"__isSmartRef__":true,"id":210},{"__isSmartRef__":true,"id":212},{"__isSmartRef__":true,"id":214},{"__isSmartRef__":true,"id":216},{"__isSmartRef__":true,"id":218}],"lastModifiedDate":{"__isSmartRef__":true,"id":220},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"206":{"date":{"__isSmartRef__":true,"id":207},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"207":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"208":{"date":{"__isSmartRef__":true,"id":209},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"209":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"210":{"date":{"__isSmartRef__":true,"id":211},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"211":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"212":{"date":{"__isSmartRef__":true,"id":213},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"213":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"214":{"date":{"__isSmartRef__":true,"id":215},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"215":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"216":{"date":{"__isSmartRef__":true,"id":217},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"217":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"218":{"date":{"__isSmartRef__":true,"id":219},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"219":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"220":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"221":{"style":{"__isSmartRef__":true,"id":222},"chunkOwner":{"__isSmartRef__":true,"id":203},"_id":"_585120","storedString":"EnergySimulation","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"222":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"223":{"morph":{"__isSmartRef__":true,"id":203},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"224":{"submorphs":[{"__isSmartRef__":true,"id":225},{"__isSmartRef__":true,"id":232}],"scripts":[],"id":"0CC5DD41-B530-4F7C-ABD3-C4514D9773F8","shape":{"__isSmartRef__":true,"id":235},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":241},"lighterFill":{"__isSmartRef__":true,"id":246},"label":{"__isSmartRef__":true,"id":225},"name":"MagnifierButton1","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":251},"attributeConnections":[{"__isSmartRef__":true,"id":257}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":258},"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","7CD5F8AD-655F-49C5-B224-BC6E440F121E"],"_ClipMode":"visible","highlightRectangle":{"__isSmartRef__":true,"id":259},"isPressed":false,"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":335},"moved":true,"owner":{"__isSmartRef__":true,"id":7},"_Rotation":0,"_Scale":0.9920279440699439,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":336},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(13.4,69.7)","distanceToDragEvent":"lively.pt(34.3,-17.0)"},"225":{"submorphs":[],"scripts":[],"id":"8E5C5AEB-9BC1-403D-A518-864227AB962D","shape":{"__isSmartRef__":true,"id":226},"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":224},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":227},{"__isSmartRef__":true,"id":229}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":231},"_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","40D42808-692A-42BC-9FE3-CD7C316DCF62"],"_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)"},"226":{"_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(50.0,26.1)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"227":{"style":{"__isSmartRef__":true,"id":228},"chunkOwner":{"__isSmartRef__":true,"id":225},"storedString":"","_id":"_1372","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"228":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"229":{"style":{"__isSmartRef__":true,"id":230},"chunkOwner":{"__isSmartRef__":true,"id":225},"storedString":"","_id":"_1373","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"230":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"231":{"morph":{"__isSmartRef__":true,"id":225},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"232":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":233},"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","9F82016D-706B-4750-BDB3-DECDB082AFDD"],"id":"0E4A16BA-BF95-496F-9F50-EDA5E18E1F5D","eventHandler":{"__isSmartRef__":true,"id":234},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":224},"name":"leftpointing_magnifying_glass.png","isBeingDragged":false,"showsHalos":false,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-3.0,0.0)","distanceToDragEvent":"lively.pt(39.9,-9.0)"},"233":{"_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(29.0,29.0)","_Padding":"lively.rect(0,0,0,0)"},"234":{"morph":{"__isSmartRef__":true,"id":232},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"235":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":236},"_BorderRadius":5.2,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(50.0,26.1)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"236":{"stops":[{"__isSmartRef__":true,"id":237},{"__isSmartRef__":true,"id":238},{"__isSmartRef__":true,"id":239},{"__isSmartRef__":true,"id":240}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"237":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"238":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"239":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"240":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"241":{"stops":[{"__isSmartRef__":true,"id":242},{"__isSmartRef__":true,"id":243},{"__isSmartRef__":true,"id":244},{"__isSmartRef__":true,"id":245}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"242":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"243":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"244":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"245":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"246":{"stops":[{"__isSmartRef__":true,"id":247},{"__isSmartRef__":true,"id":248},{"__isSmartRef__":true,"id":249},{"__isSmartRef__":true,"id":250}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"247":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"248":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"249":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"250":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"251":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":4,"partName":"MagnifierButton","comment":"A magnifier, which calls setTarget: on the owner","changes":[{"__isSmartRef__":true,"id":252},{"__isSmartRef__":true,"id":254}],"revisionOnLoad":203770,"lastModifiedDate":{"__isSmartRef__":true,"id":256},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"252":{"date":{"__isSmartRef__":true,"id":253},"author":"jenslincke","message":"no comment","id":"F343C38F-1923-4DD3-BF9B-4A4B6A7111D6"},"253":{"isSerializedDate":true,"string":"Fri Feb 01 2013 15:51:27 GMT+0100 (CET)"},"254":{"date":{"__isSmartRef__":true,"id":255},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"255":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:10:10 GMT+0200 (CEST)"},"256":{"isSerializedDate":true,"string":"Thu Jan 16 2014 10:23:15 GMT+0100 (CET)"},"257":{"sourceObj":{"__isSmartRef__":true,"id":224},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":224},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"258":{"morph":{"__isSmartRef__":true,"id":224},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"259":{"submorphs":[],"scripts":[],"id":"364FF344-E489-461B-BC8C-ED45E4823ED4","shape":{"__isSmartRef__":true,"id":260},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"HighlightRectangle","partsBinMetaInfo":{"__isSmartRef__":true,"id":261},"eventHandler":{"__isSmartRef__":true,"id":302},"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":303},"_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":224},"attributeConnections":[{"__isSmartRef__":true,"id":308},{"__isSmartRef__":true,"id":310},{"__isSmartRef__":true,"id":312}],"isToolMorph":true,"isMetaTool":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":314},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(44.0,-14.0)"},"260":{"_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(6800.0,6900.0)","_BorderColor":"Color.rgb(204,0,0)","_Fill":"Color.rgb(58,0,255)","_Padding":"lively.rect(0,0,0,0)"},"261":{"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":262},{"__isSmartRef__":true,"id":264},{"__isSmartRef__":true,"id":266},{"__isSmartRef__":true,"id":268},{"__isSmartRef__":true,"id":270},{"__isSmartRef__":true,"id":272},{"__isSmartRef__":true,"id":274},{"__isSmartRef__":true,"id":276},{"__isSmartRef__":true,"id":278},{"__isSmartRef__":true,"id":280},{"__isSmartRef__":true,"id":282},{"__isSmartRef__":true,"id":284},{"__isSmartRef__":true,"id":286},{"__isSmartRef__":true,"id":288},{"__isSmartRef__":true,"id":290},{"__isSmartRef__":true,"id":292},{"__isSmartRef__":true,"id":294},{"__isSmartRef__":true,"id":296},{"__isSmartRef__":true,"id":298},{"__isSmartRef__":true,"id":300}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"262":{"date":{"__isSmartRef__":true,"id":263},"author":"timfelgentreff","message":"no comment","id":"3DB7DB40-210A-4BED-91FD-9287005703EC"},"263":{"isSerializedDate":true,"string":"Thu May 24 2012 17:04:54 GMT+0200 (CEST)"},"264":{"date":{"__isSmartRef__":true,"id":265},"author":"tessi","message":"no comment","id":"23D7AA12-66A9-4C3B-B494-131256C291AC"},"265":{"isSerializedDate":true,"string":"Thu May 24 2012 16:57:13 GMT+0200 (CEST)"},"266":{"date":{"__isSmartRef__":true,"id":267},"author":"tessi","message":"no comment","id":"2C30B7CA-388F-4F51-B4CF-A2E50E381148"},"267":{"isSerializedDate":true,"string":"Thu May 24 2012 16:23:11 GMT+0200 (CEST)"},"268":{"date":{"__isSmartRef__":true,"id":269},"author":"tessi","message":"diable events","id":"7C1F71A3-FDAC-470A-B9A9-E1F2C9FEF18E"},"269":{"isSerializedDate":true,"string":"Thu May 24 2012 14:46:08 GMT+0200 (CEST)"},"270":{"date":{"__isSmartRef__":true,"id":271},"author":"tessi","message":"no comment","id":"01996A33-11BC-4C15-96D7-B7D219E2E961"},"271":{"isSerializedDate":true,"string":"Thu May 24 2012 14:39:50 GMT+0200 (CEST)"},"272":{"date":{"__isSmartRef__":true,"id":273},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"273":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"274":{"date":{"__isSmartRef__":true,"id":275},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"275":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"276":{"date":{"__isSmartRef__":true,"id":277},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"277":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"278":{"date":{"__isSmartRef__":true,"id":279},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"279":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"280":{"date":{"__isSmartRef__":true,"id":281},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"281":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"282":{"date":{"__isSmartRef__":true,"id":283},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"283":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"284":{"date":{"__isSmartRef__":true,"id":285},"author":"tessi","message":"no comment","id":"4B982A01-25B3-455A-848D-89C2C3C471D7"},"285":{"isSerializedDate":true,"string":"Thu May 24 2012 13:58:01 GMT+0200 (CEST)"},"286":{"date":{"__isSmartRef__":true,"id":287},"author":"tessi","message":"no comment","id":"2FD6CB7B-3BC7-4666-98B4-AACF1001954D"},"287":{"isSerializedDate":true,"string":"Thu May 24 2012 14:07:32 GMT+0200 (CEST)"},"288":{"date":{"__isSmartRef__":true,"id":289},"author":"tessi","message":"no comment","id":"09CF5ECF-2C87-4B66-A164-39848628596F"},"289":{"isSerializedDate":true,"string":"Thu May 24 2012 15:34:59 GMT+0200 (CEST)"},"290":{"date":{"__isSmartRef__":true,"id":291},"author":"tessi","message":"no comment","id":"252A3EB5-DB00-4CF9-BF38-2927DD1C5229"},"291":{"isSerializedDate":true,"string":"Thu May 24 2012 16:34:29 GMT+0200 (CEST)"},"292":{"date":{"__isSmartRef__":true,"id":293},"author":"tessi","message":"no comment","id":"81534551-62C1-4FC9-96CB-A5AC6642CA1E"},"293":{"isSerializedDate":true,"string":"Thu May 24 2012 16:45:49 GMT+0200 (CEST)"},"294":{"date":{"__isSmartRef__":true,"id":295},"author":"tessi","message":"no comment","id":"5125DE3A-D50E-4621-8490-F3A9D99C2C4C"},"295":{"isSerializedDate":true,"string":"Thu May 24 2012 16:47:20 GMT+0200 (CEST)"},"296":{"date":{"__isSmartRef__":true,"id":297},"author":"tessi","message":"no comment","id":"C81A2FBF-CB0B-4A0B-9D63-F9AEDFCB5DA6"},"297":{"isSerializedDate":true,"string":"Thu May 24 2012 16:51:06 GMT+0200 (CEST)"},"298":{"date":{"__isSmartRef__":true,"id":299},"author":"tessi","message":"no comment","id":"DC8EF5EC-7563-45B6-816D-20E2DC218525"},"299":{"isSerializedDate":true,"string":"Thu May 24 2012 16:52:10 GMT+0200 (CEST)"},"300":{"date":{"__isSmartRef__":true,"id":301},"author":"timfelgentreff","message":"no comment","id":"E7515DFB-DE7D-4E1F-A2C3-85166DCE4942"},"301":{"isSerializedDate":true,"string":"Thu May 24 2012 16:59:39 GMT+0200 (CEST)"},"302":{"morph":{"__isSmartRef__":true,"id":259},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"303":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":304}},"304":{"test01IsMorph":{"__isSmartRef__":true,"id":305}},"305":{"varMapping":{"__isSmartRef__":true,"id":306},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"306":{"this":{"__isSmartRef__":true,"id":303}},"307":{},"308":{"sourceObj":{"__isSmartRef__":true,"id":259},"sourceAttrName":"onMouseMove","targetObj":{"__isSmartRef__":true,"id":259},"targetMethodName":"updateOnMove","varMapping":{"__isSmartRef__":true,"id":309},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"309":{"source":{"__isSmartRef__":true,"id":259},"target":{"__isSmartRef__":true,"id":259}},"310":{"sourceObj":{"__isSmartRef__":true,"id":259},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":224},"targetMethodName":"removeHighlighting","varMapping":{"__isSmartRef__":true,"id":311},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"311":{"source":{"__isSmartRef__":true,"id":259},"target":{"__isSmartRef__":true,"id":224}},"312":{"sourceObj":{"__isSmartRef__":true,"id":259},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":224},"targetMethodName":"setTarget","varMapping":{"__isSmartRef__":true,"id":313},"converterString":"function () {\n return this.sourceObj.morphUnderCursor();\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"313":{"source":{"__isSmartRef__":true,"id":259},"target":{"__isSmartRef__":true,"id":224}},"314":{"update":{"__isSmartRef__":true,"id":315},"updateOnMove":{"__isSmartRef__":true,"id":319},"bringToFront":{"__isSmartRef__":true,"id":323},"morphUnderCursor":{"__isSmartRef__":true,"id":331}},"315":{"varMapping":{"__isSmartRef__":true,"id":316},"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":317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"316":{"this":{"__isSmartRef__":true,"id":259}},"317":{"timestamp":{"__isSmartRef__":true,"id":318},"user":"lauritz","tags":[]},"318":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:29:58 GMT+0200 (CEST)"},"319":{"varMapping":{"__isSmartRef__":true,"id":320},"source":"function updateOnMove() {\n this.update(this.morphUnderCursor());\n this.bringToFront();\n}","funcProperties":{"__isSmartRef__":true,"id":321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"320":{"this":{"__isSmartRef__":true,"id":259}},"321":{"timestamp":{"__isSmartRef__":true,"id":322},"user":"lauritz","tags":[]},"322":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:18:33 GMT+0200 (CEST)"},"323":{"varMapping":{"__isSmartRef__":true,"id":324},"source":"function bringToFront() {\n this.renderContext().morphNode.style.zIndex= 1000;\n}","funcProperties":{"__isSmartRef__":true,"id":329},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"324":{"this":{"__isSmartRef__":true,"id":259},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":325}},"325":{"$super":{"__isSmartRef__":true,"id":326}},"326":{"varMapping":{"__isSmartRef__":true,"id":327},"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":328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"327":{"obj":{"__isSmartRef__":true,"id":259},"name":"bringToFront"},"328":{},"329":{"timestamp":{"__isSmartRef__":true,"id":330},"user":"lauritz","tags":[]},"330":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:12:09 GMT+0200 (CEST)"},"331":{"varMapping":{"__isSmartRef__":true,"id":332},"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":333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"332":{"this":{"__isSmartRef__":true,"id":259}},"333":{"timestamp":{"__isSmartRef__":true,"id":334},"user":"lauritz","tags":[]},"334":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:18:36 GMT+0200 (CEST)"},"335":{"moveHorizontal":true},"336":{"onFire":{"__isSmartRef__":true,"id":337},"removeHighlighting":{"__isSmartRef__":true,"id":341},"onMouseMove":{"__isSmartRef__":true,"id":345},"onMouseOut":{"__isSmartRef__":true,"id":353},"reset":{"__isSmartRef__":true,"id":361},"isTracking":{"__isSmartRef__":true,"id":365},"isHighlighting":{"__isSmartRef__":true,"id":369},"currentTarget":{"__isSmartRef__":true,"id":373},"setupHighlightRectangle":{"__isSmartRef__":true,"id":377},"setTarget":{"__isSmartRef__":true,"id":381}},"337":{"varMapping":{"__isSmartRef__":true,"id":338},"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":339},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"338":{"this":{"__isSmartRef__":true,"id":224}},"339":{"timestamp":{"__isSmartRef__":true,"id":340},"user":"lauritz","tags":[]},"340":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:40:51 GMT+0200 (CEST)"},"341":{"varMapping":{"__isSmartRef__":true,"id":342},"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":343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"342":{"this":{"__isSmartRef__":true,"id":224}},"343":{"timestamp":{"__isSmartRef__":true,"id":344},"user":"jenslincke","tags":[]},"344":{"isSerializedDate":true,"string":"Tue Dec 18 2012 12:54:24 GMT+0100 (CET)"},"345":{"varMapping":{"__isSmartRef__":true,"id":346},"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":351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"346":{"this":{"__isSmartRef__":true,"id":224},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":347}},"347":{"$super":{"__isSmartRef__":true,"id":348}},"348":{"varMapping":{"__isSmartRef__":true,"id":349},"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":350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"349":{"obj":{"__isSmartRef__":true,"id":224},"name":"onMouseMove"},"350":{},"351":{"timestamp":{"__isSmartRef__":true,"id":352},"user":"lauritz","tags":[]},"352":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:25:52 GMT+0200 (CEST)"},"353":{"varMapping":{"__isSmartRef__":true,"id":354},"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":359},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"354":{"this":{"__isSmartRef__":true,"id":224},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":355}},"355":{"$super":{"__isSmartRef__":true,"id":356}},"356":{"varMapping":{"__isSmartRef__":true,"id":357},"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":358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"357":{"obj":{"__isSmartRef__":true,"id":224},"name":"onMouseOut"},"358":{},"359":{"timestamp":{"__isSmartRef__":true,"id":360},"user":"lauritz","tags":[]},"360":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:21:57 GMT+0200 (CEST)"},"361":{"varMapping":{"__isSmartRef__":true,"id":362},"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":363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"362":{"this":{"__isSmartRef__":true,"id":224}},"363":{"timestamp":{"__isSmartRef__":true,"id":364},"user":"jenslincke","tags":[]},"364":{"isSerializedDate":true,"string":"Mon Dec 17 2012 17:02:31 GMT+0100 (CET)"},"365":{"varMapping":{"__isSmartRef__":true,"id":366},"source":"function isTracking() {\n return !!this.world().firstHand().highlightConnection;\n}","funcProperties":{"__isSmartRef__":true,"id":367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"366":{"this":{"__isSmartRef__":true,"id":224}},"367":{"timestamp":{"__isSmartRef__":true,"id":368},"user":"lauritz","tags":[]},"368":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:11:25 GMT+0200 (CEST)"},"369":{"varMapping":{"__isSmartRef__":true,"id":370},"source":"function isHighlighting() {\n return !!this.targetHighlight;\n}","funcProperties":{"__isSmartRef__":true,"id":371},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"370":{"this":{"__isSmartRef__":true,"id":224}},"371":{"timestamp":{"__isSmartRef__":true,"id":372},"user":"lauritz","tags":[]},"372":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:11:22 GMT+0200 (CEST)"},"373":{"varMapping":{"__isSmartRef__":true,"id":374},"source":"function currentTarget() {\n return this.get(\"PrototypeList\").selection;\n}","funcProperties":{"__isSmartRef__":true,"id":375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"374":{"this":{"__isSmartRef__":true,"id":224}},"375":{"timestamp":{"__isSmartRef__":true,"id":376},"user":"jenslincke","tags":[]},"376":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:52:36 GMT+0100 (CET)"},"377":{"varMapping":{"__isSmartRef__":true,"id":378},"source":"function setupHighlightRectangle() {\n \n}","funcProperties":{"__isSmartRef__":true,"id":379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"378":{"this":{"__isSmartRef__":true,"id":224}},"379":{"timestamp":{"__isSmartRef__":true,"id":380},"user":"jenslincke","tags":[]},"380":{"isSerializedDate":true,"string":"Thu Dec 13 2012 10:26:03 GMT+0100 (CET)"},"381":{"varMapping":{"__isSmartRef__":true,"id":382},"source":"function setTarget(obj) {\n this.owner.addPrototype(obj)\n}","funcProperties":{"__isSmartRef__":true,"id":383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"382":{"this":{"__isSmartRef__":true,"id":224}},"383":{"timestamp":{"__isSmartRef__":true,"id":384},"user":"jenslincke","tags":[]},"384":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:35:50 GMT+0100 (CET)"},"385":{"submorphs":[],"scripts":[],"id":"E9402211-B017-4CC4-AD38-DF9AB1096376","shape":{"__isSmartRef__":true,"id":386},"__layered_droppingEnabled__":true,"halosEnabled":true,"itemList":[{"__isSmartRef__":true,"id":387}],"selection":{"__isSmartRef__":true,"id":4513},"selectedLineNo":0,"showsHalos":false,"name":"PrototypeList","partsBinMetaInfo":{"__isSmartRef__":true,"id":4800},"_ClipMode":"auto","eventHandler":{"__isSmartRef__":true,"id":4810},"derivationIds":[2860,"30186701-49A1-49AD-A42F-27F425D92029","ADD09343-51ED-44F6-85F3-257C9A52C897","0D7DB4CE-A90C-4840-B374-BE2E6C15EA9F"],"isBeingDragged":false,"changeTriggered":true,"grabbingEnabled":false,"_FontSize":10,"moved":true,"owner":{"__isSmartRef__":true,"id":7},"#startLetters":"ge","_Rotation":0,"_Scale":1,"prevScroll":[0,0],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4811},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(72.8,70.9)"},"386":{"_BorderWidth":0,"__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(151.4,97.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"387":{"string":"EnergySimulationPart","value":{"__isSmartRef__":true,"id":388},"isListItem":true},"388":{"submorphs":[{"__isSmartRef__":true,"id":389},{"__isSmartRef__":true,"id":413},{"__isSmartRef__":true,"id":560},{"__isSmartRef__":true,"id":582}],"scripts":[],"id":"13370CD2-1232-4E30-9AB6-D43A7241AB79","shape":{"__isSmartRef__":true,"id":606},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":607},"eventHandler":{"__isSmartRef__":true,"id":667},"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","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","5E21C7BB-A7E2-498E-858F-032DCC55A4FC","2072AEFD-449A-4F4E-B8A5-9A6C57DEBB4B","8013D903-1809-4244-AABF-4DF28A1844DB","00F3C15D-F47A-44A0-8AD1-817E6DA58255","6A96318B-D7CD-48E2-913D-29CB6897E3B7","B2263E54-BA2B-4C60-B8A1-92637C28EA08","64C5A21D-7106-40F1-A881-4B19EEF4534D","558820C1-7325-4652-A6CF-33B25DBDDE22","BCDFBF89-EC99-457D-A530-78EE6AA50603","BB62D9DB-5F5D-46D1-B13F-ECC2CFA93FFA"],"partTests":{"__isSmartRef__":true,"id":668},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":673},{"__isSmartRef__":true,"id":674},{"__isSmartRef__":true,"id":675},{"__isSmartRef__":true,"id":676},{"__isSmartRef__":true,"id":677},{"__isSmartRef__":true,"id":678},{"__isSmartRef__":true,"id":679},{"__isSmartRef__":true,"id":680}],"prevScroll":[0,0],"isEnergySimulationPart":true,"layout":{"__isSmartRef__":true,"id":681},"$":{"__isSmartRef__":true,"id":682},"name":"HeatingSystem","attributeConnections":[{"__isSmartRef__":true,"id":683}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"units":{"__isSmartRef__":true,"id":685},"scriptAnalysis":{"__isSmartRef__":true,"id":686},"owner":{"__isSmartRef__":true,"id":689},"lastNameReference":null,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4441},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(386.6,-15.1)","_Position":"lively.pt(310.8,4.5)"},"389":{"submorphs":[],"scripts":[],"id":"A112085C-FDC7-48D5-A582-CD39CA4E9117","shape":{"__isSmartRef__":true,"id":390},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":391},"textChunks":[{"__isSmartRef__":true,"id":393}],"charsReplaced":"EnergySimulationPart","lastFindLoc":20,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":395},{"__isSmartRef__":true,"id":396}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"HeatingSystem","eventHandler":{"__isSmartRef__":true,"id":397},"owner":{"__isSmartRef__":true,"id":388},"derivationIds":[7027,"63B54D01-70F2-4A5D-8586-BE6EDD15DB66","C5E299A1-9E8A-477F-985B-DDC8528C798C","34C77E49-70E0-4238-BFC7-110384901543","21EE0BC1-029B-42D1-A2CC-381C601A5F55","17C73E30-F0FE-4832-A19D-A93FAC698D7D","567146D9-37F5-4BCC-AF7F-DB5A96EE8571"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":388},"isBeingDragged":false,"draggingEnabled":false,"_Rotation":0,"_Scale":0.9999999999999997,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":398},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.1,8.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(130.4,-10.2)"},"390":{"fill":null,"_BorderWidth":0,"__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(180.8,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"391":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":392},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"392":{"isSerializedDate":true,"string":"Thu Mar 07 2013 01:25:14 GMT+0100 (CET)"},"393":{"style":{"__isSmartRef__":true,"id":394},"chunkOwner":{"__isSmartRef__":true,"id":389},"_id":"_15180","storedString":"HeatingSystem","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"394":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"395":{"sourceObj":{"__isSmartRef__":true,"id":389},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":389},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"396":{"sourceObj":{"__isSmartRef__":true,"id":389},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":389},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"397":{"morph":{"__isSmartRef__":true,"id":389},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"398":{"updateLabel":{"__isSmartRef__":true,"id":399},"renameOwner":{"__isSmartRef__":true,"id":402},"onFocus":{"__isSmartRef__":true,"id":405}},"399":{"varMapping":{"__isSmartRef__":true,"id":400},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":401},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"400":{"this":{"__isSmartRef__":true,"id":389}},"401":{},"402":{"varMapping":{"__isSmartRef__":true,"id":403},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":404},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"403":{"this":{"__isSmartRef__":true,"id":389}},"404":{},"405":{"varMapping":{"__isSmartRef__":true,"id":406},"source":"function onFocus(evt) {\n $super(evt)\n if (this.owner.showScriptAnalysis) this.owner.showScriptAnalysis()\n}","funcProperties":{"__isSmartRef__":true,"id":411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"406":{"this":{"__isSmartRef__":true,"id":389},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":407}},"407":{"$super":{"__isSmartRef__":true,"id":408}},"408":{"varMapping":{"__isSmartRef__":true,"id":409},"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":410},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"409":{"obj":{"__isSmartRef__":true,"id":389},"name":"onFocus"},"410":{},"411":{"timestamp":{"__isSmartRef__":true,"id":412},"user":"jenslincke","tags":[]},"412":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:45:12 GMT+0100 (CET)"},"413":{"submorphs":[],"scripts":[],"id":"4A08CEEF-4759-4921-AF85-D276309CF091","shape":{"__isSmartRef__":true,"id":414},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Monaco,monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"SimulationText","partsBinMetaInfo":{"__isSmartRef__":true,"id":415},"textChunks":[{"__isSmartRef__":true,"id":431},{"__isSmartRef__":true,"id":433},{"__isSmartRef__":true,"id":435},{"__isSmartRef__":true,"id":437},{"__isSmartRef__":true,"id":439},{"__isSmartRef__":true,"id":441},{"__isSmartRef__":true,"id":443},{"__isSmartRef__":true,"id":445},{"__isSmartRef__":true,"id":447},{"__isSmartRef__":true,"id":449},{"__isSmartRef__":true,"id":451},{"__isSmartRef__":true,"id":453},{"__isSmartRef__":true,"id":455},{"__isSmartRef__":true,"id":457},{"__isSmartRef__":true,"id":459},{"__isSmartRef__":true,"id":461},{"__isSmartRef__":true,"id":463},{"__isSmartRef__":true,"id":465},{"__isSmartRef__":true,"id":467},{"__isSmartRef__":true,"id":469},{"__isSmartRef__":true,"id":471},{"__isSmartRef__":true,"id":473},{"__isSmartRef__":true,"id":475},{"__isSmartRef__":true,"id":477},{"__isSmartRef__":true,"id":479},{"__isSmartRef__":true,"id":481},{"__isSmartRef__":true,"id":483},{"__isSmartRef__":true,"id":485},{"__isSmartRef__":true,"id":487},{"__isSmartRef__":true,"id":489},{"__isSmartRef__":true,"id":491},{"__isSmartRef__":true,"id":493},{"__isSmartRef__":true,"id":495}],"charsReplaced":"","lastFindLoc":205,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":497},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","1BC17AC6-65D2-4DD8-906E-C419087FC3F7","6809C3A5-DCFA-4E76-9397-E4C5BA4A34C7","C528D4FD-5331-4D9A-9352-1088CF72DDDA","A3CD61D5-7936-402F-8EBA-3E2456AB5E0C","39BE0850-B4DE-4E8D-9EC7-7A6A5059775A","2035C52E-14AD-4493-A166-F79162AD66FB","D0F7C47B-437F-457E-929F-EA18E7790FA7","22F56005-4177-492C-8AAF-FF810C44931A","AAC02353-3C4E-47A1-8120-60A2F258771E","9FBBDAD3-5AE3-4342-A9DE-CF7593957E51","88B5A45D-F0EA-4372-952F-E5B93250C15E","782DCC77-008C-4653-BD28-DA4E24401AF9","D8C320FE-7916-4301-99FC-57DF6F7818E8","08F797B1-9E4E-44A7-82A8-94AD5055DD06"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"magnets":[{"__isSmartRef__":true,"id":498},{"__isSmartRef__":true,"id":499},{"__isSmartRef__":true,"id":500},{"__isSmartRef__":true,"id":501},{"__isSmartRef__":true,"id":502},{"__isSmartRef__":true,"id":503},{"__isSmartRef__":true,"id":504},{"__isSmartRef__":true,"id":505}],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":506},"draggingEnabled":false,"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":388},"savedTextString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas\n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}","attributeConnections":[{"__isSmartRef__":true,"id":507},{"__isSmartRef__":true,"id":509}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":7,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas \n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}\n ","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":511},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"414":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_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(527.8,235.5)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"415":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":416},{"__isSmartRef__":true,"id":418},{"__isSmartRef__":true,"id":420},{"__isSmartRef__":true,"id":422},{"__isSmartRef__":true,"id":424},{"__isSmartRef__":true,"id":426},{"__isSmartRef__":true,"id":428}],"lastModifiedDate":{"__isSmartRef__":true,"id":430},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"416":{"date":{"__isSmartRef__":true,"id":417},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"417":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"418":{"date":{"__isSmartRef__":true,"id":419},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"419":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"420":{"date":{"__isSmartRef__":true,"id":421},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"421":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"422":{"date":{"__isSmartRef__":true,"id":423},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"423":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"424":{"date":{"__isSmartRef__":true,"id":425},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"425":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"426":{"date":{"__isSmartRef__":true,"id":427},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"427":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"428":{"date":{"__isSmartRef__":true,"id":429},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"429":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"430":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"431":{"style":{"__isSmartRef__":true,"id":432},"chunkOwner":{"__isSmartRef__":true,"id":413},"_id":"_18","storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"432":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"433":{"_id":"_160","style":{"__isSmartRef__":true,"id":434},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":" full = $.Max * $.Factor\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"434":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"435":{"_id":"_161","style":{"__isSmartRef__":true,"id":436},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"436":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"437":{"_id":"_162","style":{"__isSmartRef__":true,"id":438},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":" ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"438":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"439":{"_id":"_163","style":{"__isSmartRef__":true,"id":440},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"0.3","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"440":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"441":{"_id":"_164","style":{"__isSmartRef__":true,"id":442},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":" * #HeatStorage.$.Max) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"442":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"443":{"_id":"_165","style":{"__isSmartRef__":true,"id":444},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"444":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"445":{"_id":"_166","style":{"__isSmartRef__":true,"id":446},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"446":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"447":{"_id":"_167","style":{"__isSmartRef__":true,"id":448},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"448":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"449":{"_id":"_168","style":{"__isSmartRef__":true,"id":450},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":" gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"450":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"451":{"_id":"_169","style":{"__isSmartRef__":true,"id":452},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":" \n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"452":{"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"453":{"_id":"_170","style":{"__isSmartRef__":true,"id":454},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"454":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"455":{"_id":"_171","style":{"__isSmartRef__":true,"id":456},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"\n\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"456":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"457":{"_id":"_172","style":{"__isSmartRef__":true,"id":458},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"458":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"459":{"_id":"_173","style":{"__isSmartRef__":true,"id":460},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":" delta = ($.Heat / $.Factor) * dt\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"460":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"461":{"_id":"_174","style":{"__isSmartRef__":true,"id":462},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"462":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"463":{"_id":"_175","style":{"__isSmartRef__":true,"id":464},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":" ($.Heat > ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"464":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"465":{"_id":"_176","style":{"__isSmartRef__":true,"id":466},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"2","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"466":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"467":{"_id":"_177","style":{"__isSmartRef__":true,"id":468},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":" * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"468":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"469":{"_id":"_178","style":{"__isSmartRef__":true,"id":470},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"470":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"471":{"_id":"_179","style":{"__isSmartRef__":true,"id":472},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"\n $.Heat -= delta\n #HeatStorage.$.Energy += ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"472":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"473":{"_id":"_180","style":{"__isSmartRef__":true,"id":474},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"0.8","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"474":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"475":{"_id":"_181","style":{"__isSmartRef__":true,"id":476},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":" * delta\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"476":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"477":{"_id":"_182","style":{"__isSmartRef__":true,"id":478},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"478":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"479":{"_id":"_183","style":{"__isSmartRef__":true,"id":480},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"480":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"481":{"_id":"_184","style":{"__isSmartRef__":true,"id":482},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"else","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"482":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"483":{"_id":"_185","style":{"__isSmartRef__":true,"id":484},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"484":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"485":{"_id":"_186","style":{"__isSmartRef__":true,"id":486},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"486":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"487":{"_id":"_187","style":{"__isSmartRef__":true,"id":488},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"\n $.Heat -= ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"488":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"489":{"_id":"_188","style":{"__isSmartRef__":true,"id":490},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"0.2","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"490":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"491":{"_id":"_189","style":{"__isSmartRef__":true,"id":492},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":" * delta\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"492":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"493":{"_id":"_190","style":{"__isSmartRef__":true,"id":494},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"494":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"495":{"_id":"_191","style":{"__isSmartRef__":true,"id":496},"chunkOwner":{"__isSmartRef__":true,"id":413},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"496":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"497":{"morph":{"__isSmartRef__":true,"id":413},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"498":{"morph":{"__isSmartRef__":true,"id":413},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"499":{"morph":{"__isSmartRef__":true,"id":413},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"500":{"morph":{"__isSmartRef__":true,"id":413},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"501":{"morph":{"__isSmartRef__":true,"id":413},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"502":{"morph":{"__isSmartRef__":true,"id":413},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"503":{"morph":{"__isSmartRef__":true,"id":413},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"504":{"morph":{"__isSmartRef__":true,"id":413},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"505":{"morph":{"__isSmartRef__":true,"id":413},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"506":{"resizeWidth":true,"resizeHeight":true},"507":{"sourceObj":{"__isSmartRef__":true,"id":413},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":388},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":508},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"508":{"source":{"__isSmartRef__":true,"id":413},"target":{"__isSmartRef__":true,"id":388}},"509":{"sourceObj":{"__isSmartRef__":true,"id":413},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":413},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":510},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"510":{"source":{"__isSmartRef__":true,"id":413},"target":{"__isSmartRef__":true,"id":413}},"511":{"boundEval":{"__isSmartRef__":true,"id":512},"getDoitContext":{"__isSmartRef__":true,"id":520},"installLayers":{"__isSmartRef__":true,"id":528},"onLoad":{"__isSmartRef__":true,"id":532},"highligtScriptNames":{"__isSmartRef__":true,"id":536},"getAutoCompletion":{"__isSmartRef__":true,"id":540},"reset":{"__isSmartRef__":true,"id":548},"getLastWordRange":{"__isSmartRef__":true,"id":552}},"512":{"varMapping":{"__isSmartRef__":true,"id":513},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":518},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"513":{"this":{"__isSmartRef__":true,"id":413},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":514}},"514":{"$super":{"__isSmartRef__":true,"id":515}},"515":{"varMapping":{"__isSmartRef__":true,"id":516},"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":517},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"516":{"obj":{"__isSmartRef__":true,"id":413},"name":"boundEval"},"517":{},"518":{"timestamp":{"__isSmartRef__":true,"id":519},"user":"jenslincke","tags":[]},"519":{"isSerializedDate":true,"string":"Tue Jan 28 2014 11:28:47 GMT+0100 (CET)"},"520":{"varMapping":{"__isSmartRef__":true,"id":521},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"521":{"this":{"__isSmartRef__":true,"id":413},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":522}},"522":{"$super":{"__isSmartRef__":true,"id":523}},"523":{"varMapping":{"__isSmartRef__":true,"id":524},"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":525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"524":{"obj":{"__isSmartRef__":true,"id":413},"name":"getDoitContext"},"525":{},"526":{"timestamp":{"__isSmartRef__":true,"id":527},"user":"jenslincke","tags":[]},"527":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:42:09 GMT+0100 (CET)"},"528":{"varMapping":{"__isSmartRef__":true,"id":529},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":530},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"529":{"this":{"__isSmartRef__":true,"id":413}},"530":{"timestamp":{"__isSmartRef__":true,"id":531},"user":"jenslincke","tags":[]},"531":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:44 GMT+0100 (CET)"},"532":{"varMapping":{"__isSmartRef__":true,"id":533},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":534},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"533":{"this":{"__isSmartRef__":true,"id":413}},"534":{"timestamp":{"__isSmartRef__":true,"id":535},"user":"jenslincke","tags":[]},"535":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:45 GMT+0100 (CET)"},"536":{"varMapping":{"__isSmartRef__":true,"id":537},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.showNameReference(\"'+name+'\")',\n context: this.owner}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":538},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"537":{"this":{"__isSmartRef__":true,"id":413}},"538":{"timestamp":{"__isSmartRef__":true,"id":539},"user":"jenslincke","tags":[]},"539":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:25:07 GMT+0100 (CET)"},"540":{"varMapping":{"__isSmartRef__":true,"id":541},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"541":{"this":{"__isSmartRef__":true,"id":413},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":542}},"542":{"$super":{"__isSmartRef__":true,"id":543}},"543":{"varMapping":{"__isSmartRef__":true,"id":544},"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":545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"544":{"obj":{"__isSmartRef__":true,"id":413},"name":"getAutoCompletion"},"545":{},"546":{"timestamp":{"__isSmartRef__":true,"id":547},"user":"jenslincke","tags":[]},"547":{"isSerializedDate":true,"string":"Wed Jan 29 2014 00:33:17 GMT+0100 (CET)"},"548":{"varMapping":{"__isSmartRef__":true,"id":549},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"549":{"this":{"__isSmartRef__":true,"id":413}},"550":{"timestamp":{"__isSmartRef__":true,"id":551},"user":"jenslincke","tags":[]},"551":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:58:01 GMT+0100 (CET)"},"552":{"varMapping":{"__isSmartRef__":true,"id":553},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":558},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"553":{"this":{"__isSmartRef__":true,"id":413},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":554}},"554":{"$super":{"__isSmartRef__":true,"id":555}},"555":{"varMapping":{"__isSmartRef__":true,"id":556},"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":557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"556":{"obj":{"__isSmartRef__":true,"id":413},"name":"getLastWordRange"},"557":{},"558":{"timestamp":{"__isSmartRef__":true,"id":559},"user":"jenslincke","tags":[]},"559":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:59:58 GMT+0100 (CET)"},"560":{"submorphs":[],"scripts":[],"id":"07D195A1-33DA-4A4D-B3EA-B51C03BACF39","shape":{"__isSmartRef__":true,"id":561},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":562},"textChunks":[{"__isSmartRef__":true,"id":578}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":580},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","DDEC9403-6C57-4923-ABE3-1737E6362120"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":388},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":581},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,320.5)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"561":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"_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(519.9,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"562":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":563},{"__isSmartRef__":true,"id":565},{"__isSmartRef__":true,"id":567},{"__isSmartRef__":true,"id":569},{"__isSmartRef__":true,"id":571},{"__isSmartRef__":true,"id":573},{"__isSmartRef__":true,"id":575}],"lastModifiedDate":{"__isSmartRef__":true,"id":577},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"563":{"date":{"__isSmartRef__":true,"id":564},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"564":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"565":{"date":{"__isSmartRef__":true,"id":566},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"566":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"567":{"date":{"__isSmartRef__":true,"id":568},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"568":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"569":{"date":{"__isSmartRef__":true,"id":570},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"570":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"571":{"date":{"__isSmartRef__":true,"id":572},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"572":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"573":{"date":{"__isSmartRef__":true,"id":574},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"574":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"575":{"date":{"__isSmartRef__":true,"id":576},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"576":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"577":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"578":{"style":{"__isSmartRef__":true,"id":579},"chunkOwner":{"__isSmartRef__":true,"id":560},"_id":"_2928","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"579":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"580":{"morph":{"__isSmartRef__":true,"id":560},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"581":{"moveVertical":true,"resizeWidth":true},"582":{"submorphs":[],"scripts":[],"id":"88E27517-6524-49AD-AF69-936DADF77DDD","shape":{"__isSmartRef__":true,"id":583},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":584},"textChunks":[{"__isSmartRef__":true,"id":600}],"charsReplaced":"false","lastFindLoc":28,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":602},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","1A5DC502-21A9-4B18-8878-654818F4C282"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":388},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":603}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 10\nMax: 5 [kW]","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":605},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"583":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(513.4,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"584":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":585},{"__isSmartRef__":true,"id":587},{"__isSmartRef__":true,"id":589},{"__isSmartRef__":true,"id":591},{"__isSmartRef__":true,"id":593},{"__isSmartRef__":true,"id":595},{"__isSmartRef__":true,"id":597}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":599},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"585":{"date":{"__isSmartRef__":true,"id":586},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"586":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"587":{"date":{"__isSmartRef__":true,"id":588},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"588":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"589":{"date":{"__isSmartRef__":true,"id":590},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"590":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"591":{"date":{"__isSmartRef__":true,"id":592},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"592":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"593":{"date":{"__isSmartRef__":true,"id":594},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"594":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"595":{"date":{"__isSmartRef__":true,"id":596},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"596":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"597":{"date":{"__isSmartRef__":true,"id":598},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"598":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"599":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"600":{"style":{"__isSmartRef__":true,"id":601},"chunkOwner":{"__isSmartRef__":true,"id":582},"_id":"_2005","storedString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 20\nMax: 5 [kW]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"601":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"602":{"morph":{"__isSmartRef__":true,"id":582},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"603":{"sourceObj":{"__isSmartRef__":true,"id":582},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":388},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":604},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"604":{"source":{"__isSmartRef__":true,"id":582},"target":{"__isSmartRef__":true,"id":388}},"605":{"resizeWidth":true},"606":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(541.7,338.3)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"607":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":608},{"__isSmartRef__":true,"id":610},{"__isSmartRef__":true,"id":612},{"__isSmartRef__":true,"id":614},{"__isSmartRef__":true,"id":616},{"__isSmartRef__":true,"id":618},{"__isSmartRef__":true,"id":620},{"__isSmartRef__":true,"id":622},{"__isSmartRef__":true,"id":624},{"__isSmartRef__":true,"id":626},{"__isSmartRef__":true,"id":628},{"__isSmartRef__":true,"id":630},{"__isSmartRef__":true,"id":632},{"__isSmartRef__":true,"id":634},{"__isSmartRef__":true,"id":636},{"__isSmartRef__":true,"id":638},{"__isSmartRef__":true,"id":640},{"__isSmartRef__":true,"id":642},{"__isSmartRef__":true,"id":644},{"__isSmartRef__":true,"id":646},{"__isSmartRef__":true,"id":648},{"__isSmartRef__":true,"id":650},{"__isSmartRef__":true,"id":652},{"__isSmartRef__":true,"id":654},{"__isSmartRef__":true,"id":656},{"__isSmartRef__":true,"id":658},{"__isSmartRef__":true,"id":660},{"__isSmartRef__":true,"id":662},{"__isSmartRef__":true,"id":664}],"lastModifiedDate":{"__isSmartRef__":true,"id":666},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"608":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":609}},"609":{"isSerializedDate":true,"string":"Fri Jun 21 2013 00:16:24 GMT+0200 (CEST)"},"610":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":611}},"611":{"isSerializedDate":true,"string":"Thu May 30 2013 09:18:06 GMT+0200 (CEST)"},"612":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":613}},"613":{"isSerializedDate":true,"string":"Wed Jan 23 2013 12:57:18 GMT+0100 (CET)"},"614":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":615}},"615":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"616":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":617}},"617":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"618":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":619}},"619":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"620":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":621}},"621":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"622":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":623}},"623":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"624":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":625}},"625":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"626":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":627}},"627":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:35:08 GMT+0200 (CEST)"},"628":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":629}},"629":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:35:51 GMT+0100 (CET)"},"630":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":631}},"631":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:42:31 GMT+0100 (CET)"},"632":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":633}},"633":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:47:05 GMT+0100 (CET)"},"634":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":635}},"635":{"isSerializedDate":true,"string":"Thu May 30 2013 00:36:50 GMT+0200 (CEST)"},"636":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":637}},"637":{"isSerializedDate":true,"string":"Tue Jun 18 2013 20:49:27 GMT+0200 (CEST)"},"638":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":639}},"639":{"isSerializedDate":true,"string":"Tue Jul 30 2013 08:20:51 GMT+0200 (CEST)"},"640":{"date":{"__isSmartRef__":true,"id":641},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"641":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:02:28 GMT+0100 (CET)"},"642":{"date":{"__isSmartRef__":true,"id":643},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"643":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:10:08 GMT+0100 (CET)"},"644":{"date":{"__isSmartRef__":true,"id":645},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"645":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:24:55 GMT+0100 (CET)"},"646":{"date":{"__isSmartRef__":true,"id":647},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"647":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:29:33 GMT+0100 (CET)"},"648":{"date":{"__isSmartRef__":true,"id":649},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"649":{"isSerializedDate":true,"string":"Wed Jan 22 2014 21:07:26 GMT+0100 (CET)"},"650":{"date":{"__isSmartRef__":true,"id":651},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"651":{"isSerializedDate":true,"string":"Wed Jan 22 2014 22:23:13 GMT+0100 (CET)"},"652":{"date":{"__isSmartRef__":true,"id":653},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"653":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:58:48 GMT+0100 (CET)"},"654":{"date":{"__isSmartRef__":true,"id":655},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"655":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:59:27 GMT+0100 (CET)"},"656":{"date":{"__isSmartRef__":true,"id":657},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"657":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:03:44 GMT+0100 (CET)"},"658":{"date":{"__isSmartRef__":true,"id":659},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"659":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:24:12 GMT+0100 (CET)"},"660":{"date":{"__isSmartRef__":true,"id":661},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"661":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:26:15 GMT+0100 (CET)"},"662":{"date":{"__isSmartRef__":true,"id":663},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"663":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:35:38 GMT+0100 (CET)"},"664":{"date":{"__isSmartRef__":true,"id":665},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"665":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:54:51 GMT+0100 (CET)"},"666":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:15 GMT+0100 (CET)"},"667":{"morph":{"__isSmartRef__":true,"id":388},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"668":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":669}},"669":{"test01IsMorph":{"__isSmartRef__":true,"id":670}},"670":{"varMapping":{"__isSmartRef__":true,"id":671},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"671":{"this":{"__isSmartRef__":true,"id":668}},"672":{},"673":{"morph":{"__isSmartRef__":true,"id":388},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"674":{"morph":{"__isSmartRef__":true,"id":388},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"675":{"morph":{"__isSmartRef__":true,"id":388},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"676":{"morph":{"__isSmartRef__":true,"id":388},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"677":{"morph":{"__isSmartRef__":true,"id":388},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"678":{"morph":{"__isSmartRef__":true,"id":388},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"679":{"morph":{"__isSmartRef__":true,"id":388},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"680":{"morph":{"__isSmartRef__":true,"id":388},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"681":{"adjustForNewBounds":true},"682":{"Heat":0,"Stopped":false,"Factor":20,"Max":5},"683":{"sourceObj":{"__isSmartRef__":true,"id":388},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":389},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":684},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"684":{"source":{"__isSmartRef__":true,"id":388},"target":{"__isSmartRef__":true,"id":389}},"685":{"Heat":"kW/s","Max":"kW"},"686":{"referencedBy":{"__isSmartRef__":true,"id":687},"references":{"__isSmartRef__":true,"id":688}},"687":{},"688":{},"689":{"submorphs":[{"__isSmartRef__":true,"id":690},{"__isSmartRef__":true,"id":1087},{"__isSmartRef__":true,"id":1325},{"__isSmartRef__":true,"id":1466},{"__isSmartRef__":true,"id":1736},{"__isSmartRef__":true,"id":2251},{"__isSmartRef__":true,"id":2560},{"__isSmartRef__":true,"id":2869},{"__isSmartRef__":true,"id":3216},{"__isSmartRef__":true,"id":3569},{"__isSmartRef__":true,"id":388},{"__isSmartRef__":true,"id":3894}],"scripts":[],"id":"22930405-15F8-450C-AB32-1E33682FD139","shape":{"__isSmartRef__":true,"id":4337},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"EnergySimulation","partsBinMetaInfo":{"__isSmartRef__":true,"id":4338},"eventHandler":{"__isSmartRef__":true,"id":4382},"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","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","88213761-056A-4183-A3FB-45D9996AFE2F"],"partTests":{"__isSmartRef__":true,"id":4383},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"prevScroll":[0,0],"isCopyMorphRef":true,"morphRefId":2,"grabbingEnabled":false,"draggingEnabled":false,"owner":{"__isSmartRef__":true,"id":0},"deltaTime":0.1,"simStepsAtOnce":50,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4388},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(1237.9,8.7)","_Position":"lively.pt(1.4,-0.1)"},"690":{"submorphs":[{"__isSmartRef__":true,"id":691},{"__isSmartRef__":true,"id":715},{"__isSmartRef__":true,"id":886},{"__isSmartRef__":true,"id":908}],"scripts":[],"id":"602E76F1-14F9-42B0-8F77-E2CEC3535693","shape":{"__isSmartRef__":true,"id":932},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":933},"eventHandler":{"__isSmartRef__":true,"id":993},"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","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","5E21C7BB-A7E2-498E-858F-032DCC55A4FC","2072AEFD-449A-4F4E-B8A5-9A6C57DEBB4B","8013D903-1809-4244-AABF-4DF28A1844DB","00F3C15D-F47A-44A0-8AD1-817E6DA58255","6A96318B-D7CD-48E2-913D-29CB6897E3B7","B2263E54-BA2B-4C60-B8A1-92637C28EA08","64C5A21D-7106-40F1-A881-4B19EEF4534D","558820C1-7325-4652-A6CF-33B25DBDDE22","BCDFBF89-EC99-457D-A530-78EE6AA50603","BB62D9DB-5F5D-46D1-B13F-ECC2CFA93FFA","13370CD2-1232-4E30-9AB6-D43A7241AB79"],"partTests":{"__isSmartRef__":true,"id":994},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":999},{"__isSmartRef__":true,"id":1000},{"__isSmartRef__":true,"id":1001},{"__isSmartRef__":true,"id":1002},{"__isSmartRef__":true,"id":1003},{"__isSmartRef__":true,"id":1004},{"__isSmartRef__":true,"id":1005},{"__isSmartRef__":true,"id":1006}],"prevScroll":[0,0],"isEnergySimulationPart":true,"layout":{"__isSmartRef__":true,"id":1007},"$":{"__isSmartRef__":true,"id":1008},"name":"ResetSimulation","attributeConnections":[{"__isSmartRef__":true,"id":1009}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"units":{"__isSmartRef__":true,"id":1011},"_Rotation":0,"_Scale":1,"scriptAnalysis":{"__isSmartRef__":true,"id":1012},"lastNameReference":null,"owner":{"__isSmartRef__":true,"id":689},"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1015},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(233.6,-13.0)","_Position":"lively.pt(1123.8,881.3)"},"691":{"submorphs":[],"scripts":[],"id":"DF6B3A96-885A-4C46-9682-FE036479F9E3","shape":{"__isSmartRef__":true,"id":692},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":693},"textChunks":[{"__isSmartRef__":true,"id":695}],"charsReplaced":"EnergySimulationPart","lastFindLoc":20,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":697},{"__isSmartRef__":true,"id":698}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"HeatingSystem","eventHandler":{"__isSmartRef__":true,"id":699},"owner":{"__isSmartRef__":true,"id":690},"derivationIds":[7027,"63B54D01-70F2-4A5D-8586-BE6EDD15DB66","C5E299A1-9E8A-477F-985B-DDC8528C798C","34C77E49-70E0-4238-BFC7-110384901543","21EE0BC1-029B-42D1-A2CC-381C601A5F55","17C73E30-F0FE-4832-A19D-A93FAC698D7D","567146D9-37F5-4BCC-AF7F-DB5A96EE8571","A112085C-FDC7-48D5-A582-CD39CA4E9117"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":690},"isBeingDragged":false,"draggingEnabled":false,"_Rotation":0,"_Scale":0.9999999999999997,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":700},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.1,8.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(130.4,-10.2)"},"692":{"fill":null,"_BorderWidth":0,"__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(180.8,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"693":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":694},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"694":{"isSerializedDate":true,"string":"Thu Mar 07 2013 01:25:14 GMT+0100 (CET)"},"695":{"style":{"__isSmartRef__":true,"id":696},"chunkOwner":{"__isSmartRef__":true,"id":691},"_id":"_31731","storedString":"ResetSimulation","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"696":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"697":{"sourceObj":{"__isSmartRef__":true,"id":691},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":691},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"698":{"sourceObj":{"__isSmartRef__":true,"id":691},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":691},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"699":{"morph":{"__isSmartRef__":true,"id":691},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"700":{"updateLabel":{"__isSmartRef__":true,"id":701},"renameOwner":{"__isSmartRef__":true,"id":704},"onFocus":{"__isSmartRef__":true,"id":707}},"701":{"varMapping":{"__isSmartRef__":true,"id":702},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"702":{"this":{"__isSmartRef__":true,"id":691}},"703":{},"704":{"varMapping":{"__isSmartRef__":true,"id":705},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":706},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"705":{"this":{"__isSmartRef__":true,"id":691}},"706":{},"707":{"varMapping":{"__isSmartRef__":true,"id":708},"source":"function onFocus(evt) {\n $super(evt)\n if (this.owner.showScriptAnalysis) this.owner.showScriptAnalysis()\n}","funcProperties":{"__isSmartRef__":true,"id":713},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"708":{"this":{"__isSmartRef__":true,"id":691},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":709}},"709":{"$super":{"__isSmartRef__":true,"id":710}},"710":{"varMapping":{"__isSmartRef__":true,"id":711},"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":712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"711":{"obj":{"__isSmartRef__":true,"id":691},"name":"onFocus"},"712":{},"713":{"timestamp":{"__isSmartRef__":true,"id":714},"user":"jenslincke","tags":[]},"714":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:45:12 GMT+0100 (CET)"},"715":{"submorphs":[],"scripts":[],"id":"FED22CF3-795E-412F-9A61-7EFAEE69D77D","shape":{"__isSmartRef__":true,"id":716},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Monaco,monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"SimulationText","partsBinMetaInfo":{"__isSmartRef__":true,"id":717},"textChunks":[{"__isSmartRef__":true,"id":733},{"__isSmartRef__":true,"id":735},{"__isSmartRef__":true,"id":737},{"__isSmartRef__":true,"id":739},{"__isSmartRef__":true,"id":741},{"__isSmartRef__":true,"id":743},{"__isSmartRef__":true,"id":745},{"__isSmartRef__":true,"id":747},{"__isSmartRef__":true,"id":749},{"__isSmartRef__":true,"id":751},{"__isSmartRef__":true,"id":753},{"__isSmartRef__":true,"id":755},{"__isSmartRef__":true,"id":757},{"__isSmartRef__":true,"id":759},{"__isSmartRef__":true,"id":761},{"__isSmartRef__":true,"id":763},{"__isSmartRef__":true,"id":765},{"__isSmartRef__":true,"id":767},{"__isSmartRef__":true,"id":769},{"__isSmartRef__":true,"id":771},{"__isSmartRef__":true,"id":773},{"__isSmartRef__":true,"id":775},{"__isSmartRef__":true,"id":777},{"__isSmartRef__":true,"id":779},{"__isSmartRef__":true,"id":781},{"__isSmartRef__":true,"id":783},{"__isSmartRef__":true,"id":785},{"__isSmartRef__":true,"id":787},{"__isSmartRef__":true,"id":789},{"__isSmartRef__":true,"id":791},{"__isSmartRef__":true,"id":793},{"__isSmartRef__":true,"id":795},{"__isSmartRef__":true,"id":797},{"__isSmartRef__":true,"id":799},{"__isSmartRef__":true,"id":801},{"__isSmartRef__":true,"id":803},{"__isSmartRef__":true,"id":805},{"__isSmartRef__":true,"id":807},{"__isSmartRef__":true,"id":809},{"__isSmartRef__":true,"id":811},{"__isSmartRef__":true,"id":813},{"__isSmartRef__":true,"id":815},{"__isSmartRef__":true,"id":817},{"__isSmartRef__":true,"id":819},{"__isSmartRef__":true,"id":821}],"charsReplaced":" ","lastFindLoc":409,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":823},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","1BC17AC6-65D2-4DD8-906E-C419087FC3F7","6809C3A5-DCFA-4E76-9397-E4C5BA4A34C7","C528D4FD-5331-4D9A-9352-1088CF72DDDA","A3CD61D5-7936-402F-8EBA-3E2456AB5E0C","39BE0850-B4DE-4E8D-9EC7-7A6A5059775A","2035C52E-14AD-4493-A166-F79162AD66FB","D0F7C47B-437F-457E-929F-EA18E7790FA7","22F56005-4177-492C-8AAF-FF810C44931A","AAC02353-3C4E-47A1-8120-60A2F258771E","9FBBDAD3-5AE3-4342-A9DE-CF7593957E51","88B5A45D-F0EA-4372-952F-E5B93250C15E","782DCC77-008C-4653-BD28-DA4E24401AF9","D8C320FE-7916-4301-99FC-57DF6F7818E8","08F797B1-9E4E-44A7-82A8-94AD5055DD06","4A08CEEF-4759-4921-AF85-D276309CF091"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"magnets":[{"__isSmartRef__":true,"id":824},{"__isSmartRef__":true,"id":825},{"__isSmartRef__":true,"id":826},{"__isSmartRef__":true,"id":827},{"__isSmartRef__":true,"id":828},{"__isSmartRef__":true,"id":829},{"__isSmartRef__":true,"id":830},{"__isSmartRef__":true,"id":831}],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":832},"draggingEnabled":false,"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":690},"savedTextString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas\n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}","attributeConnections":[{"__isSmartRef__":true,"id":833},{"__isSmartRef__":true,"id":835}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":23,"_Rotation":0,"_Scale":1,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"#MeasureData.$.Time = Date.now() / 1000\n#MeasureData.$.Start = #MeasureData.$.Time\n#Fuel.$.Gas = 5 * 2 * 3600 // two hours gas\n#HeatStorage.$.Energy = 0\n#Battery.$.Energy = 0 \n#ElectricConsumer.$.Consumed = 0\n#ElectricConsumer.$.Demand = 1.5\n#ElectricConsumer.$.Extra = 0\n#HeatConsumer.$.Consumed = 0\n#HeatConsumer.$.Demand = 3\n#HeatConsumer.$.Extra = 0\n#ThermalPowerStation.$.Heat = 0\n#HeatingSystem.$.Heat = 0\n#MeasureData.$.Counter = 10000\n#SimulationResults.resetData()\n#SimulationResults.showData()\n#Battery.$.Max = 0.1 * 3600\n#HeatStorage.$.Max = 0.1 * 3600 \n","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":837},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"716":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_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(357.0,288.9)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"717":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":718},{"__isSmartRef__":true,"id":720},{"__isSmartRef__":true,"id":722},{"__isSmartRef__":true,"id":724},{"__isSmartRef__":true,"id":726},{"__isSmartRef__":true,"id":728},{"__isSmartRef__":true,"id":730}],"lastModifiedDate":{"__isSmartRef__":true,"id":732},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"718":{"date":{"__isSmartRef__":true,"id":719},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"719":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"720":{"date":{"__isSmartRef__":true,"id":721},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"721":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"722":{"date":{"__isSmartRef__":true,"id":723},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"723":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"724":{"date":{"__isSmartRef__":true,"id":725},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"725":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"726":{"date":{"__isSmartRef__":true,"id":727},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"727":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"728":{"date":{"__isSmartRef__":true,"id":729},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"729":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"730":{"date":{"__isSmartRef__":true,"id":731},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"731":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"732":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"733":{"style":{"__isSmartRef__":true,"id":734},"chunkOwner":{"__isSmartRef__":true,"id":715},"_id":"_13","storedString":"#MeasureData.$.Time = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"734":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"735":{"_id":"_24","style":{"__isSmartRef__":true,"id":736},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"Date","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"736":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(255,20,147)"},"737":{"_id":"_25","style":{"__isSmartRef__":true,"id":738},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":".now() / ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"738":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"739":{"_id":"_26","style":{"__isSmartRef__":true,"id":740},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"1000","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"740":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"741":{"_id":"_27","style":{"__isSmartRef__":true,"id":742},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"\n#MeasureData.$.Start = #MeasureData.$.Time\n#Fuel.$.Gas = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"742":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"743":{"_id":"_28","style":{"__isSmartRef__":true,"id":744},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"5","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"744":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"745":{"_id":"_29","style":{"__isSmartRef__":true,"id":746},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":" * ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"746":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"747":{"_id":"_30","style":{"__isSmartRef__":true,"id":748},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"2","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"748":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"749":{"_id":"_31","style":{"__isSmartRef__":true,"id":750},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":" * ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"750":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"751":{"_id":"_32","style":{"__isSmartRef__":true,"id":752},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"3600","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"752":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"753":{"_id":"_33","style":{"__isSmartRef__":true,"id":754},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"754":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"755":{"_id":"_34","style":{"__isSmartRef__":true,"id":756},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"756":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"757":{"_id":"_35","style":{"__isSmartRef__":true,"id":758},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":" two hours gas","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"758":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"759":{"_id":"_36","style":{"__isSmartRef__":true,"id":760},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"\n#HeatStorage.$.Energy = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"760":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"761":{"_id":"_37","style":{"__isSmartRef__":true,"id":762},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"762":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"763":{"_id":"_38","style":{"__isSmartRef__":true,"id":764},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"\n#Battery.$.Energy = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"764":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"765":{"_id":"_39","style":{"__isSmartRef__":true,"id":766},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"766":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"767":{"_id":"_40","style":{"__isSmartRef__":true,"id":768},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":" \n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"768":{"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"769":{"_id":"_41","style":{"__isSmartRef__":true,"id":770},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"#ElectricConsumer.$.Consumed = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"770":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"771":{"_id":"_42","style":{"__isSmartRef__":true,"id":772},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"772":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"773":{"_id":"_43","style":{"__isSmartRef__":true,"id":774},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"\n#ElectricConsumer.$.Demand = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"774":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"775":{"_id":"_44","style":{"__isSmartRef__":true,"id":776},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"1.5","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"776":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"777":{"_id":"_45","style":{"__isSmartRef__":true,"id":778},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"\n#ElectricConsumer.$.Extra = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"778":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"779":{"_id":"_46","style":{"__isSmartRef__":true,"id":780},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"780":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"781":{"_id":"_47","style":{"__isSmartRef__":true,"id":782},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"\n#HeatConsumer.$.Consumed = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"782":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"783":{"_id":"_48","style":{"__isSmartRef__":true,"id":784},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"784":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"785":{"_id":"_49","style":{"__isSmartRef__":true,"id":786},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"\n#HeatConsumer.$.Demand = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"786":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"787":{"_id":"_50","style":{"__isSmartRef__":true,"id":788},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"3","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"788":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"789":{"_id":"_51","style":{"__isSmartRef__":true,"id":790},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"\n#HeatConsumer.$.Extra = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"790":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"791":{"_id":"_52","style":{"__isSmartRef__":true,"id":792},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"792":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"793":{"_id":"_53","style":{"__isSmartRef__":true,"id":794},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"\n#ThermalPowerStation.$.Heat = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"794":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"795":{"_id":"_54","style":{"__isSmartRef__":true,"id":796},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"796":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"797":{"_id":"_55","style":{"__isSmartRef__":true,"id":798},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"\n#HeatingSystem.$.Heat = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"798":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"799":{"_id":"_56","style":{"__isSmartRef__":true,"id":800},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"800":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"801":{"_id":"_57","style":{"__isSmartRef__":true,"id":802},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"\n#MeasureData.$.Counter = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"802":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"803":{"_id":"_58","style":{"__isSmartRef__":true,"id":804},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"10000","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"804":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"805":{"_id":"_59","style":{"__isSmartRef__":true,"id":806},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"\n#SimulationResults.resetData()\n#SimulationResults.showData()\n#Battery.$.Max = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"806":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"807":{"_id":"_60","style":{"__isSmartRef__":true,"id":808},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"0.1","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"808":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"809":{"_id":"_61","style":{"__isSmartRef__":true,"id":810},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":" * ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"810":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"811":{"_id":"_62","style":{"__isSmartRef__":true,"id":812},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"3600","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"812":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"813":{"_id":"_63","style":{"__isSmartRef__":true,"id":814},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"\n#HeatStorage.$.Max = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"814":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"815":{"_id":"_64","style":{"__isSmartRef__":true,"id":816},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"0.1","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"816":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"817":{"_id":"_65","style":{"__isSmartRef__":true,"id":818},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":" * ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"818":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"819":{"_id":"_66","style":{"__isSmartRef__":true,"id":820},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":"3600","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"820":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"821":{"_id":"_67","style":{"__isSmartRef__":true,"id":822},"chunkOwner":{"__isSmartRef__":true,"id":715},"storedString":" \n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"822":{"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"823":{"morph":{"__isSmartRef__":true,"id":715},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"824":{"morph":{"__isSmartRef__":true,"id":715},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"825":{"morph":{"__isSmartRef__":true,"id":715},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"826":{"morph":{"__isSmartRef__":true,"id":715},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"827":{"morph":{"__isSmartRef__":true,"id":715},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"828":{"morph":{"__isSmartRef__":true,"id":715},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"829":{"morph":{"__isSmartRef__":true,"id":715},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"830":{"morph":{"__isSmartRef__":true,"id":715},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"831":{"morph":{"__isSmartRef__":true,"id":715},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"832":{"resizeWidth":true,"resizeHeight":true},"833":{"sourceObj":{"__isSmartRef__":true,"id":715},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":690},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":834},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"834":{"source":{"__isSmartRef__":true,"id":715},"target":{"__isSmartRef__":true,"id":690}},"835":{"sourceObj":{"__isSmartRef__":true,"id":715},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":715},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":836},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"836":{"source":{"__isSmartRef__":true,"id":715},"target":{"__isSmartRef__":true,"id":715}},"837":{"boundEval":{"__isSmartRef__":true,"id":838},"getDoitContext":{"__isSmartRef__":true,"id":846},"installLayers":{"__isSmartRef__":true,"id":854},"onLoad":{"__isSmartRef__":true,"id":858},"highligtScriptNames":{"__isSmartRef__":true,"id":862},"getAutoCompletion":{"__isSmartRef__":true,"id":866},"reset":{"__isSmartRef__":true,"id":874},"getLastWordRange":{"__isSmartRef__":true,"id":878}},"838":{"varMapping":{"__isSmartRef__":true,"id":839},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"839":{"this":{"__isSmartRef__":true,"id":715},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":840}},"840":{"$super":{"__isSmartRef__":true,"id":841}},"841":{"varMapping":{"__isSmartRef__":true,"id":842},"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":843},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"842":{"obj":{"__isSmartRef__":true,"id":715},"name":"boundEval"},"843":{},"844":{"timestamp":{"__isSmartRef__":true,"id":845},"user":"jenslincke","tags":[]},"845":{"isSerializedDate":true,"string":"Tue Jan 28 2014 11:28:47 GMT+0100 (CET)"},"846":{"varMapping":{"__isSmartRef__":true,"id":847},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"847":{"this":{"__isSmartRef__":true,"id":715},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":848}},"848":{"$super":{"__isSmartRef__":true,"id":849}},"849":{"varMapping":{"__isSmartRef__":true,"id":850},"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":851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"850":{"obj":{"__isSmartRef__":true,"id":715},"name":"getDoitContext"},"851":{},"852":{"timestamp":{"__isSmartRef__":true,"id":853},"user":"jenslincke","tags":[]},"853":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:42:09 GMT+0100 (CET)"},"854":{"varMapping":{"__isSmartRef__":true,"id":855},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"855":{"this":{"__isSmartRef__":true,"id":715}},"856":{"timestamp":{"__isSmartRef__":true,"id":857},"user":"jenslincke","tags":[]},"857":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:44 GMT+0100 (CET)"},"858":{"varMapping":{"__isSmartRef__":true,"id":859},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"859":{"this":{"__isSmartRef__":true,"id":715}},"860":{"timestamp":{"__isSmartRef__":true,"id":861},"user":"jenslincke","tags":[]},"861":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:45 GMT+0100 (CET)"},"862":{"varMapping":{"__isSmartRef__":true,"id":863},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.showNameReference(\"'+name+'\")',\n context: this.owner}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"863":{"this":{"__isSmartRef__":true,"id":715}},"864":{"timestamp":{"__isSmartRef__":true,"id":865},"user":"jenslincke","tags":[]},"865":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:25:07 GMT+0100 (CET)"},"866":{"varMapping":{"__isSmartRef__":true,"id":867},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"867":{"this":{"__isSmartRef__":true,"id":715},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":868}},"868":{"$super":{"__isSmartRef__":true,"id":869}},"869":{"varMapping":{"__isSmartRef__":true,"id":870},"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":871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"870":{"obj":{"__isSmartRef__":true,"id":715},"name":"getAutoCompletion"},"871":{},"872":{"timestamp":{"__isSmartRef__":true,"id":873},"user":"jenslincke","tags":[]},"873":{"isSerializedDate":true,"string":"Wed Jan 29 2014 00:33:17 GMT+0100 (CET)"},"874":{"varMapping":{"__isSmartRef__":true,"id":875},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"875":{"this":{"__isSmartRef__":true,"id":715}},"876":{"timestamp":{"__isSmartRef__":true,"id":877},"user":"jenslincke","tags":[]},"877":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:58:01 GMT+0100 (CET)"},"878":{"varMapping":{"__isSmartRef__":true,"id":879},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"879":{"this":{"__isSmartRef__":true,"id":715},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":880}},"880":{"$super":{"__isSmartRef__":true,"id":881}},"881":{"varMapping":{"__isSmartRef__":true,"id":882},"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":883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"882":{"obj":{"__isSmartRef__":true,"id":715},"name":"getLastWordRange"},"883":{},"884":{"timestamp":{"__isSmartRef__":true,"id":885},"user":"jenslincke","tags":[]},"885":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:59:58 GMT+0100 (CET)"},"886":{"submorphs":[],"scripts":[],"id":"566DAE45-F960-422C-8A0E-012979E3F884","shape":{"__isSmartRef__":true,"id":887},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":888},"textChunks":[{"__isSmartRef__":true,"id":904}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":906},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","DDEC9403-6C57-4923-ABE3-1737E6362120","07D195A1-33DA-4A4D-B3EA-B51C03BACF39"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":690},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":907},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,373.9)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"887":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"_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(349.1,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"888":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":889},{"__isSmartRef__":true,"id":891},{"__isSmartRef__":true,"id":893},{"__isSmartRef__":true,"id":895},{"__isSmartRef__":true,"id":897},{"__isSmartRef__":true,"id":899},{"__isSmartRef__":true,"id":901}],"lastModifiedDate":{"__isSmartRef__":true,"id":903},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"889":{"date":{"__isSmartRef__":true,"id":890},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"890":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"891":{"date":{"__isSmartRef__":true,"id":892},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"892":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"893":{"date":{"__isSmartRef__":true,"id":894},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"894":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"895":{"date":{"__isSmartRef__":true,"id":896},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"896":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"897":{"date":{"__isSmartRef__":true,"id":898},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"898":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"899":{"date":{"__isSmartRef__":true,"id":900},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"900":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"901":{"date":{"__isSmartRef__":true,"id":902},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"902":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"903":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"904":{"style":{"__isSmartRef__":true,"id":905},"chunkOwner":{"__isSmartRef__":true,"id":886},"_id":"_2914","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"905":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"906":{"morph":{"__isSmartRef__":true,"id":886},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"907":{"moveVertical":true,"resizeWidth":true},"908":{"submorphs":[],"scripts":[],"id":"0BC9B6C5-EB73-416A-89C9-BFB37655C02D","shape":{"__isSmartRef__":true,"id":909},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":910},"textChunks":[{"__isSmartRef__":true,"id":926}],"charsReplaced":"false","lastFindLoc":28,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":928},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","1A5DC502-21A9-4B18-8878-654818F4C282","88E27517-6524-49AD-AF69-936DADF77DDD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":690},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":929}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 10\nMax: 5 [kW]","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":931},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"909":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(342.6,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"910":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":911},{"__isSmartRef__":true,"id":913},{"__isSmartRef__":true,"id":915},{"__isSmartRef__":true,"id":917},{"__isSmartRef__":true,"id":919},{"__isSmartRef__":true,"id":921},{"__isSmartRef__":true,"id":923}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":925},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"911":{"date":{"__isSmartRef__":true,"id":912},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"912":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"913":{"date":{"__isSmartRef__":true,"id":914},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"914":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"915":{"date":{"__isSmartRef__":true,"id":916},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"916":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"917":{"date":{"__isSmartRef__":true,"id":918},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"918":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"919":{"date":{"__isSmartRef__":true,"id":920},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"920":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"921":{"date":{"__isSmartRef__":true,"id":922},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"922":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"923":{"date":{"__isSmartRef__":true,"id":924},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"924":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"925":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"926":{"style":{"__isSmartRef__":true,"id":927},"chunkOwner":{"__isSmartRef__":true,"id":908},"_id":"_1998","storedString":"Stopped: true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"927":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"928":{"morph":{"__isSmartRef__":true,"id":908},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"929":{"sourceObj":{"__isSmartRef__":true,"id":908},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":690},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":930},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"930":{"source":{"__isSmartRef__":true,"id":908},"target":{"__isSmartRef__":true,"id":690}},"931":{"resizeWidth":true},"932":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(370.9,391.7)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"933":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":934},{"__isSmartRef__":true,"id":936},{"__isSmartRef__":true,"id":938},{"__isSmartRef__":true,"id":940},{"__isSmartRef__":true,"id":942},{"__isSmartRef__":true,"id":944},{"__isSmartRef__":true,"id":946},{"__isSmartRef__":true,"id":948},{"__isSmartRef__":true,"id":950},{"__isSmartRef__":true,"id":952},{"__isSmartRef__":true,"id":954},{"__isSmartRef__":true,"id":956},{"__isSmartRef__":true,"id":958},{"__isSmartRef__":true,"id":960},{"__isSmartRef__":true,"id":962},{"__isSmartRef__":true,"id":964},{"__isSmartRef__":true,"id":966},{"__isSmartRef__":true,"id":968},{"__isSmartRef__":true,"id":970},{"__isSmartRef__":true,"id":972},{"__isSmartRef__":true,"id":974},{"__isSmartRef__":true,"id":976},{"__isSmartRef__":true,"id":978},{"__isSmartRef__":true,"id":980},{"__isSmartRef__":true,"id":982},{"__isSmartRef__":true,"id":984},{"__isSmartRef__":true,"id":986},{"__isSmartRef__":true,"id":988},{"__isSmartRef__":true,"id":990}],"lastModifiedDate":{"__isSmartRef__":true,"id":992},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"934":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":935}},"935":{"isSerializedDate":true,"string":"Fri Jun 21 2013 00:16:24 GMT+0200 (CEST)"},"936":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":937}},"937":{"isSerializedDate":true,"string":"Thu May 30 2013 09:18:06 GMT+0200 (CEST)"},"938":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":939}},"939":{"isSerializedDate":true,"string":"Wed Jan 23 2013 12:57:18 GMT+0100 (CET)"},"940":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":941}},"941":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"942":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":943}},"943":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"944":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":945}},"945":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"946":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":947}},"947":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"948":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":949}},"949":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"950":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":951}},"951":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"952":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":953}},"953":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:35:08 GMT+0200 (CEST)"},"954":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":955}},"955":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:35:51 GMT+0100 (CET)"},"956":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":957}},"957":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:42:31 GMT+0100 (CET)"},"958":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":959}},"959":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:47:05 GMT+0100 (CET)"},"960":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":961}},"961":{"isSerializedDate":true,"string":"Thu May 30 2013 00:36:50 GMT+0200 (CEST)"},"962":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":963}},"963":{"isSerializedDate":true,"string":"Tue Jun 18 2013 20:49:27 GMT+0200 (CEST)"},"964":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":965}},"965":{"isSerializedDate":true,"string":"Tue Jul 30 2013 08:20:51 GMT+0200 (CEST)"},"966":{"date":{"__isSmartRef__":true,"id":967},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"967":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:02:28 GMT+0100 (CET)"},"968":{"date":{"__isSmartRef__":true,"id":969},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"969":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:10:08 GMT+0100 (CET)"},"970":{"date":{"__isSmartRef__":true,"id":971},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"971":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:24:55 GMT+0100 (CET)"},"972":{"date":{"__isSmartRef__":true,"id":973},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"973":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:29:33 GMT+0100 (CET)"},"974":{"date":{"__isSmartRef__":true,"id":975},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"975":{"isSerializedDate":true,"string":"Wed Jan 22 2014 21:07:26 GMT+0100 (CET)"},"976":{"date":{"__isSmartRef__":true,"id":977},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"977":{"isSerializedDate":true,"string":"Wed Jan 22 2014 22:23:13 GMT+0100 (CET)"},"978":{"date":{"__isSmartRef__":true,"id":979},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"979":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:58:48 GMT+0100 (CET)"},"980":{"date":{"__isSmartRef__":true,"id":981},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"981":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:59:27 GMT+0100 (CET)"},"982":{"date":{"__isSmartRef__":true,"id":983},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"983":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:03:44 GMT+0100 (CET)"},"984":{"date":{"__isSmartRef__":true,"id":985},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"985":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:24:12 GMT+0100 (CET)"},"986":{"date":{"__isSmartRef__":true,"id":987},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"987":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:26:15 GMT+0100 (CET)"},"988":{"date":{"__isSmartRef__":true,"id":989},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"989":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:35:38 GMT+0100 (CET)"},"990":{"date":{"__isSmartRef__":true,"id":991},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"991":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:54:51 GMT+0100 (CET)"},"992":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:15 GMT+0100 (CET)"},"993":{"morph":{"__isSmartRef__":true,"id":690},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"994":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":995}},"995":{"test01IsMorph":{"__isSmartRef__":true,"id":996}},"996":{"varMapping":{"__isSmartRef__":true,"id":997},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"997":{"this":{"__isSmartRef__":true,"id":994}},"998":{},"999":{"morph":{"__isSmartRef__":true,"id":690},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"1000":{"morph":{"__isSmartRef__":true,"id":690},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"1001":{"morph":{"__isSmartRef__":true,"id":690},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"1002":{"morph":{"__isSmartRef__":true,"id":690},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"1003":{"morph":{"__isSmartRef__":true,"id":690},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"1004":{"morph":{"__isSmartRef__":true,"id":690},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"1005":{"morph":{"__isSmartRef__":true,"id":690},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"1006":{"morph":{"__isSmartRef__":true,"id":690},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"1007":{"adjustForNewBounds":true},"1008":{"Stopped":true},"1009":{"sourceObj":{"__isSmartRef__":true,"id":690},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":691},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":1010},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1010":{"source":{"__isSmartRef__":true,"id":690},"target":{"__isSmartRef__":true,"id":691}},"1011":{},"1012":{"referencedBy":{"__isSmartRef__":true,"id":1013},"references":{"__isSmartRef__":true,"id":1014}},"1013":{},"1014":{},"1015":{"migrateFrom":{"__isSmartRef__":true,"id":1016},"parsePropeties":{"__isSmartRef__":true,"id":1020},"printProperties":{"__isSmartRef__":true,"id":1024},"parseSimulationSource":{"__isSmartRef__":true,"id":1028},"simulateStep":{"__isSmartRef__":true,"id":1032},"showError":{"__isSmartRef__":true,"id":1035},"throwSimulationProblem":{"__isSmartRef__":true,"id":1039},"updateUI":{"__isSmartRef__":true,"id":1043},"resetStatus":{"__isSmartRef__":true,"id":1047},"simulateOneStep":{"__isSmartRef__":true,"id":1051},"reset":{"__isSmartRef__":true,"id":1055},"resetScriptAnalysis":{"__isSmartRef__":true,"id":1059},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":1063},"logReference":{"__isSmartRef__":true,"id":1067},"showScriptAnalysis":{"__isSmartRef__":true,"id":1071},"showReferenceTo":{"__isSmartRef__":true,"id":1075},"resetSourceHighlighting":{"__isSmartRef__":true,"id":1079},"showNameReference":{"__isSmartRef__":true,"id":1083}},"1016":{"varMapping":{"__isSmartRef__":true,"id":1017},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n \n}","funcProperties":{"__isSmartRef__":true,"id":1018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1017":{"this":{"__isSmartRef__":true,"id":690}},"1018":{"timestamp":{"__isSmartRef__":true,"id":1019},"user":"jenslincke","tags":[]},"1019":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:59 GMT+0100 (CET)"},"1020":{"varMapping":{"__isSmartRef__":true,"id":1021},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":1022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1021":{"this":{"__isSmartRef__":true,"id":690}},"1022":{"timestamp":{"__isSmartRef__":true,"id":1023},"user":"jenslincke","tags":[]},"1023":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:03 GMT+0100 (CET)"},"1024":{"varMapping":{"__isSmartRef__":true,"id":1025},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":1026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1025":{"this":{"__isSmartRef__":true,"id":690}},"1026":{"timestamp":{"__isSmartRef__":true,"id":1027},"user":"jenslincke","tags":[]},"1027":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:34:48 GMT+0100 (CET)"},"1028":{"varMapping":{"__isSmartRef__":true,"id":1029},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":1030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1029":{"this":{"__isSmartRef__":true,"id":690}},"1030":{"timestamp":{"__isSmartRef__":true,"id":1031},"user":"jenslincke","tags":[]},"1031":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:12:57 GMT+0100 (CET)"},"1032":{"varMapping":{"__isSmartRef__":true,"id":1033},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\nthis.get('MeasureData').$.Time = Date.now() / 1000\nthis.get('MeasureData').$.Start = this.get('MeasureData').$.Time\nthis.get('Fuel').$.Gas = 5 * 2 * 3600 // two hours gas\nthis.get('HeatStorage').$.Energy = 0\nthis.get('Battery').$.Energy = 0 \nthis.get('ElectricConsumer').$.Consumed = 0\nthis.get('ElectricConsumer').$.Demand = 1.5\nthis.get('ElectricConsumer').$.Extra = 0\nthis.get('HeatConsumer').$.Consumed = 0\nthis.get('HeatConsumer').$.Demand = 3\nthis.get('HeatConsumer').$.Extra = 0\nthis.get('ThermalPowerStation').$.Heat = 0\nthis.get('HeatingSystem').$.Heat = 0\nthis.get('MeasureData').$.Counter = 10000\nthis.get('SimulationResults').resetData()\nthis.get('SimulationResults').showData()\nthis.get('Battery').$.Max = 0.1 * 3600\nthis.get('HeatStorage').$.Max = 0.1 * 3600 \n\n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":1034},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1033":{"this":{"__isSmartRef__":true,"id":690}},"1034":{},"1035":{"varMapping":{"__isSmartRef__":true,"id":1036},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1037},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1036":{"this":{"__isSmartRef__":true,"id":690}},"1037":{"timestamp":{"__isSmartRef__":true,"id":1038},"user":"jenslincke","tags":[]},"1038":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:11:23 GMT+0100 (CET)"},"1039":{"varMapping":{"__isSmartRef__":true,"id":1040},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":1041},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1040":{"this":{"__isSmartRef__":true,"id":690}},"1041":{"timestamp":{"__isSmartRef__":true,"id":1042},"user":"jenslincke","tags":[]},"1042":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:32:56 GMT+0100 (CET)"},"1043":{"varMapping":{"__isSmartRef__":true,"id":1044},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":1045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1044":{"this":{"__isSmartRef__":true,"id":690}},"1045":{"timestamp":{"__isSmartRef__":true,"id":1046},"user":"jenslincke","tags":[]},"1046":{"isSerializedDate":true,"string":"Sun Jan 26 2014 15:22:09 GMT+0100 (CET)"},"1047":{"varMapping":{"__isSmartRef__":true,"id":1048},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":1049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1048":{"this":{"__isSmartRef__":true,"id":690}},"1049":{"timestamp":{"__isSmartRef__":true,"id":1050},"user":"jenslincke","tags":[]},"1050":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:54:04 GMT+0100 (CET)"},"1051":{"varMapping":{"__isSmartRef__":true,"id":1052},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1052":{"this":{"__isSmartRef__":true,"id":690}},"1053":{"timestamp":{"__isSmartRef__":true,"id":1054},"user":"jenslincke","tags":[]},"1054":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:05:58 GMT+0100 (CET)"},"1055":{"varMapping":{"__isSmartRef__":true,"id":1056},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":1057},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1056":{"this":{"__isSmartRef__":true,"id":690}},"1057":{"timestamp":{"__isSmartRef__":true,"id":1058},"user":"jenslincke","tags":[]},"1058":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:35:44 GMT+0100 (CET)"},"1059":{"varMapping":{"__isSmartRef__":true,"id":1060},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":1061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1060":{"this":{"__isSmartRef__":true,"id":690}},"1061":{"timestamp":{"__isSmartRef__":true,"id":1062},"user":"jenslincke","tags":[]},"1062":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:36:12 GMT+0100 (CET)"},"1063":{"varMapping":{"__isSmartRef__":true,"id":1064},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":1065},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1064":{"this":{"__isSmartRef__":true,"id":690}},"1065":{"timestamp":{"__isSmartRef__":true,"id":1066},"user":"jenslincke","tags":[]},"1066":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:09 GMT+0100 (CET)"},"1067":{"varMapping":{"__isSmartRef__":true,"id":1068},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":1069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1068":{"this":{"__isSmartRef__":true,"id":690}},"1069":{"timestamp":{"__isSmartRef__":true,"id":1070},"user":"jenslincke","tags":[]},"1070":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:15 GMT+0100 (CET)"},"1071":{"varMapping":{"__isSmartRef__":true,"id":1072},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":1073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1072":{"this":{"__isSmartRef__":true,"id":690}},"1073":{"timestamp":{"__isSmartRef__":true,"id":1074},"user":"jenslincke","tags":[]},"1074":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:55:26 GMT+0100 (CET)"},"1075":{"varMapping":{"__isSmartRef__":true,"id":1076},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1076":{"this":{"__isSmartRef__":true,"id":690}},"1077":{"timestamp":{"__isSmartRef__":true,"id":1078},"user":"jenslincke","tags":[]},"1078":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:25 GMT+0100 (CET)"},"1079":{"varMapping":{"__isSmartRef__":true,"id":1080},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":1081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1080":{"this":{"__isSmartRef__":true,"id":690}},"1081":{"timestamp":{"__isSmartRef__":true,"id":1082},"user":"jenslincke","tags":[]},"1082":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:53:47 GMT+0100 (CET)"},"1083":{"varMapping":{"__isSmartRef__":true,"id":1084},"source":"function showNameReference(name) {\n\n if (this.owner.resetSourceHighlighting)\n this.owner.resetSourceHighlighting()\n\n if (name ==this.lastNameReference) {\n this.lastNameReference = null\n return\n }\n var morph = this.get(name)\n if (morph) morph.show().invoke(\"setBorderColor\", Color.yellow)\n\n this.lastNameReference = name;\n this.showReferenceTo(name)\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":1085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1084":{"this":{"__isSmartRef__":true,"id":690}},"1085":{"timestamp":{"__isSmartRef__":true,"id":1086},"user":"jenslincke","tags":[]},"1086":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:32:17 GMT+0100 (CET)"},"1087":{"submorphs":[{"__isSmartRef__":true,"id":1088},{"__isSmartRef__":true,"id":1122}],"scripts":[],"id":"45437653-A6FB-4518-BAD1-87B0A18EDDD2","shape":{"__isSmartRef__":true,"id":1268},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"SimulationResults","partsBinMetaInfo":{"__isSmartRef__":true,"id":1269},"eventHandler":{"__isSmartRef__":true,"id":1305},"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","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37"],"partTests":{"__isSmartRef__":true,"id":1306},"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":689},"prevScroll":[0,0],"data":null,"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"layout":{"__isSmartRef__":true,"id":1311},"#startLetters":"get","table":null,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1312},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(17.8,1261.9)","distanceToDragEvent":"lively.pt(612.8,-8.8)"},"1088":{"submorphs":[{"__isSmartRef__":true,"id":1089}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1094},"eventHandler":{"__isSmartRef__":true,"id":1095},"_ClipMode":"visible","derivationIds":["EC7EBB28-54AE-4244-80ED-3E13650F82B7","9FD2DCE2-B997-4536-B2A5-90D7DD92B3E6","0D8CC908-BD1C-4062-BB03-3FCEB910483D"],"id":"F5FBFDD0-C41E-421E-AE1C-5FE734F0DFB4","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":1089},"_PreviousBorderWidth":1,"isPressed":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":1096},{"__isSmartRef__":true,"id":1098}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"name":"Button6","partsBinMetaInfo":{"__isSmartRef__":true,"id":1100},"pinSpecs":[{"__isSmartRef__":true,"id":1116}],"owner":{"__isSmartRef__":true,"id":1087},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1117},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(10.5,5.0)","distanceToDragEvent":"lively.pt(73.9,-15.2)"},"1089":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1090},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1091}],"eventHandler":{"__isSmartRef__":true,"id":1093},"_ClipMode":"hidden","derivationIds":["7884E73F-0D17-44B3-907F-44A5223F1F3D","444B63A6-D9E7-4AB2-AB57-4A9146C18BFF","08999E10-CCC3-4CAB-99BC-4EF500309EC4"],"id":"B538602E-A8F5-4C41-AE03-E692939D44B4","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1088},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"showsHalos":false,"eventsAreDisabled":true,"_PointerEvents":"none","__serializedExpressions__":["_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"1090":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,20.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1091":{"style":{"__isSmartRef__":true,"id":1092},"chunkOwner":{"__isSmartRef__":true,"id":1089},"_id":"_1301000","storedString":"show","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1092":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1093":{"morph":{"__isSmartRef__":true,"id":1089},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1094":{"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,20.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"1095":{"morph":{"__isSmartRef__":true,"id":1088},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1096":{"sourceObj":{"__isSmartRef__":true,"id":1088},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1088},"targetMethodName":"doAction","varMapping":{"__isSmartRef__":true,"id":1097},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1097":{"source":{"__isSmartRef__":true,"id":1088},"target":{"__isSmartRef__":true,"id":1088}},"1098":{"sourceObj":{"__isSmartRef__":true,"id":1088},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1087},"targetMethodName":"showData","varMapping":{"__isSmartRef__":true,"id":1099},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1099":{"source":{"__isSmartRef__":true,"id":1088},"target":{"__isSmartRef__":true,"id":1087}},"1100":{"partName":"Button","requiredModules":[],"partsSpaceName":"PartsBin/Inputs","comment":"A simple button that calls a method #doAction when pressed.","changes":[{"__isSmartRef__":true,"id":1101},{"__isSmartRef__":true,"id":1103},{"__isSmartRef__":true,"id":1105},{"__isSmartRef__":true,"id":1107},{"__isSmartRef__":true,"id":1109},{"__isSmartRef__":true,"id":1111},{"__isSmartRef__":true,"id":1113}],"migrationLevel":7,"lastModifiedDate":{"__isSmartRef__":true,"id":1115},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1101":{"author":null,"message":"no comment","id":"F8B70225-5143-4A51-ABB4-344B488B3811","date":{"__isSmartRef__":true,"id":1102}},"1102":{"isSerializedDate":true,"string":"Tue Dec 11 2012 22:15:42 GMT+0100 (CET)"},"1103":{"author":"robertkrahn","message":"no comment","id":"9B8B6BE4-4519-4A6C-8F47-70DE61BBB0FB","date":{"__isSmartRef__":true,"id":1104}},"1104":{"isSerializedDate":true,"string":"Tue Dec 11 2012 22:53:16 GMT+0100 (CET)"},"1105":{"author":"robertkrahn","message":"test","id":"ACA617B4-0416-4E3C-9F4D-171A40F44F0F","date":{"__isSmartRef__":true,"id":1106}},"1106":{"isSerializedDate":true,"string":"Wed May 01 2013 05:34:25 GMT+0200 (CEST)"},"1107":{"author":"robertkrahn","message":"no comment","id":"811BDE87-D8DD-48BB-97B2-7A3C3F3FAE32","date":{"__isSmartRef__":true,"id":1108}},"1108":{"isSerializedDate":true,"string":"Wed May 01 2013 05:35:59 GMT+0200 (CEST)"},"1109":{"author":"robertkrahn","message":"no comment","id":"BB2EA501-D9AF-414B-A035-E1487DA6F0FD","date":{"__isSmartRef__":true,"id":1110}},"1110":{"isSerializedDate":true,"string":"Wed May 01 2013 05:36:30 GMT+0200 (CEST)"},"1111":{"author":"Dan","message":"no comment","id":"A594459F-DA9B-49DD-A105-547B3F613CC5","date":{"__isSmartRef__":true,"id":1112}},"1112":{"isSerializedDate":true,"string":"Mon Jun 17 2013 19:22:38 GMT+0200 (CEST)"},"1113":{"author":"Dan","message":"no comment","id":"CFEC4071-14FF-4AEB-A399-197884CD18BF","date":{"__isSmartRef__":true,"id":1114}},"1114":{"isSerializedDate":true,"string":"Mon Jun 17 2013 19:24:50 GMT+0200 (CEST)"},"1115":{"isSerializedDate":true,"string":"Thu Jan 16 2014 10:23:15 GMT+0100 (CET)"},"1116":{"pinName":"fire","modality":"output","type":"Boolean","accessor":"fire","location":1.5},"1117":{"doAction":{"__isSmartRef__":true,"id":1118}},"1118":{"varMapping":{"__isSmartRef__":true,"id":1119},"source":"function doAction() {\n \n}","funcProperties":{"__isSmartRef__":true,"id":1120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1119":{"this":{"__isSmartRef__":true,"id":1088}},"1120":{"user":"undefined","tags":[],"timestamp":{"__isSmartRef__":true,"id":1121}},"1121":{"isSerializedDate":true,"string":"Tue Dec 11 2012 22:14:29 GMT+0100 (CET)"},"1122":{"submorphs":[{"__isSmartRef__":true,"id":1123}],"scripts":[],"id":"8A39C369-64F2-49E2-B969-300BE3FA2DAD","shape":{"__isSmartRef__":true,"id":1218},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"SelectTableClip","partsBinMetaInfo":{"__isSmartRef__":true,"id":1219},"eventHandler":{"__isSmartRef__":true,"id":1261},"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","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","01E4B3FC-1FF3-4030-B17B-68C1E63857DE","702671A1-58AC-4555-BA71-A799379EDB23","1FAC1CD2-DD8D-43E3-9C3C-E9FD1B994F42"],"partTests":{"__isSmartRef__":true,"id":1262},"_ClipMode":"scroll","moved":true,"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"layout":{"__isSmartRef__":true,"id":1267},"owner":{"__isSmartRef__":true,"id":1087},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(41.6,59.6)","distanceToDragEvent":"lively.pt(895.0,-14.0)"},"1123":{"submorphs":[],"scripts":[],"id":"5602496D-C9FB-4C09-9EA7-08E1F179B848","shape":{"__isSmartRef__":true,"id":1124},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Courier","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"Table","partsBinMetaInfo":{"__isSmartRef__":true,"id":1125},"textChunks":[{"__isSmartRef__":true,"id":1145}],"charsReplaced":"0 filename new\n1 Blade/Blade\n3 Blade/Blade Trinity [2004] German DL 1080p.mkv ","lastFindLoc":119,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1147},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","D7847D8B-6A94-44E4-9674-5D9847579898","C84228AF-D934-4BA0-ACAF-843BBB52C480","70140DE5-4179-4E6B-90ED-B8A521019735","54742FA7-B6B6-4441-9AF1-1AA2A4B96873","193F5EE1-9971-4FE2-A34F-3E297F6F50DD","3C2B04B5-D0A6-4065-8C57-A4B5285FC622","47E58543-F10B-4D1F-86D6-A66923C94EF9","83240154-4862-4990-B400-25457100B2CD","554559E9-30A7-43C4-9805-B20D79A01D42","D387334C-E2F0-471A-AC44-3AA59785DEA0"],"_WhiteSpaceHandling":"pre","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"_WordBreak":null,"layout":{"__isSmartRef__":true,"id":1148},"#startLetters":"empha","undoSelectionRange":[110306,110306],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_PreviousBorderWidth":1.48,"table":{"__isSmartRef__":true,"id":1149},"lastSortedColumn":"Time","owner":{"__isSmartRef__":true,"id":1122},"previousSelection":[0,1265],"selectedIndex":5,"connections":{"__isSmartRef__":true,"id":1150},"isSelectingOnClick":true,"textStrint":"mv -v 'Agora 1of2.avi' 'Agora [2009] 1of2.avi'\nmv -v 'Agora 2of2.avi' 'Agora [2009] 2of2.avi'\nmv -v 'Alien/Aliens vs. Predator 2 [De].avi' 'Alien/Monsters vs Aliens [2009] De.avi'\nmv -v 'An Education [2010].avi' 'An Education [2009].avi'\nmv -v 'Aufstand der Tiere.avi' 'Koka, Terror und der Inka-Aufstand [2009].avi'\nmv -v 'Besouro [2009] de.mkv' 'The Assailant [2009] de.mkv'\nmv -v 'Bud Spencer Terence Hill Collection/Bomber [en].avi' 'Bud Spencer Terence Hill Collection/Bomber [2009] en.avi'\nmv -v 'Der fantastische Mr Fox [2009] en de.mkv' 'Fantastic Mr Fox [2009] en de.mkv'\nmv -v 'Der Hobbit - Eine Unerwartete Reise [2012] DL 1080p.mkv' 'Kolonialmama - Eine Reise in die Gegenwart der Vergangenheit [2009] DL 1080p.mkv'\nmv -v 'Der Staatsfeind Nr1 1von2 [de].avi' 'Chinas Staatsfeindin Nr1 - Rebiya Kadeers Kampf für die Uiguren [2009] de.avi'\nmv -v 'Der Staatsfeind Nr1 2von2 [de].avi' 'Chinas Staatsfeindin Nr1 - Rebiya Kadeers Kampf für die Uiguren [2009] de.avi'\nmv -v 'Die Logan Verschwoerung [2012] DL 1080p.mkv' 'Verschwörung gegen die Republik [2009] DL 1080p.mkv'\nmv -v 'Die Monster AG [2001] DL 1080p.mkv' 'Monsieur Noir und die Monster aus dem Keller [2009] DL 1080p.mkv'\nmv -v 'Die Päpstin [2009] en de.mkv' 'Pope Joan [2009] en de.mkv'\nmv -v 'Eine wie keine [de].avi' 'Eine wie Keine [2009] de.avi'\nmv -v 'Hachiko [2009] en de.mkv' 'Hachi A Dogs Tale [2009] en de.mkv'\nmv -v 'Hangover [2009] DL 1080p.mkv' 'The Hangover [2009] DL 1080p.mkv'\nmv -v 'Illuminati 720p.mkv' 'The Conspiracy to Rule the World From 911 to the Illuminati [2009].mkv'\nmv -v 'I Love You Man [2009] Eng.mkv' 'I Love You, Man [2009] Eng.mkv'\nmv -v 'La Teta Asustada [esp comment].avi' 'The Milk of Sorrow [2009] esp comment.avi'\nmv -v 'Millenium 1 - Verblendung [2009] de swe.mkv' 'The Girl with the Dragon Tattoo [2009] de swe.mkv'\nmv -v 'Monty Python Movies/Monty Python - Jabberwocky [1977].avi' 'Monty Python Movies/Monty Python Almost the Truth - Lawyers Cut [2009].avi'\nmv -v 'Monty Python Movies/wunderbare welt der schwerkraft [de].avi' 'Monty Python Movies/Die wundersame Welt der Waschkraft [2009] de.avi'\nmv -v 'Ondine [2008] en de.mkv' 'Ondine [2009] en de.mkv'\nmv -v 'Pelham 123 720p.mkv' 'The Taking of Pelham 1 2 3 [2009].mkv'\nmv -v 'Public Enemies.mkv' 'Public Enemies [2009].mkv'\nmv -v 'Schwerkraft [2009] de.mkv' 'Gravity [2009] de.mkv'\nmv -v 'Star Trek XI [2009] German BASTIAN CUT.mkv' 'Star Trek [2009] German BASTIAN CUT.mkv'\nmv -v 'Terminator/Terminator 4 Die Erloesung [2009] DL 1080p.mkv' 'Terminator/Terminator Salvation [2009] DL 1080p.mkv'\nmv -v 'The Bad Lieutenant Port of Call New Orleans.avi' 'The Bad Lieutenant Port of Call - New Orleans [2009].avi'\nmv -v 'The Boat That Rocked [2009] en de.mkv' 'Pirate Radio [2009] en de.mkv'\nmv -v 'The Imaginarium of Doctor Parnassus.mkv' 'The Imaginarium of Doctor Parnassus [2009].mkv'\nmv -v 'The Princess And The Frog.avi' 'The Princess and the Frog [2009].avi'\nmv -v 'Up In The Air [2009].avi' 'Up in the Air [2009].avi'\nmv -v 'Verblendung [2011] German DL 1080p.mkv' 'The Girl with the Dragon Tattoo [2009] German DL 1080p.mkv'\nmv -v 'Walhalla [1986] de.avi' 'Valhalla Rising [2009] de.avi'\nmv -v 'Watchmen [2008] en de.mkv' 'Watchmen [2009] en de.mkv'\nmv -v 'Wiedersehen in St. Petersburg [De].avi' 'Here and There [2009] De.avi'\nmv -v 'Wild Things 1of2 [de].avi' 'Where the Wild Things Are [2009] 1of2 de.avi'\nmv -v 'Wild Things 2of2 [de].avi' 'Where the Wild Things Are [2009] 2of2 de.avi'","draggingEnabled":false,"attributeConnections":[{"__isSmartRef__":true,"id":1153}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"selection":{"__isSmartRef__":true,"id":1155},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1157},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(7.0,12.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(982.0,-15.0)"},"1124":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_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(16.0,433.0)","_BorderColor":"Color.rgb(174,174,174)","_Padding":"lively.rect(4,2,0,0)"},"1125":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":4,"comment":"A Lively quick and dirty text based table, with sorting support. ","partName":"QuickTable","changes":[{"__isSmartRef__":true,"id":1126},{"__isSmartRef__":true,"id":1128},{"__isSmartRef__":true,"id":1130},{"__isSmartRef__":true,"id":1132},{"__isSmartRef__":true,"id":1134},{"__isSmartRef__":true,"id":1136},{"__isSmartRef__":true,"id":1138},{"__isSmartRef__":true,"id":1140},{"__isSmartRef__":true,"id":1142}],"lastModifiedDate":{"__isSmartRef__":true,"id":1144},"revisionOnLoad":198869,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1126":{"date":{"__isSmartRef__":true,"id":1127},"author":"jenslincke","message":"no comment","id":"F894103D-2AFC-4A59-B45B-FD2194723ECC"},"1127":{"isSerializedDate":true,"string":"Sat Aug 17 2013 19:54:22 GMT+0200 (CEST)"},"1128":{"date":{"__isSmartRef__":true,"id":1129},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"1129":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"1130":{"date":{"__isSmartRef__":true,"id":1131},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"1131":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"1132":{"date":{"__isSmartRef__":true,"id":1133},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"1133":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"1134":{"date":{"__isSmartRef__":true,"id":1135},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"1135":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"1136":{"date":{"__isSmartRef__":true,"id":1137},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"1137":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"1138":{"date":{"__isSmartRef__":true,"id":1139},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"1139":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"1140":{"date":{"__isSmartRef__":true,"id":1141},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"1141":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"1142":{"date":{"__isSmartRef__":true,"id":1143},"author":"jenslincke","message":"no comment","id":"93CE95E3-4E54-4AEF-AF54-7EF6CA88FE4E"},"1143":{"isSerializedDate":true,"string":"Tue Aug 13 2013 17:32:37 GMT+0200 (CEST)"},"1144":{"isSerializedDate":true,"string":"Sat Aug 17 2013 19:49:33 GMT+0200 (CEST)"},"1145":{"style":{"__isSmartRef__":true,"id":1146},"chunkOwner":{"__isSmartRef__":true,"id":1123},"_id":"_2894","storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1146":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1147":{"morph":{"__isSmartRef__":true,"id":1123},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1148":{"adjustForNewBounds":true,"resizeWidth":true,"resizeHeight":true},"1149":{"columns":[],"data":[]},"1150":{"selection":{"__isSmartRef__":true,"id":1151},"selectionIndex":{"__isSmartRef__":true,"id":1152}},"1151":{},"1152":{},"1153":{"sourceObj":{"__isSmartRef__":true,"id":1123},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":1154},"targetMethodName":"selectFile","varMapping":{"__isSmartRef__":true,"id":1156},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1154":{"isCopyMorphRef":true,"morphRefId":1,"selectFile":{"__isSmartRef__":true,"id":1155}},"1155":{"Gas":89.36,"Heat":0.27488,"Battery":0.103267,"ConsumedPower":0.039087,"ConsumedHeat":0.084038,"TWP":31.970143,"HS":17.254357,"Total":89.979152,"Time":1390819607.6749947,"lastIndex":5},"1156":{"source":{"__isSmartRef__":true,"id":1123},"target":{"__isSmartRef__":true,"id":1154}},"1157":{"onrestore":{"__isSmartRef__":true,"id":1158},"setTableTSV":{"__isSmartRef__":true,"id":1166},"setTable":{"__isSmartRef__":true,"id":1170},"printTableSortedBy":{"__isSmartRef__":true,"id":1174},"sortTableBy":{"__isSmartRef__":true,"id":1178},"onMouseUp":{"__isSmartRef__":true,"id":1182},"reset":{"__isSmartRef__":true,"id":1190},"setPlainText":{"__isSmartRef__":true,"id":1194},"selectRow":{"__isSmartRef__":true,"id":1198},"onDownPressed":{"__isSmartRef__":true,"id":1202},"onUpPressed":{"__isSmartRef__":true,"id":1210}},"1158":{"varMapping":{"__isSmartRef__":true,"id":1159},"source":"function onrestore() {\n // hack, is fixedWidth not persisted?\n this.applyStyle({fixedWidth: false})\n}","funcProperties":{"__isSmartRef__":true,"id":1164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1159":{"this":{"__isSmartRef__":true,"id":1123},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1160}},"1160":{"$super":{"__isSmartRef__":true,"id":1161}},"1161":{"varMapping":{"__isSmartRef__":true,"id":1162},"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":1163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1162":{"obj":{"__isSmartRef__":true,"id":1123},"name":"onrestore"},"1163":{},"1164":{"timestamp":{"__isSmartRef__":true,"id":1165},"user":"jenslincke","tags":[]},"1165":{"isSerializedDate":true,"string":"Thu Apr 18 2013 11:53:11 GMT+0200 (CEST)"},"1166":{"varMapping":{"__isSmartRef__":true,"id":1167},"source":"function setTableTSV(string) {\n var table = Strings.lines(string).collect(function(ea) {\n return ea.split(\"\\t\")\n })\n this.setTable(table)\n}","funcProperties":{"__isSmartRef__":true,"id":1168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1167":{"this":{"__isSmartRef__":true,"id":1123}},"1168":{"timestamp":{"__isSmartRef__":true,"id":1169},"user":"jenslincke","tags":[]},"1169":{"isSerializedDate":true,"string":"Tue Aug 13 2013 17:16:18 GMT+0200 (CEST)"},"1170":{"varMapping":{"__isSmartRef__":true,"id":1171},"source":"function setTable(table) {\n this.table = table\n this.printTableSortedBy(table)\n}","funcProperties":{"__isSmartRef__":true,"id":1172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1171":{"this":{"__isSmartRef__":true,"id":1123}},"1172":{"timestamp":{"__isSmartRef__":true,"id":1173},"user":"jenslincke","tags":[]},"1173":{"isSerializedDate":true,"string":"Tue Aug 13 2013 17:19:21 GMT+0200 (CEST)"},"1174":{"varMapping":{"__isSmartRef__":true,"id":1175},"source":"function printTableSortedBy(table, column) {\n if (!table) return \n this.isSelectingOnClick = true\n this.currenColumnName = column;\n var header = this.table.columns;\n var data = this.table.data\n if (column) {\n data = data.sortBy(function(ea) { return ea[column]})\n if (this.lastSortedColumn == column) {\n this.lastSortedColumn = null\n data = data.reverse()\n } else {\n this.lastSortedColumn = column \n }\n }\n data.each(function(ea, index) { ea.lastIndex = index})\n\n table = data.collect(function(row) {\n return header.collect(function(column) { return row[column]})\n })\n\n table = [header].concat(table)\n var indexedTable = table.collect(function(ea, index) { return [index].concat(ea)})\n this.textString = Strings.printTable(indexedTable);\n var s = this.textString\n var columnNames = table.first();\n columnNames.each(function(ea) {\n this.emphasize(\n {\n fontWeight: 'bold',\n doit: {code: 'this.sortTableBy(\"' + ea + '\")', context: this}\n },\n s.indexOf(ea), s.indexOf(ea) + ea.length\n )\n }, this)\n\n this.setFixedWidth(false)\n\n}","funcProperties":{"__isSmartRef__":true,"id":1176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1175":{"this":{"__isSmartRef__":true,"id":1123}},"1176":{"timestamp":{"__isSmartRef__":true,"id":1177},"user":"jenslincke","tags":[]},"1177":{"isSerializedDate":true,"string":"Sat Jan 04 2014 23:17:38 GMT+0100 (CET)"},"1178":{"varMapping":{"__isSmartRef__":true,"id":1179},"source":"function sortTableBy(columnName) {\n this.printTableSortedBy(this.table, columnName);\n}","funcProperties":{"__isSmartRef__":true,"id":1180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1179":{"this":{"__isSmartRef__":true,"id":1123}},"1180":{"timestamp":{"__isSmartRef__":true,"id":1181},"user":"jenslincke","tags":[]},"1181":{"isSerializedDate":true,"string":"Tue Aug 13 2013 17:19:30 GMT+0200 (CEST)"},"1182":{"varMapping":{"__isSmartRef__":true,"id":1183},"source":"function onMouseUp(evt) {\n if(!this.isSelectingOnClick) return $super(evt)\n this.selectCurrentLine()\n this.selectedIndex = new Number(this.getSelectionOrLineString().replace(/ .*/,\"\"))\n // alertOK(\"\" + this.getSelectionOrLineString() +\": \"+ this.selectedIndex)\n this.selectRow(this.selectedIndex)\n}","funcProperties":{"__isSmartRef__":true,"id":1188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1183":{"this":{"__isSmartRef__":true,"id":1123},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1184}},"1184":{"$super":{"__isSmartRef__":true,"id":1185}},"1185":{"varMapping":{"__isSmartRef__":true,"id":1186},"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":1187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1186":{"obj":{"__isSmartRef__":true,"id":1123},"name":"onMouseUp"},"1187":{},"1188":{"timestamp":{"__isSmartRef__":true,"id":1189},"user":"jenslincke","tags":[]},"1189":{"isSerializedDate":true,"string":"Sat Jan 04 2014 23:29:28 GMT+0100 (CET)"},"1190":{"varMapping":{"__isSmartRef__":true,"id":1191},"source":"function reset() {\n this.connections = {selection: {}, selectionIndex: {}}\n}","funcProperties":{"__isSmartRef__":true,"id":1192},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1191":{"this":{"__isSmartRef__":true,"id":1123}},"1192":{"timestamp":{"__isSmartRef__":true,"id":1193},"user":"jenslincke","tags":[]},"1193":{"isSerializedDate":true,"string":"Fri Dec 20 2013 14:40:39 GMT+0100 (CET)"},"1194":{"varMapping":{"__isSmartRef__":true,"id":1195},"source":"function setPlainText(s) {\n this.isSelectingOnClick = false\n this.textString = s\n}","funcProperties":{"__isSmartRef__":true,"id":1196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1195":{"this":{"__isSmartRef__":true,"id":1123}},"1196":{"timestamp":{"__isSmartRef__":true,"id":1197},"user":"jenslincke","tags":[]},"1197":{"isSerializedDate":true,"string":"Tue Dec 31 2013 15:24:12 GMT+0100 (CET)"},"1198":{"varMapping":{"__isSmartRef__":true,"id":1199},"source":"function selectRow(index) {\n this.emphasizeAll({backgroundColor: null})\n this.selectedIndex = Math.max(1, Math.min(this.table.data.length - 1, index))\n this.selection = this.table.data.detect(function(ea) { return ea.lastIndex == this.selectedIndex }.bind(this))\n this.emphasizeRegex(new RegExp(\"(^|\\n)\"+ this.selectedIndex + \" .+(\\n|$)\",'g'), {backgroundColor: Color.gray})\n}","funcProperties":{"__isSmartRef__":true,"id":1200},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1199":{"this":{"__isSmartRef__":true,"id":1123}},"1200":{"timestamp":{"__isSmartRef__":true,"id":1201},"user":"jenslincke","tags":[]},"1201":{"isSerializedDate":true,"string":"Sat Jan 04 2014 23:27:27 GMT+0100 (CET)"},"1202":{"varMapping":{"__isSmartRef__":true,"id":1203},"source":"function onDownPressed() {\n if(!this.isSelectingOnClick) return $super(evt)\n this.selectRow(this.selectedIndex + 1)\n}","funcProperties":{"__isSmartRef__":true,"id":1208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1203":{"this":{"__isSmartRef__":true,"id":1123},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1204}},"1204":{"$super":{"__isSmartRef__":true,"id":1205}},"1205":{"varMapping":{"__isSmartRef__":true,"id":1206},"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":1207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1206":{"obj":{"__isSmartRef__":true,"id":1123},"name":"onDownPressed"},"1207":{},"1208":{"timestamp":{"__isSmartRef__":true,"id":1209},"user":"jenslincke","tags":[]},"1209":{"isSerializedDate":true,"string":"Wed Jan 01 2014 23:38:26 GMT+0100 (CET)"},"1210":{"varMapping":{"__isSmartRef__":true,"id":1211},"source":"function onUpPressed() {\n if(!this.isSelectingOnClick) return $super(evt)\n this.selectRow(this.selectedIndex - 1)\n}","funcProperties":{"__isSmartRef__":true,"id":1216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1211":{"this":{"__isSmartRef__":true,"id":1123},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1212}},"1212":{"$super":{"__isSmartRef__":true,"id":1213}},"1213":{"varMapping":{"__isSmartRef__":true,"id":1214},"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":1215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1214":{"obj":{"__isSmartRef__":true,"id":1123},"name":"onUpPressed"},"1215":{},"1216":{"timestamp":{"__isSmartRef__":true,"id":1217},"user":"jenslincke","tags":[]},"1217":{"isSerializedDate":true,"string":"Wed Jan 01 2014 23:38:40 GMT+0100 (CET)"},"1218":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(1010.0,568.9)","_BorderColor":"Color.rgb(219,219,219)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"1219":{"partsSpaceName":"PartsBin/Widgets/","comment":"A quick and dirty table with clip","migrationLevel":4,"partName":"SelectTableClip","changes":[{"__isSmartRef__":true,"id":1220},{"__isSmartRef__":true,"id":1222},{"__isSmartRef__":true,"id":1224},{"__isSmartRef__":true,"id":1226},{"__isSmartRef__":true,"id":1228},{"__isSmartRef__":true,"id":1230},{"__isSmartRef__":true,"id":1232},{"__isSmartRef__":true,"id":1234},{"__isSmartRef__":true,"id":1236},{"__isSmartRef__":true,"id":1238},{"__isSmartRef__":true,"id":1240},{"__isSmartRef__":true,"id":1242},{"__isSmartRef__":true,"id":1244},{"__isSmartRef__":true,"id":1246},{"__isSmartRef__":true,"id":1248},{"__isSmartRef__":true,"id":1250},{"__isSmartRef__":true,"id":1252},{"__isSmartRef__":true,"id":1254},{"__isSmartRef__":true,"id":1256},{"__isSmartRef__":true,"id":1258}],"lastModifiedDate":{"__isSmartRef__":true,"id":1260},"revisionOnLoad":204376,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1220":{"date":{"__isSmartRef__":true,"id":1221},"author":"jenslincke","message":"no comment","id":"B9BE1BEE-DAE1-4747-9D07-40017E825BC0"},"1221":{"isSerializedDate":true,"string":"Sat Jan 25 2014 12:37:34 GMT+0100 (CET)"},"1222":{"date":{"__isSmartRef__":true,"id":1223},"author":"jenslincke","message":"no comment","id":"E4C7498C-EAC9-4C91-A754-EE39F951E6F8"},"1223":{"isSerializedDate":true,"string":"Wed Dec 04 2013 15:26:15 GMT+0100 (CET)"},"1224":{"date":{"__isSmartRef__":true,"id":1225},"author":"jenslincke","message":"no comment","id":"711F9AD5-2F47-444A-883D-F445555F6B29"},"1225":{"isSerializedDate":true,"string":"Wed Dec 04 2013 15:25:56 GMT+0100 (CET)"},"1226":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":1227}},"1227":{"isSerializedDate":true,"string":"Tue Jul 30 2013 08:20:51 GMT+0200 (CEST)"},"1228":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":1229}},"1229":{"isSerializedDate":true,"string":"Tue Jun 18 2013 20:49:27 GMT+0200 (CEST)"},"1230":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":1231}},"1231":{"isSerializedDate":true,"string":"Thu May 30 2013 00:36:50 GMT+0200 (CEST)"},"1232":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":1233}},"1233":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:47:05 GMT+0100 (CET)"},"1234":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":1235}},"1235":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:42:31 GMT+0100 (CET)"},"1236":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":1237}},"1237":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:35:51 GMT+0100 (CET)"},"1238":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":1239}},"1239":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:35:08 GMT+0200 (CEST)"},"1240":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":1241}},"1241":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"1242":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":1243}},"1243":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"1244":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":1245}},"1245":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"1246":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":1247}},"1247":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"1248":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":1249}},"1249":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"1250":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":1251}},"1251":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"1252":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":1253}},"1253":{"isSerializedDate":true,"string":"Wed Jan 23 2013 12:57:18 GMT+0100 (CET)"},"1254":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":1255}},"1255":{"isSerializedDate":true,"string":"Thu May 30 2013 09:18:06 GMT+0200 (CEST)"},"1256":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":1257}},"1257":{"isSerializedDate":true,"string":"Fri Jun 21 2013 00:16:24 GMT+0200 (CEST)"},"1258":{"date":{"__isSmartRef__":true,"id":1259},"author":"jenslincke","message":"no comment","id":"CD00CB2E-7C38-470A-AFBD-420B0B8E7A73"},"1259":{"isSerializedDate":true,"string":"Sat Jan 04 2014 22:05:34 GMT+0100 (CET)"},"1260":{"isSerializedDate":true,"string":"Sat Jan 25 2014 12:36:33 GMT+0100 (CET)"},"1261":{"morph":{"__isSmartRef__":true,"id":1122},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1262":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1263}},"1263":{"test01IsMorph":{"__isSmartRef__":true,"id":1264}},"1264":{"varMapping":{"__isSmartRef__":true,"id":1265},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1265":{"this":{"__isSmartRef__":true,"id":1262}},"1266":{},"1267":{"resizeWidth":true,"resizeHeight":true},"1268":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(1065.1,635.6)","_BorderColor":"Color.rgb(200,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"1269":{"partsSpaceName":"PartsBin/Basic","comment":"A plain simple rectangle","migrationLevel":4,"partName":"ValueInput","changes":[{"__isSmartRef__":true,"id":1270},{"__isSmartRef__":true,"id":1272},{"__isSmartRef__":true,"id":1274},{"__isSmartRef__":true,"id":1276},{"__isSmartRef__":true,"id":1278},{"__isSmartRef__":true,"id":1280},{"__isSmartRef__":true,"id":1282},{"__isSmartRef__":true,"id":1284},{"__isSmartRef__":true,"id":1286},{"__isSmartRef__":true,"id":1288},{"__isSmartRef__":true,"id":1290},{"__isSmartRef__":true,"id":1292},{"__isSmartRef__":true,"id":1294},{"__isSmartRef__":true,"id":1296},{"__isSmartRef__":true,"id":1298},{"__isSmartRef__":true,"id":1300},{"__isSmartRef__":true,"id":1302}],"lastModifiedDate":{"__isSmartRef__":true,"id":1304},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1270":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":1271}},"1271":{"isSerializedDate":true,"string":"Fri Jun 21 2013 00:16:24 GMT+0200 (CEST)"},"1272":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":1273}},"1273":{"isSerializedDate":true,"string":"Thu May 30 2013 09:18:06 GMT+0200 (CEST)"},"1274":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":1275}},"1275":{"isSerializedDate":true,"string":"Wed Jan 23 2013 12:57:18 GMT+0100 (CET)"},"1276":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":1277}},"1277":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"1278":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":1279}},"1279":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"1280":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":1281}},"1281":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"1282":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":1283}},"1283":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"1284":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":1285}},"1285":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"1286":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":1287}},"1287":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"1288":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":1289}},"1289":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:35:08 GMT+0200 (CEST)"},"1290":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":1291}},"1291":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:35:51 GMT+0100 (CET)"},"1292":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":1293}},"1293":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:42:31 GMT+0100 (CET)"},"1294":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":1295}},"1295":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:47:05 GMT+0100 (CET)"},"1296":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":1297}},"1297":{"isSerializedDate":true,"string":"Thu May 30 2013 00:36:50 GMT+0200 (CEST)"},"1298":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":1299}},"1299":{"isSerializedDate":true,"string":"Tue Jun 18 2013 20:49:27 GMT+0200 (CEST)"},"1300":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":1301}},"1301":{"isSerializedDate":true,"string":"Tue Jul 30 2013 08:20:51 GMT+0200 (CEST)"},"1302":{"date":{"__isSmartRef__":true,"id":1303},"author":"jenslincke","message":"no comment","id":"D32C43BE-72DA-4F02-84D0-AFA7B3DFFA74"},"1303":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:19:45 GMT+0100 (CET)"},"1304":{"isSerializedDate":true,"string":"Thu Aug 15 2013 21:21:30 GMT+0200 (CEST)"},"1305":{"morph":{"__isSmartRef__":true,"id":1087},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1306":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1307}},"1307":{"test01IsMorph":{"__isSmartRef__":true,"id":1308}},"1308":{"varMapping":{"__isSmartRef__":true,"id":1309},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1310},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1309":{"this":{"__isSmartRef__":true,"id":1306}},"1310":{},"1311":{"adjustForNewBounds":true},"1312":{"addData":{"__isSmartRef__":true,"id":1313},"resetData":{"__isSmartRef__":true,"id":1317},"showData":{"__isSmartRef__":true,"id":1321}},"1313":{"varMapping":{"__isSmartRef__":true,"id":1314},"source":"function addData(date) {\n if(!this.table) this.table = { columns: Properties.own(date), data: []}\n this.table.data.push(date)\n}","funcProperties":{"__isSmartRef__":true,"id":1315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1314":{"this":{"__isSmartRef__":true,"id":1087}},"1315":{"timestamp":{"__isSmartRef__":true,"id":1316},"user":"jenslincke","tags":[]},"1316":{"isSerializedDate":true,"string":"Sat Jan 25 2014 12:43:11 GMT+0100 (CET)"},"1317":{"varMapping":{"__isSmartRef__":true,"id":1318},"source":"function resetData(date) {\n this.table = null\n}","funcProperties":{"__isSmartRef__":true,"id":1319},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1318":{"this":{"__isSmartRef__":true,"id":1087}},"1319":{"timestamp":{"__isSmartRef__":true,"id":1320},"user":"jenslincke","tags":[]},"1320":{"isSerializedDate":true,"string":"Sat Jan 25 2014 16:51:34 GMT+0100 (CET)"},"1321":{"varMapping":{"__isSmartRef__":true,"id":1322},"source":"function showData() {\n this.get(\"Table\").setTable(this.table || {columns: [], data: []})\n if (!this.table) {\n this.get(\"Visualization\").clear()\n } else {\n this.get(\"Visualization\").draw()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1322":{"this":{"__isSmartRef__":true,"id":1087}},"1323":{"timestamp":{"__isSmartRef__":true,"id":1324},"user":"jenslincke","tags":[]},"1324":{"isSerializedDate":true,"string":"Sat Jan 25 2014 23:21:11 GMT+0100 (CET)"},"1325":{"#startLetters":"d3","_ClipMode":"visible","_traitConfig_":[{"__isSmartRef__":true,"id":1326},{"__isSmartRef__":true,"id":1328}],"derivationIds":[null,"3C1D17F3-0044-4726-B85A-A251A1F703B8","E43FA7DD-9693-40B9-8E88-821D5DCC0811","9FB8D17D-9023-44E8-9410-8AD268E25C75","9BD8C9A7-2A05-43C2-B96B-5EBD5ED44A95","54E9039F-4D91-48B7-B91C-8338A0BEC1F7","1A5EB7AE-1AC3-4FA6-8CF2-0835DF44CFA1","70EF3E19-6C17-4AF7-8C9B-406C7086FDB9","F339FE29-2DCB-412C-AC2A-3427836D8E01","1C09A3B2-9BEC-4791-8140-328F82C79025","717B61B6-1ED9-4352-89F1-215B0148A491","7C62382C-A5E1-4302-BA7E-79A1EAB06592","D7236C84-FA4D-4A12-A484-272D5B76E919","10F38E43-8F87-4ED9-B839-C55255A3C121","2AC30033-165B-4812-9CFE-3056BB5B211B","CFB6B1E6-8C7E-4A34-BFE7-27D8FB6E9570","4628B9BA-F948-4874-95EC-B0E1E6615699","51FD6EA3-83B2-4E5B-985E-88F399944801","1E1F9B91-A691-4B7F-B963-AFC5B3A6A38F","46F2A1FD-11EA-41D1-945E-A857D86982B0"],"__layered_droppingEnabled__":false,"eventHandler":{"__isSmartRef__":true,"id":1330},"halosEnabled":true,"id":"D5302711-DBC5-4969-ADA0-F60EDC50FAA8","isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":1331},"name":"Visualization","partsBinMetaInfo":{"__isSmartRef__":true,"id":1332},"prevScroll":[0,0],"scripts":[],"shape":{"__isSmartRef__":true,"id":1352},"showsHalos":false,"submorphs":[],"xUnit":"words","yUnit":"ms","yValues":[1,0,2,4,4,2,2,6,6,5,1],"doNotSerialize":["chart","svgNode","data","lastNode"],"isLockOwner":false,"grabbingEnabled":false,"nextDataIndex":6,"nextDataInde":0,"nextDataIndex2":null,"moved":true,"_StyleSheet":{"__isSmartRef__":true,"id":1398},"_StyleClassNames":["Morph","HtmlWrapperMorph"],"isCopyMorphRef":true,"morphRefId":1,"owner":{"__isSmartRef__":true,"id":689},"scaleDetail":0.045,"attributeConnections":[{"__isSmartRef__":true,"id":1355},{"__isSmartRef__":true,"id":1386}],"target":{"__isSmartRef__":true,"id":1408},"_Visible":true,"nodeSizeFuncions":[],"nodeSizeFunctions":null,"lastD3Translate":[-67,-117],"lastD3Scale":0.206,"_PreviousBorderWidth":0,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","updateDelayed","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1409},"__LivelyClassName__":"lively.morphic.HtmlWrapperMorph","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","distanceToDragEvent":"lively.pt(720.5,-6.0)","updateDelayed":"lively.pt(1071.0,413.0)","_Position":"lively.pt(14.6,835.8)"},"1326":{"options":{"__isSmartRef__":true,"id":1327},"traitName":"d3WrapperTrait"},"1327":{},"1328":{"options":{"__isSmartRef__":true,"id":1329},"traitName":"apps.d3Interface.d3WrapperTrait"},"1329":{},"1330":{"morph":{"__isSmartRef__":true,"id":1325},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1331":{"resizeHeight":true,"resizeWidth":true,"adjustForNewBounds":true},"1332":{"#startLetters":"","partName":"MultiLineChart","requiredModules":["apps.d3Interface"],"partsSpaceName":"PartsBin/Visualization/","comment":"A simple D3 Line Chart","changes":[{"__isSmartRef__":true,"id":1333},{"__isSmartRef__":true,"id":1335},{"__isSmartRef__":true,"id":1337},{"__isSmartRef__":true,"id":1339},{"__isSmartRef__":true,"id":1341},{"__isSmartRef__":true,"id":1343},{"__isSmartRef__":true,"id":1345},{"__isSmartRef__":true,"id":1347},{"__isSmartRef__":true,"id":1349}],"migrationLevel":4,"lastModifiedDate":{"__isSmartRef__":true,"id":1351},"revisionOnLoad":204389,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1333":{"date":{"__isSmartRef__":true,"id":1334},"author":"jenslincke","message":"no comment","id":"900E924E-3DCD-4D36-8A5E-D127326B5E11"},"1334":{"isSerializedDate":true,"string":"Fri Jan 18 2013 11:57:37 GMT+0100 (CET)"},"1335":{"date":{"__isSmartRef__":true,"id":1336},"author":"jenslincke","message":"no comment","id":"EA8F98BC-8C7A-4CAE-AE29-018891B193BD"},"1336":{"isSerializedDate":true,"string":"Tue Dec 18 2012 13:13:31 GMT+0100 (CET)"},"1337":{"date":{"__isSmartRef__":true,"id":1338},"author":"jenslincke","message":"no comment","id":"0755F3DA-DF64-42F7-ABDB-3C44A0BB26AE"},"1338":{"isSerializedDate":true,"string":"Tue Dec 18 2012 13:13:06 GMT+0100 (CET)"},"1339":{"date":{"__isSmartRef__":true,"id":1340},"author":"jenslincke","message":"no comment","id":"7D1101AA-8EAA-45A3-815A-CD8CA3E33E22"},"1340":{"isSerializedDate":true,"string":"Fri Jan 18 2013 14:24:46 GMT+0100 (CET)"},"1341":{"date":{"__isSmartRef__":true,"id":1342},"author":"jenslincke","message":"no comment","id":"1DF7B5DC-D35D-48A1-96CC-D41D3A09E32D"},"1342":{"isSerializedDate":true,"string":"Fri Jan 18 2013 14:26:16 GMT+0100 (CET)"},"1343":{"date":{"__isSmartRef__":true,"id":1344},"author":"jenslincke","message":"no comment","id":"49533FF8-27AF-4D61-AF07-8C2333C56248"},"1344":{"isSerializedDate":true,"string":"Fri Jan 18 2013 15:16:13 GMT+0100 (CET)"},"1345":{"date":{"__isSmartRef__":true,"id":1346},"author":"jenslincke","message":"no comment","id":"A98DE527-3D34-4333-9255-890015DC8B5E"},"1346":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:24:08 GMT+0100 (CET)"},"1347":{"date":{"__isSmartRef__":true,"id":1348},"author":"jenslincke","message":"no comment","id":"77112C1B-2C37-4754-B188-C360914F510C"},"1348":{"isSerializedDate":true,"string":"Sat Jan 25 2014 11:01:33 GMT+0100 (CET)"},"1349":{"date":{"__isSmartRef__":true,"id":1350},"author":"jenslincke","message":"no comment","id":"561EE98D-611F-4EBF-B30F-A46912687098"},"1350":{"isSerializedDate":true,"string":"Sat Jan 25 2014 16:24:57 GMT+0100 (CET)"},"1351":{"isSerializedDate":true,"string":"Sat Jan 25 2014 16:23:56 GMT+0100 (CET)"},"1352":{"_BorderRadius":0,"_BorderStyle":"solid","_BorderWidth":0,"_Opacity":1,"stringifiedShapeNode":"","_AppearanceStylingMode":false,"_BorderStylingMode":true,"attributeConnections":[{"__isSmartRef__":true,"id":1353},{"__isSmartRef__":true,"id":1384},{"__isSmartRef__":true,"id":1362},{"__isSmartRef__":true,"id":1388}],"doNotSerialize":["$$_Extent"],"doNotCopyProperties":["$$_Extent"],"__serializedExpressions__":["_BorderColor","_Fill","_Padding","_Position","extent","_Extent"],"__LivelyClassName__":"lively.morphic.Shapes.External","__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":"Color.rgb(222,222,222)","_Fill":"Color.rgb(244,244,244)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(0.0,-3.0)","extent":"lively.pt(1071.0,413.0)","_Extent":"lively.pt(1071.0,413.0)"},"1353":{"sourceObj":{"__isSmartRef__":true,"id":1352},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":1325},"targetMethodName":"updateDelayed","varMapping":{"__isSmartRef__":true,"id":1354},"dependedBy":{"__isSmartRef__":true,"id":1355},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1354":{"source":{"__isSmartRef__":true,"id":1352},"target":{"__isSmartRef__":true,"id":1325}},"1355":{"dependendConnections":[{"__isSmartRef__":true,"id":1356},{"__isSmartRef__":true,"id":1356},{"__isSmartRef__":true,"id":1356},{"__isSmartRef__":true,"id":1356},{"__isSmartRef__":true,"id":1359},{"__isSmartRef__":true,"id":1353},{"__isSmartRef__":true,"id":1362}],"sourceAttrName":"extent","sourceObj":{"__isSmartRef__":true,"id":1325},"targetMethodName":"updateDelayed","targetObj":{"__isSmartRef__":true,"id":1325},"attributeConnections":[{"__isSmartRef__":true,"id":1364},{"__isSmartRef__":true,"id":1366},{"__isSmartRef__":true,"id":1368},{"__isSmartRef__":true,"id":1370},{"__isSmartRef__":true,"id":1372},{"__isSmartRef__":true,"id":1374},{"__isSmartRef__":true,"id":1376},{"__isSmartRef__":true,"id":1378},{"__isSmartRef__":true,"id":1380},{"__isSmartRef__":true,"id":1382}],"doNotSerialize":["$$converterString","$$updaterString","$$varMapping"],"doNotCopyProperties":["$$converterString","$$updaterString","$$varMapping"],"__LivelyClassName__":"lively.morphic.GeometryConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"1356":{"dependedBy":{"__isSmartRef__":true,"id":1355},"sourceAttrName":"_Extent","sourceObj":{"__isSmartRef__":true,"id":1357},"targetMethodName":"updateDelayed","targetObj":{"__isSmartRef__":true,"id":1325},"varMapping":{"__isSmartRef__":true,"id":1358},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1357":{"_BorderRadius":0,"_BorderStyle":"solid","_BorderWidth":0,"_Opacity":1,"attributeConnections":[{"__isSmartRef__":true,"id":1356}],"doNotCopyProperties":["$$_Extent"],"doNotSerialize":["$$_Extent"],"stringifiedShapeNode":"","_AppearanceStylingMode":false,"_BorderStylingMode":true,"__serializedExpressions__":["_BorderColor","_Extent","_Fill","_Padding","_Position","extent"],"__LivelyClassName__":"lively.morphic.Shapes.External","__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":"Color.rgb(222,222,222)","_Extent":"lively.pt(1299.0,962.0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(0.0,-3.0)","extent":"lively.pt(0.0,0.0)"},"1358":{"source":{"__isSmartRef__":true,"id":1357},"target":{"__isSmartRef__":true,"id":1325}},"1359":{"sourceObj":{"__isSmartRef__":true,"id":1360},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":1325},"targetMethodName":"updateDelayed","varMapping":{"__isSmartRef__":true,"id":1361},"dependedBy":{"__isSmartRef__":true,"id":1355},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1360":{"_BorderRadius":0,"_BorderStyle":"solid","_BorderWidth":0,"_Opacity":1,"stringifiedShapeNode":"","_AppearanceStylingMode":false,"_BorderStylingMode":true,"attributeConnections":[{"__isSmartRef__":true,"id":1359}],"doNotSerialize":["$$_Extent"],"doNotCopyProperties":["$$_Extent"],"__serializedExpressions__":["_BorderColor","_Fill","_Padding","_Position","extent","_Extent"],"__LivelyClassName__":"lively.morphic.Shapes.External","__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":"Color.rgb(222,222,222)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(0.0,-3.0)","extent":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1299.0,962.0)"},"1361":{"source":{"__isSmartRef__":true,"id":1360},"target":{"__isSmartRef__":true,"id":1325}},"1362":{"sourceObj":{"__isSmartRef__":true,"id":1352},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":1355},"targetMethodName":"update","varMapping":{"__isSmartRef__":true,"id":1363},"dependedBy":{"__isSmartRef__":true,"id":1355},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1363":{"source":{"__isSmartRef__":true,"id":1352},"target":{"__isSmartRef__":true,"id":1355}},"1364":{"sourceObj":{"__isSmartRef__":true,"id":1355},"sourceAttrName":"converterString","targetObj":{"__isSmartRef__":true,"id":1356},"targetMethodName":"setConverter","varMapping":{"__isSmartRef__":true,"id":1365},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1365":{"source":{"__isSmartRef__":true,"id":1355},"target":{"__isSmartRef__":true,"id":1356}},"1366":{"sourceObj":{"__isSmartRef__":true,"id":1355},"sourceAttrName":"updaterString","targetObj":{"__isSmartRef__":true,"id":1356},"targetMethodName":"setUpdater","varMapping":{"__isSmartRef__":true,"id":1367},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1367":{"source":{"__isSmartRef__":true,"id":1355},"target":{"__isSmartRef__":true,"id":1356}},"1368":{"sourceObj":{"__isSmartRef__":true,"id":1355},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":1356},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":1369},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1369":{"source":{"__isSmartRef__":true,"id":1355},"target":{"__isSmartRef__":true,"id":1356}},"1370":{"sourceObj":{"__isSmartRef__":true,"id":1355},"sourceAttrName":"converterString","targetObj":{"__isSmartRef__":true,"id":1359},"targetMethodName":"setConverter","varMapping":{"__isSmartRef__":true,"id":1371},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1371":{"source":{"__isSmartRef__":true,"id":1355},"target":{"__isSmartRef__":true,"id":1359}},"1372":{"sourceObj":{"__isSmartRef__":true,"id":1355},"sourceAttrName":"updaterString","targetObj":{"__isSmartRef__":true,"id":1359},"targetMethodName":"setUpdater","varMapping":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1373":{"source":{"__isSmartRef__":true,"id":1355},"target":{"__isSmartRef__":true,"id":1359}},"1374":{"sourceObj":{"__isSmartRef__":true,"id":1355},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":1359},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":1375},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1375":{"source":{"__isSmartRef__":true,"id":1355},"target":{"__isSmartRef__":true,"id":1359}},"1376":{"sourceObj":{"__isSmartRef__":true,"id":1355},"sourceAttrName":"converterString","targetObj":{"__isSmartRef__":true,"id":1353},"targetMethodName":"setConverter","varMapping":{"__isSmartRef__":true,"id":1377},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1377":{"source":{"__isSmartRef__":true,"id":1355},"target":{"__isSmartRef__":true,"id":1353}},"1378":{"sourceObj":{"__isSmartRef__":true,"id":1355},"sourceAttrName":"updaterString","targetObj":{"__isSmartRef__":true,"id":1353},"targetMethodName":"setUpdater","varMapping":{"__isSmartRef__":true,"id":1379},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1379":{"source":{"__isSmartRef__":true,"id":1355},"target":{"__isSmartRef__":true,"id":1353}},"1380":{"sourceObj":{"__isSmartRef__":true,"id":1355},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":1353},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":1381},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1381":{"source":{"__isSmartRef__":true,"id":1355},"target":{"__isSmartRef__":true,"id":1353}},"1382":{"sourceObj":{"__isSmartRef__":true,"id":1355},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":1362},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":1383},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1383":{"source":{"__isSmartRef__":true,"id":1355},"target":{"__isSmartRef__":true,"id":1362}},"1384":{"sourceObj":{"__isSmartRef__":true,"id":1352},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":1325},"targetMethodName":"draw","varMapping":{"__isSmartRef__":true,"id":1385},"dependedBy":{"__isSmartRef__":true,"id":1386},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1385":{"source":{"__isSmartRef__":true,"id":1352},"target":{"__isSmartRef__":true,"id":1325}},"1386":{"sourceObj":{"__isSmartRef__":true,"id":1325},"sourceAttrName":"extent","targetObj":{"__isSmartRef__":true,"id":1325},"targetMethodName":"draw","varMapping":{"__isSmartRef__":true,"id":1387},"dependendConnections":[{"__isSmartRef__":true,"id":1384},{"__isSmartRef__":true,"id":1388}],"attributeConnections":[{"__isSmartRef__":true,"id":1390},{"__isSmartRef__":true,"id":1392},{"__isSmartRef__":true,"id":1394},{"__isSmartRef__":true,"id":1396}],"doNotSerialize":["$$converterString","$$updaterString","$$varMapping"],"doNotCopyProperties":["$$converterString","$$updaterString","$$varMapping"],"__LivelyClassName__":"lively.morphic.GeometryConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"1387":{"source":{"__isSmartRef__":true,"id":1325},"target":{"__isSmartRef__":true,"id":1325}},"1388":{"sourceObj":{"__isSmartRef__":true,"id":1352},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":1386},"targetMethodName":"update","varMapping":{"__isSmartRef__":true,"id":1389},"dependedBy":{"__isSmartRef__":true,"id":1386},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1389":{"source":{"__isSmartRef__":true,"id":1352},"target":{"__isSmartRef__":true,"id":1386}},"1390":{"sourceObj":{"__isSmartRef__":true,"id":1386},"sourceAttrName":"converterString","targetObj":{"__isSmartRef__":true,"id":1384},"targetMethodName":"setConverter","varMapping":{"__isSmartRef__":true,"id":1391},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1391":{"source":{"__isSmartRef__":true,"id":1386},"target":{"__isSmartRef__":true,"id":1384}},"1392":{"sourceObj":{"__isSmartRef__":true,"id":1386},"sourceAttrName":"updaterString","targetObj":{"__isSmartRef__":true,"id":1384},"targetMethodName":"setUpdater","varMapping":{"__isSmartRef__":true,"id":1393},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1393":{"source":{"__isSmartRef__":true,"id":1386},"target":{"__isSmartRef__":true,"id":1384}},"1394":{"sourceObj":{"__isSmartRef__":true,"id":1386},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":1384},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":1395},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1395":{"source":{"__isSmartRef__":true,"id":1386},"target":{"__isSmartRef__":true,"id":1384}},"1396":{"sourceObj":{"__isSmartRef__":true,"id":1386},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":1388},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":1397},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1397":{"source":{"__isSmartRef__":true,"id":1386},"target":{"__isSmartRef__":true,"id":1388}},"1398":{"rules":[{"__isSmartRef__":true,"id":1399},{"__isSmartRef__":true,"id":1403},{"__isSmartRef__":true,"id":1404}],"originMorph":{"__isSmartRef__":true,"id":1325},"__LivelyClassName__":"lively.morphic.StyleSheet","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"1399":{"declarations":[{"__isSmartRef__":true,"id":1400},{"__isSmartRef__":true,"id":1401},{"__isSmartRef__":true,"id":1402}],"styleSheet":{"__isSmartRef__":true,"id":1398},"selector":".axis path, .axis line","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"1400":{"values":["none"],"rule":{"__isSmartRef__":true,"id":1399},"property":"fill","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"1401":{"values":["#000"],"rule":{"__isSmartRef__":true,"id":1399},"property":"stroke","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"1402":{"values":["crispEdges"],"rule":{"__isSmartRef__":true,"id":1399},"property":"shape-rendering","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"1403":{"declarations":[],"styleSheet":{"__isSmartRef__":true,"id":1398},"selector":".x.axis path","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"1404":{"declarations":[{"__isSmartRef__":true,"id":1405},{"__isSmartRef__":true,"id":1406},{"__isSmartRef__":true,"id":1407}],"styleSheet":{"__isSmartRef__":true,"id":1398},"selector":".line","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"1405":{"values":["none"],"rule":{"__isSmartRef__":true,"id":1404},"property":"fill","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"1406":{"values":["steelblue"],"rule":{"__isSmartRef__":true,"id":1404},"property":"stroke","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"1407":{"values":["1.5px"],"rule":{"__isSmartRef__":true,"id":1404},"property":"stroke-width","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"1408":{"name":"root","submorphs":[null]},"1409":{"reset":{"__isSmartRef__":true,"id":1410},"update":{"__isSmartRef__":true,"id":1414},"draw":{"__isSmartRef__":true,"id":1418},"getChart":{"__isSmartRef__":true,"id":1422},"onrestore":{"__isSmartRef__":true,"id":1426},"installLayers":{"__isSmartRef__":true,"id":1434},"clear":{"__isSmartRef__":true,"id":1438},"getD3Transform":{"__isSmartRef__":true,"id":1442},"setD3Transform":{"__isSmartRef__":true,"id":1446},"onExport":{"__isSmartRef__":true,"id":1450},"catchErrors":{"__isSmartRef__":true,"id":1454},"getData":{"__isSmartRef__":true,"id":1458},"getExampleData":{"__isSmartRef__":true,"id":1462}},"1410":{"varMapping":{"__isSmartRef__":true,"id":1411},"source":"function reset() {\n this.doNotSerialize = ['chart', 'svgNode', 'data', 'lastNode'];\n this.data = null;\n this.startStepping(1000, 'redraw');\n this.stopStepping()\n this.scaleDetail = 1\n \n}","funcProperties":{"__isSmartRef__":true,"id":1412},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1411":{"this":{"__isSmartRef__":true,"id":1325}},"1412":{"timestamp":{"__isSmartRef__":true,"id":1413},"tags":[]},"1413":{"isSerializedDate":true,"string":"Sat Jan 25 2014 10:03:49 GMT+0100 (CET)"},"1414":{"varMapping":{"__isSmartRef__":true,"id":1415},"source":"function update() {\n\n this.draw();\n\n this.d3TransistionNodes()\n}","funcProperties":{"__isSmartRef__":true,"id":1416},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1415":{"this":{"__isSmartRef__":true,"id":1325}},"1416":{"timestamp":{"__isSmartRef__":true,"id":1417},"user":"jenslincke","tags":[]},"1417":{"isSerializedDate":true,"string":"Wed Oct 02 2013 18:22:41 GMT+0200 (CEST)"},"1418":{"varMapping":{"__isSmartRef__":true,"id":1419},"source":"function draw() {\n if (!this.chart) this.chart = this.getChart();\n this.clear()\n\n var margin = {top: 30, right: 130, bottom: 30, left: 80},\n width = this.getExtent().x - margin.left - margin.right,\n height = this.getExtent().y - margin.top - margin.bottom;\n\n // var x = d3.scale.linear().range([0, width]);\n var x = d3.time.scale().range([0, width]);\n var y = d3.scale.linear().range([height, 0]);\n var color = d3.scale.category10();\n\n var xAxis = d3.svg.axis()\n .scale(x)\n .orient(\"bottom\");\n var yAxis = d3.svg.axis()\n .scale(y)\n .orient(\"left\");\n\n\n\ncop.withLayers([NoPrettyArrayPrintingLayer], function() { \n\n var dataAndTimes = this.getData()\n var times = dataAndTimes.detect(function(ea) {\n return ea.name == \"Time\"}).values.collect(function(ea) { return new Date(ea * 1000)});\n var line = d3.svg.line()\n .interpolate(\"line\")\n .x(function(d, index) { return x(times[index]); })\n .y(function(d) { return y(d); });\n\n var svg = this.chart.append(\"svg\")\n .attr(\"width\", width + margin.left + margin.right)\n .attr(\"height\", height + margin.top + margin.bottom)\n .append(\"g\")\n .attr(\"transform\", \"translate(\" + margin.left + \",\" + margin.top + \")\");\n\n\n var data = dataAndTimes.reject(function(ea) { return ea.name == \"Time\"});\n color.domain(data.pluck(\"name\"))\n\n\n \n x.domain([times.first(), times.last() ]);\n\n d3.min(data[0].values, function(v) { return v; })\n\n y.domain([\n d3.min(data, function(c) { return d3.min(c.values, function(v) { return v; }); }),\n d3.max(data, function(c) { return d3.max(c.values, function(v) { return v; }); })\n ]);\n\n svg.append(\"g\")\n .attr(\"class\", \"x axis\")\n .attr(\"transform\", \"translate(0,\" + height + \")\")\n .call(xAxis);\n\n svg.append(\"g\")\n .attr(\"class\", \"y axis\")\n .call(yAxis)\n\n\n var column = svg.selectAll(\".measurement\")\n .data(data)\n .enter().append(\"g\")\n .attr(\"class\", \"city\");\n\n column.append(\"path\")\n .attr(\"class\", \"line\")\n .attr(\"d\", function(d) { return line(d.values); })\n .style(\"stroke\", function(d) { return color(d.name); });\n\n column.append(\"text\")\n .datum(function(d) { return {name: d.name, value: d.values[d.values.length - 1]}; })\n .attr(\"transform\", function(d) { return \"translate(\" + x(times.last()) + \",\" + y(d.value) + \")\"; })\n .attr(\"x\", 3)\n .attr(\"dy\", \".35em\")\n .text(function(d) { return d.name; });\n\n}.bind(this))\n\n}","funcProperties":{"__isSmartRef__":true,"id":1420},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1419":{"this":{"__isSmartRef__":true,"id":1325}},"1420":{"timestamp":{"__isSmartRef__":true,"id":1421},"user":"jenslincke","tags":[]},"1421":{"isSerializedDate":true,"string":"Sun Jan 26 2014 23:34:19 GMT+0100 (CET)"},"1422":{"varMapping":{"__isSmartRef__":true,"id":1423},"source":"function getChart() {\n return d3.select(this.renderContext().shapeNode);\n}","funcProperties":{"__isSmartRef__":true,"id":1424},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1423":{"this":{"__isSmartRef__":true,"id":1325}},"1424":{"timestamp":{"__isSmartRef__":true,"id":1425},"user":"markoroeder","tags":[]},"1425":{"isSerializedDate":true,"string":"Mon Dec 17 2012 11:04:18 GMT+0100 (CET)"},"1426":{"varMapping":{"__isSmartRef__":true,"id":1427},"source":"function onrestore() {\n \n // D3 is not loaded yet\n // d3.transition.prototype.attr\n lively.bindings.callWhenPathNotNull(Global, [\"d3\", \"transition\"], \n function() {\n this.installLayers.bind(this).delay(0)\n }.bind(this), \"call\")\n \n}","funcProperties":{"__isSmartRef__":true,"id":1432},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1427":{"this":{"__isSmartRef__":true,"id":1325},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1428}},"1428":{"$super":{"__isSmartRef__":true,"id":1429}},"1429":{"varMapping":{"__isSmartRef__":true,"id":1430},"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":1431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1430":{"obj":{"__isSmartRef__":true,"id":1325},"name":"onrestore"},"1431":{},"1432":{"timestamp":{"__isSmartRef__":true,"id":1433},"user":"jenslincke","tags":[]},"1433":{"isSerializedDate":true,"string":"Thu Jul 18 2013 16:44:41 GMT+0200 (CEST)"},"1434":{"varMapping":{"__isSmartRef__":true,"id":1435},"source":"function installLayers() {\n cop.create(\"NoPrettyArrayPrintingLayer\").refineObject(Global, {\n printOn: function(objOrArray, ws) {\n // work around OMeta and D3 array printing incompatibilities\n if (Object.isArray(objOrArray)) {\n for (var idx = 0; idx < objOrArray.length; idx++) {\n if (idx > 0)\n ws.nextPutAll(\", \")\n printOn(objOrArray[idx], ws);\n }\n } else {\n return cop.proceed(objOrArray, ws)\n }\n }\n })\n \n // d3.transition.prototype.attr\n console.log(\"INSTALL D3 Error handler\")\n var errorHandlerFunc = function(key, value) {\n if (Object.isFunction(value)) {\n return cop.proceed(key, function() {\n try {\n return value.apply(this, arguments)\n } catch(e) {\n $world.logError(e)\n }\n })\n }\n return cop.proceed(key, value)\n }\n // Damn it, it error handling seems to be a homogenous concern\n // and AOP would be more appropriate here\n // but, higher order functions are also viable\n cop.create(\"CaptureD3Errors\").refineClass(d3.transition, {\n attr: errorHandlerFunc,\n style: errorHandlerFunc,\n }).refineClass(d3.selection, {\n attr: errorHandlerFunc,\n style: errorHandlerFunc,\n }).beGlobal()\n \n \n \n \n}","funcProperties":{"__isSmartRef__":true,"id":1436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1435":{"this":{"__isSmartRef__":true,"id":1325}},"1436":{"timestamp":{"__isSmartRef__":true,"id":1437},"user":"jenslincke","tags":[]},"1437":{"isSerializedDate":true,"string":"Thu Jul 18 2013 16:48:40 GMT+0200 (CEST)"},"1438":{"varMapping":{"__isSmartRef__":true,"id":1439},"source":"function clear() {\n if (!this.chart) return;\n this.chart.selectAll('svg').remove();\n this.chart.selectAll('div').remove();\n}","funcProperties":{"__isSmartRef__":true,"id":1440},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1439":{"this":{"__isSmartRef__":true,"id":1325}},"1440":{"timestamp":{"__isSmartRef__":true,"id":1441},"user":"jenslincke","tags":[]},"1441":{"isSerializedDate":true,"string":"Wed Oct 02 2013 15:55:11 GMT+0200 (CEST)"},"1442":{"varMapping":{"__isSmartRef__":true,"id":1443},"source":"function getD3Transform() {\n if (!this.svgNode) return;\n return this.svgNode.attr(\"transform\")\n\n}","funcProperties":{"__isSmartRef__":true,"id":1444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1443":{"this":{"__isSmartRef__":true,"id":1325}},"1444":{"timestamp":{"__isSmartRef__":true,"id":1445},"user":"jenslincke","tags":[]},"1445":{"isSerializedDate":true,"string":"Tue Jul 16 2013 16:32:35 GMT+0200 (CEST)"},"1446":{"varMapping":{"__isSmartRef__":true,"id":1447},"source":"function setD3Transform(value) {\n if (!this.svgNode || !value) return;\n\n return this.svgNode.attr(\"transform\", value)\n\n}","funcProperties":{"__isSmartRef__":true,"id":1448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1447":{"this":{"__isSmartRef__":true,"id":1325}},"1448":{"timestamp":{"__isSmartRef__":true,"id":1449},"user":"jenslincke","tags":[]},"1449":{"isSerializedDate":true,"string":"Tue Jul 16 2013 16:32:45 GMT+0200 (CEST)"},"1450":{"varMapping":{"__isSmartRef__":true,"id":1451},"source":"function onExport() {\n \n\n var s = \"\" +\n Exporter.stringify(this.chart[0][0]) + \"\"\n\n\n var fileName = this.get(\"ExportFilename\").textString\n \n var url = URL.source.withFilename(fileName + \".html\");\n var wr = new WebResource(url)\n wr.put(s)\n \n $world.confirm(\"exported \" + url +\". Visit it?\", function(bool) {\n if (bool) {\n window.open(url)\n }\n \n })\n \n}","funcProperties":{"__isSmartRef__":true,"id":1452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1451":{"this":{"__isSmartRef__":true,"id":1325}},"1452":{"timestamp":{"__isSmartRef__":true,"id":1453},"user":"jenslincke","tags":[]},"1453":{"isSerializedDate":true,"string":"Wed Jul 17 2013 17:50:09 GMT+0200 (CEST)"},"1454":{"varMapping":{"__isSmartRef__":true,"id":1455},"source":"function catchErrors(f) {\n // D3 does not like to handle errors. It just stops working. So we be helpful\n // and handle them for it. \n return function() {\n try {\n return f.apply(this, arguments)\n } catch(e) {\n $world.logError(e)\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1455":{"this":{"__isSmartRef__":true,"id":1325}},"1456":{"timestamp":{"__isSmartRef__":true,"id":1457},"user":"jenslincke","tags":[]},"1457":{"isSerializedDate":true,"string":"Thu Jul 18 2013 13:52:05 GMT+0200 (CEST)"},"1458":{"varMapping":{"__isSmartRef__":true,"id":1459},"source":"function getData() {\n // this.getData()\n \n // column = \"TP\"\n if (this.get(\"SimulationResults\")) {\n var table = this.get(\"SimulationResults\").table\n return table.columns.collect(function(column) {\n return {\n name: column,\n values: table.data.collect(function(ea) {\n return ea[column]\n })\n }\n })\n }\n // fallback\n return this.getExampleData()\n\n}","funcProperties":{"__isSmartRef__":true,"id":1460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1459":{"this":{"__isSmartRef__":true,"id":1325}},"1460":{"timestamp":{"__isSmartRef__":true,"id":1461},"user":"jenslincke","tags":[]},"1461":{"isSerializedDate":true,"string":"Sat Jan 25 2014 16:43:31 GMT+0100 (CET)"},"1462":{"varMapping":{"__isSmartRef__":true,"id":1463},"source":"function getExampleData() {\n // this.getExampleData()\n var randomValues = function(n) {\n var last = 0\n return range(0,n).collect(function(x) { return last += Math.random() - 0.3})\n }\n return [\n {name: \"A\", values: randomValues(100)},\n {name: \"B\", values: randomValues(100)},\n {name: \"C\", values: randomValues(100)},\n ]\n}","funcProperties":{"__isSmartRef__":true,"id":1464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1463":{"this":{"__isSmartRef__":true,"id":1325}},"1464":{"timestamp":{"__isSmartRef__":true,"id":1465},"user":"jenslincke","tags":[]},"1465":{"isSerializedDate":true,"string":"Sat Jan 25 2014 16:20:52 GMT+0100 (CET)"},"1466":{"submorphs":[{"__isSmartRef__":true,"id":1467},{"__isSmartRef__":true,"id":1501},{"__isSmartRef__":true,"id":1517},{"__isSmartRef__":true,"id":1559},{"__isSmartRef__":true,"id":1581},{"__isSmartRef__":true,"id":1586},{"__isSmartRef__":true,"id":1607},{"__isSmartRef__":true,"id":1630},{"__isSmartRef__":true,"id":1651}],"scripts":[],"id":"E219886F-77C6-49BC-A9C7-F23E4ADA38C9","shape":{"__isSmartRef__":true,"id":1674},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Buttons","partsBinMetaInfo":{"__isSmartRef__":true,"id":1675},"eventHandler":{"__isSmartRef__":true,"id":1709},"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","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","B1BE7C15-9E53-497B-A4E6-DD2B86983196"],"partTests":{"__isSmartRef__":true,"id":1710},"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":689},"prevScroll":[0,0],"isBeingDragged":false,"startTime":1391550955812,"steps":9,"grabbingEnabled":false,"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1715},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1126.4,716.2)","distanceToDragEvent":"lively.pt(232.0,-1.4)"},"1467":{"submorphs":[{"__isSmartRef__":true,"id":1468}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1473},"eventHandler":{"__isSmartRef__":true,"id":1474},"_ClipMode":"visible","derivationIds":["EC7EBB28-54AE-4244-80ED-3E13650F82B7","9FD2DCE2-B997-4536-B2A5-90D7DD92B3E6","0D8CC908-BD1C-4062-BB03-3FCEB910483D","C588532D-80AE-4B22-A023-EED1306BC47F"],"id":"9372C719-A9EF-4FD1-B343-DDAD8253AB0A","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":1468},"_PreviousBorderWidth":1,"isPressed":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":1475},{"__isSmartRef__":true,"id":1477}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"name":"Button3","partsBinMetaInfo":{"__isSmartRef__":true,"id":1479},"pinSpecs":[{"__isSmartRef__":true,"id":1495}],"owner":{"__isSmartRef__":true,"id":1466},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1496},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(87.5,7.3)","distanceToDragEvent":"lively.pt(36.7,-10.2)"},"1468":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1469},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1470}],"eventHandler":{"__isSmartRef__":true,"id":1472},"_ClipMode":"hidden","derivationIds":["7884E73F-0D17-44B3-907F-44A5223F1F3D","444B63A6-D9E7-4AB2-AB57-4A9146C18BFF","08999E10-CCC3-4CAB-99BC-4EF500309EC4","1E07DB58-5249-4ADB-B5A4-B84D80123207"],"id":"33983F2C-B5FE-47F7-B0E7-987A84B14776","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1467},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"showsHalos":false,"eventsAreDisabled":true,"_PointerEvents":"none","__serializedExpressions__":["_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"1469":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(35.2,20.9)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1470":{"style":{"__isSmartRef__":true,"id":1471},"chunkOwner":{"__isSmartRef__":true,"id":1468},"_id":"_222753","storedString":"Step","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1471":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1472":{"morph":{"__isSmartRef__":true,"id":1468},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1473":{"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(35.2,20.9)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"1474":{"morph":{"__isSmartRef__":true,"id":1467},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1475":{"sourceObj":{"__isSmartRef__":true,"id":1467},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1467},"targetMethodName":"doAction","varMapping":{"__isSmartRef__":true,"id":1476},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1476":{"source":{"__isSmartRef__":true,"id":1467},"target":{"__isSmartRef__":true,"id":1467}},"1477":{"sourceObj":{"__isSmartRef__":true,"id":1467},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1466},"targetMethodName":"onStep","varMapping":{"__isSmartRef__":true,"id":1478},"isAutoConnected":true,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1478":{"source":{"__isSmartRef__":true,"id":1467},"target":{"__isSmartRef__":true,"id":1466}},"1479":{"partName":"Button","requiredModules":[],"partsSpaceName":"PartsBin/Inputs","comment":"A simple button that calls a method #doAction when pressed.","changes":[{"__isSmartRef__":true,"id":1480},{"__isSmartRef__":true,"id":1482},{"__isSmartRef__":true,"id":1484},{"__isSmartRef__":true,"id":1486},{"__isSmartRef__":true,"id":1488},{"__isSmartRef__":true,"id":1490},{"__isSmartRef__":true,"id":1492}],"migrationLevel":7,"lastModifiedDate":{"__isSmartRef__":true,"id":1494},"revisionOnLoad":203770,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1480":{"author":null,"message":"no comment","id":"F8B70225-5143-4A51-ABB4-344B488B3811","date":{"__isSmartRef__":true,"id":1481}},"1481":{"isSerializedDate":true,"string":"Tue Dec 11 2012 22:15:42 GMT+0100 (CET)"},"1482":{"author":"robertkrahn","message":"no comment","id":"9B8B6BE4-4519-4A6C-8F47-70DE61BBB0FB","date":{"__isSmartRef__":true,"id":1483}},"1483":{"isSerializedDate":true,"string":"Tue Dec 11 2012 22:53:16 GMT+0100 (CET)"},"1484":{"author":"robertkrahn","message":"test","id":"ACA617B4-0416-4E3C-9F4D-171A40F44F0F","date":{"__isSmartRef__":true,"id":1485}},"1485":{"isSerializedDate":true,"string":"Wed May 01 2013 05:34:25 GMT+0200 (CEST)"},"1486":{"author":"robertkrahn","message":"no comment","id":"811BDE87-D8DD-48BB-97B2-7A3C3F3FAE32","date":{"__isSmartRef__":true,"id":1487}},"1487":{"isSerializedDate":true,"string":"Wed May 01 2013 05:35:59 GMT+0200 (CEST)"},"1488":{"author":"robertkrahn","message":"no comment","id":"BB2EA501-D9AF-414B-A035-E1487DA6F0FD","date":{"__isSmartRef__":true,"id":1489}},"1489":{"isSerializedDate":true,"string":"Wed May 01 2013 05:36:30 GMT+0200 (CEST)"},"1490":{"author":"Dan","message":"no comment","id":"A594459F-DA9B-49DD-A105-547B3F613CC5","date":{"__isSmartRef__":true,"id":1491}},"1491":{"isSerializedDate":true,"string":"Mon Jun 17 2013 19:22:38 GMT+0200 (CEST)"},"1492":{"author":"Dan","message":"no comment","id":"CFEC4071-14FF-4AEB-A399-197884CD18BF","date":{"__isSmartRef__":true,"id":1493}},"1493":{"isSerializedDate":true,"string":"Mon Jun 17 2013 19:24:50 GMT+0200 (CEST)"},"1494":{"isSerializedDate":true,"string":"Thu Jan 16 2014 10:23:15 GMT+0100 (CET)"},"1495":{"pinName":"fire","modality":"output","type":"Boolean","accessor":"fire","location":1.5},"1496":{"doAction":{"__isSmartRef__":true,"id":1497}},"1497":{"varMapping":{"__isSmartRef__":true,"id":1498},"source":"function doAction() {\n \n}","funcProperties":{"__isSmartRef__":true,"id":1499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1498":{"this":{"__isSmartRef__":true,"id":1467}},"1499":{"user":"undefined","tags":[],"timestamp":{"__isSmartRef__":true,"id":1500}},"1500":{"isSerializedDate":true,"string":"Tue Dec 11 2012 22:14:29 GMT+0100 (CET)"},"1501":{"submorphs":[{"__isSmartRef__":true,"id":1502}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1507},"eventHandler":{"__isSmartRef__":true,"id":1508},"_ClipMode":"visible","derivationIds":["EC7EBB28-54AE-4244-80ED-3E13650F82B7","9FD2DCE2-B997-4536-B2A5-90D7DD92B3E6","0D8CC908-BD1C-4062-BB03-3FCEB910483D"],"id":"B1C5D77B-D7CA-4908-B108-70BC656F04D7","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":1502},"_PreviousBorderWidth":1,"isPressed":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":1509}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"name":"Button5","partsBinMetaInfo":{"__isSmartRef__":true,"id":1100},"pinSpecs":[{"__isSmartRef__":true,"id":1511}],"owner":{"__isSmartRef__":true,"id":1466},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1512},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(131.6,6.0)","distanceToDragEvent":"lively.pt(77.4,-9.9)"},"1502":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1503},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1504}],"eventHandler":{"__isSmartRef__":true,"id":1506},"_ClipMode":"hidden","derivationIds":["7884E73F-0D17-44B3-907F-44A5223F1F3D","444B63A6-D9E7-4AB2-AB57-4A9146C18BFF","08999E10-CCC3-4CAB-99BC-4EF500309EC4"],"id":"500D5F20-3A4B-472D-8E6D-AD135D66F62E","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1501},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"showsHalos":false,"eventsAreDisabled":true,"_PointerEvents":"none","__serializedExpressions__":["_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"1503":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,20.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1504":{"style":{"__isSmartRef__":true,"id":1505},"chunkOwner":{"__isSmartRef__":true,"id":1502},"_id":"_578952","storedString":"Reset","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1505":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1506":{"morph":{"__isSmartRef__":true,"id":1502},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1507":{"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,20.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"1508":{"morph":{"__isSmartRef__":true,"id":1501},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1509":{"sourceObj":{"__isSmartRef__":true,"id":1501},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1501},"targetMethodName":"doAction","varMapping":{"__isSmartRef__":true,"id":1510},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1510":{"source":{"__isSmartRef__":true,"id":1501},"target":{"__isSmartRef__":true,"id":1501}},"1511":{"pinName":"fire","modality":"output","type":"Boolean","accessor":"fire","location":1.5},"1512":{"doAction":{"__isSmartRef__":true,"id":1513}},"1513":{"varMapping":{"__isSmartRef__":true,"id":1514},"source":"function doAction() {\n this.get(\"ResetSimulation\").parseSimulationSource()\n cop.withLayers([ForceNameFoundLayer], function() {\n this.get(\"ResetSimulation\").simulateStep()\n }.bind(this))\n this.get(\"EnergySimulation\").showAllProperties()\n this.get(\"EnergySimulation\").initSimulation()\n}","funcProperties":{"__isSmartRef__":true,"id":1515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1514":{"this":{"__isSmartRef__":true,"id":1501}},"1515":{"timestamp":{"__isSmartRef__":true,"id":1516},"user":"jenslincke","tags":[]},"1516":{"isSerializedDate":true,"string":"Tue Jan 28 2014 11:32:04 GMT+0100 (CET)"},"1517":{"submorphs":[{"__isSmartRef__":true,"id":1518}],"scripts":[],"id":"9531A49F-3442-403E-B66C-71EC48F827BA","shape":{"__isSmartRef__":true,"id":1523},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1524},"lighterFill":{"__isSmartRef__":true,"id":1529},"label":{"__isSmartRef__":true,"id":1518},"name":"ToggleButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1534},"attributeConnections":[{"__isSmartRef__":true,"id":1540},{"__isSmartRef__":true,"id":1541},{"__isSmartRef__":true,"id":1543}],"doNotSerialize":["$$fire","$$enable","$$disable"],"doNotCopyProperties":["$$fire","$$enable","$$disable"],"eventHandler":{"__isSmartRef__":true,"id":1545},"derivationIds":[2588,"C96F474C-1F3A-4E42-844C-DD2EB76BDD7E","E36FA68D-6317-416A-99FA-0ED81E4193DA","06258075-AC5A-4CAB-A248-A66D3213816C"],"_ClipMode":"visible","isPressed":false,"isToggled":true,"connections":{"__isSmartRef__":true,"id":1546},"moved":true,"owner":{"__isSmartRef__":true,"id":1466},"prevScroll":[0,0],"_PreviousBorderWidth":1.1840000000000002,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1550},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(9.1,6.2)","distanceToDragEvent":"lively.pt(50.5,-10.1)"},"1518":{"submorphs":[],"scripts":[],"id":"017079A3-BC59-4CF2-AEE6-7C2E5A94E864","shape":{"__isSmartRef__":true,"id":1519},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":105,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":1517},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":1520}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":1522},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"44787449-DE07-40ED-B4D3-89A4A185AE29","F4BC3D0F-FF03-4EFC-B727-951442606730","277CDAEF-77E0-49F1-BD6F-1630D7ECC2E1"],"_MinTextWidth":105,"_MinTextHeight":null,"_WordBreak":"break-all","_FontSize":10,"__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)"},"1519":{"_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(70.3,20.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"1520":{"style":{"__isSmartRef__":true,"id":1521},"chunkOwner":{"__isSmartRef__":true,"id":1518},"_id":"_1473","storedString":"start","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1521":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1522":{"morph":{"__isSmartRef__":true,"id":1518},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1523":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":1524},"_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(70.3,20.7)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"1524":{"stops":[{"__isSmartRef__":true,"id":1525},{"__isSmartRef__":true,"id":1526},{"__isSmartRef__":true,"id":1527},{"__isSmartRef__":true,"id":1528}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"1525":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"1526":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"1527":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"1528":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"1529":{"stops":[{"__isSmartRef__":true,"id":1530},{"__isSmartRef__":true,"id":1531},{"__isSmartRef__":true,"id":1532},{"__isSmartRef__":true,"id":1533}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"1530":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"1531":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"1532":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"1533":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"1534":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":4,"partName":"ToggleButton","comment":"A toggle button:\n- emits, toggle, enable, disable on pressed.\n- changes label","changes":[{"__isSmartRef__":true,"id":1535},{"__isSmartRef__":true,"id":1537}],"lastModifiedDate":{"__isSmartRef__":true,"id":1539},"revisionOnLoad":203770,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1535":{"date":{"__isSmartRef__":true,"id":1536},"author":"jenslincke","message":"no comment","id":"7471CE07-F2C0-4149-9684-90E843DB8DCE"},"1536":{"isSerializedDate":true,"string":"Fri Feb 08 2013 10:43:34 GMT+0100 (CET)"},"1537":{"date":{"__isSmartRef__":true,"id":1538},"author":"jenslincke","message":"no comment","id":"02AB5A6F-7748-4A48-8C36-D334F97FC321"},"1538":{"isSerializedDate":true,"string":"Thu Feb 07 2013 17:57:46 GMT+0100 (CET)"},"1539":{"isSerializedDate":true,"string":"Thu Jan 16 2014 10:23:15 GMT+0100 (CET)"},"1540":{"sourceObj":{"__isSmartRef__":true,"id":1517},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1517},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1541":{"sourceObj":{"__isSmartRef__":true,"id":1517},"sourceAttrName":"enable","targetObj":{"__isSmartRef__":true,"id":1466},"targetMethodName":"onStart","varMapping":{"__isSmartRef__":true,"id":1542},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1542":{"source":{"__isSmartRef__":true,"id":1517},"target":{"__isSmartRef__":true,"id":1466}},"1543":{"sourceObj":{"__isSmartRef__":true,"id":1517},"sourceAttrName":"disable","targetObj":{"__isSmartRef__":true,"id":1466},"targetMethodName":"onStop","varMapping":{"__isSmartRef__":true,"id":1544},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1544":{"source":{"__isSmartRef__":true,"id":1517},"target":{"__isSmartRef__":true,"id":1466}},"1545":{"morph":{"__isSmartRef__":true,"id":1517},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1546":{"enable":{"__isSmartRef__":true,"id":1547},"disable":{"__isSmartRef__":true,"id":1548},"toggle":{"__isSmartRef__":true,"id":1549}},"1547":{},"1548":{},"1549":{},"1550":{"onFire":{"__isSmartRef__":true,"id":1551},"reset":{"__isSmartRef__":true,"id":1555}},"1551":{"varMapping":{"__isSmartRef__":true,"id":1552},"source":"function onFire() {\n\t\n if (this.isToggled) {\n this.setLabel(\"stop\")\n lively.bindings.signal(this, 'enable', true)\n lively.bindings.signal(this, 'toggle', true)\n } else {\n this.setLabel(\"start\")\n lively.bindings.signal(this, 'disable', true)\n lively.bindings.signal(this, 'toggle', false)\n }\n this.isToggled = !this.isToggled;\n}","funcProperties":{"__isSmartRef__":true,"id":1553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1552":{"this":{"__isSmartRef__":true,"id":1517}},"1553":{"timestamp":{"__isSmartRef__":true,"id":1554},"user":"jenslincke","tags":[]},"1554":{"isSerializedDate":true,"string":"Fri Jan 24 2014 22:29:42 GMT+0100 (CET)"},"1555":{"varMapping":{"__isSmartRef__":true,"id":1556},"source":"function reset() {\n this.connections = {\"enable\": { }, \"disable\": { }, \"toggle\": { }}\n}","funcProperties":{"__isSmartRef__":true,"id":1557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1556":{"this":{"__isSmartRef__":true,"id":1517}},"1557":{"timestamp":{"__isSmartRef__":true,"id":1558},"user":"jenslincke","tags":[]},"1558":{"isSerializedDate":true,"string":"Fri Feb 08 2013 10:42:06 GMT+0100 (CET)"},"1559":{"submorphs":[{"__isSmartRef__":true,"id":1560}],"scripts":[],"id":"206DC5DE-6B6B-47EA-A4D8-A113837EC22F","shape":{"__isSmartRef__":true,"id":1567},"__layered_droppingEnabled__":true,"halosEnabled":true,"attributeConnections":[{"__isSmartRef__":true,"id":1572},{"__isSmartRef__":true,"id":1573}],"doNotSerialize":["$$value"],"doNotCopyProperties":["$$value"],"value":1,"sliderExtent":0.1,"valueScale":1,"sliderKnob":{"__isSmartRef__":true,"id":1560},"styleClass":["slider_background_horizontal"],"showsHalos":false,"name":"SimulationVelocity","partsBinMetaInfo":{"__isSmartRef__":true,"id":1575},"eventHandler":{"__isSmartRef__":true,"id":1579},"layout":{"__isSmartRef__":true,"id":1580},"derivationIds":[2631,"E6C0AF56-6D3E-41C8-AE8E-A0520F495C6B"],"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":1466},"prevScroll":[0,0],"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Slider","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(8.2,30.7)","distanceToDragEvent":"lively.pt(147.3,-14.4)"},"1560":{"submorphs":[],"scripts":[],"id":"86092F15-D80F-4ED6-B68F-803BF755D102","shape":{"__isSmartRef__":true,"id":1561},"__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":true,"slider":{"__isSmartRef__":true,"id":1559},"owner":{"__isSmartRef__":true,"id":1559},"styleClass":["slider_horizontal"],"eventHandler":{"__isSmartRef__":true,"id":1566},"derivationIds":[2632,"A8917D7B-B083-4C54-AFA0-5443B4DEF9E4"],"_ClipMode":"visible","isBeingDragged":false,"prevScroll":[0,0],"__serializedExpressions__":["_Position","hitPoint"],"__LivelyClassName__":"lively.morphic.SliderKnob","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(202.1,0.0)","hitPoint":"lively.pt(1059.7,499.8)"},"1561":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":1562},"_BorderRadius":6,"__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(22.5,18.9)","_BorderColor":"Color.rgb(102,102,102)","_Padding":"lively.rect(0,0,0,0)"},"1562":{"stops":[{"__isSmartRef__":true,"id":1563},{"__isSmartRef__":true,"id":1564},{"__isSmartRef__":true,"id":1565}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"1563":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(196,211,221)"},"1564":{"offset":0.5,"__serializedExpressions__":["color"],"color":"Color.rgb(137,167,187)"},"1565":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(96,130,153)"},"1566":{"morph":{"__isSmartRef__":true,"id":1560},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1567":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":1568},"_BorderRadius":6,"_Opacity":1,"_BorderStyle":"solid","__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(224.6,18.9)","_BorderColor":"Color.rgb(192,192,192)","_Padding":"lively.rect(0,0,0,0)"},"1568":{"stops":[{"__isSmartRef__":true,"id":1569},{"__isSmartRef__":true,"id":1570},{"__isSmartRef__":true,"id":1571}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"1569":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"1570":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"1571":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"1572":{"sourceObj":{"__isSmartRef__":true,"id":1559},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":1559},"targetMethodName":"adjustSliderParts","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1573":{"sourceObj":{"__isSmartRef__":true,"id":1559},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":1466},"targetMethodName":"updateVelocity","varMapping":{"__isSmartRef__":true,"id":1574},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1574":{"source":{"__isSmartRef__":true,"id":1559},"target":{"__isSmartRef__":true,"id":1466}},"1575":{"requiredModules":[],"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Slider","comment":"The connection point \"value\" can be used to read/write the slider knob position.","changes":[{"__isSmartRef__":true,"id":1576}],"lastModifiedDate":{"__isSmartRef__":true,"id":1578},"revisionOnLoad":186558,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1576":{"date":{"__isSmartRef__":true,"id":1577},"author":"dustin.glaeser","message":"no comment","id":"9CD9677C-9A79-4D71-85C1-E5C72C253D16"},"1577":{"isSerializedDate":true,"string":"Thu Dec 13 2012 11:34:16 GMT+0100 (CET)"},"1578":{"isSerializedDate":true,"string":"Thu Mar 07 2013 01:25:14 GMT+0100 (CET)"},"1579":{"morph":{"__isSmartRef__":true,"id":1559},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1580":{},"1581":{"submorphs":[],"scripts":[],"id":"03173221-CA46-4D80-A388-2397892B3B8B","shape":{"__isSmartRef__":true,"id":1582},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":205},"textChunks":[{"__isSmartRef__":true,"id":1583}],"charsReplaced":"foo!?","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1585},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":1466},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(10.1,90.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(141.3,-9.4)"},"1582":{"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(217.4,17.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1583":{"style":{"__isSmartRef__":true,"id":1584},"chunkOwner":{"__isSmartRef__":true,"id":1581},"_id":"_1474","storedString":"stopped","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1584":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1585":{"morph":{"__isSmartRef__":true,"id":1581},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1586":{"submorphs":[],"scripts":[],"id":"6553D65D-D821-4102-BD21-F597B1283D3A","shape":{"__isSmartRef__":true,"id":1587},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"Text1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1588},"textChunks":[{"__isSmartRef__":true,"id":1604}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1606},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":1466},"priorSelectionRange":[3,3],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(10.0,60.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(51.5,-18.2)"},"1587":{"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(72.2,26.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1588":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1589},{"__isSmartRef__":true,"id":1591},{"__isSmartRef__":true,"id":1593},{"__isSmartRef__":true,"id":1595},{"__isSmartRef__":true,"id":1597},{"__isSmartRef__":true,"id":1599},{"__isSmartRef__":true,"id":1601}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":1603},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1589":{"date":{"__isSmartRef__":true,"id":1590},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"1590":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"1591":{"date":{"__isSmartRef__":true,"id":1592},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"1592":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"1593":{"date":{"__isSmartRef__":true,"id":1594},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"1594":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"1595":{"date":{"__isSmartRef__":true,"id":1596},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"1596":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"1597":{"date":{"__isSmartRef__":true,"id":1598},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"1598":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"1599":{"date":{"__isSmartRef__":true,"id":1600},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"1600":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"1601":{"date":{"__isSmartRef__":true,"id":1602},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"1602":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"1603":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"1604":{"style":{"__isSmartRef__":true,"id":1605},"morph":{"__isSmartRef__":true,"id":1586},"chunkOwner":{"__isSmartRef__":true,"id":1586},"storedString":"Steps:","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1605":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1606":{"morph":{"__isSmartRef__":true,"id":1586},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1607":{"submorphs":[],"scripts":[],"id":"EBC3B0E5-7768-43D9-92A0-75AA9B71C8F9","shape":{"__isSmartRef__":true,"id":1608},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"Text2","partsBinMetaInfo":{"__isSmartRef__":true,"id":1609},"textChunks":[{"__isSmartRef__":true,"id":1625}],"charsReplaced":"50","lastFindLoc":2,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1627},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","6553D65D-D821-4102-BD21-F597B1283D3A"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":1466},"isInputLine":true,"_WordBreak":"break-all","_InputAllowed":true,"_HandStyle":null,"allowInput":true,"attributeConnections":[{"__isSmartRef__":true,"id":1628}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"50","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(100.0,60.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(35.3,-14.1)"},"1608":{"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(28.0,26.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1609":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1610},{"__isSmartRef__":true,"id":1612},{"__isSmartRef__":true,"id":1614},{"__isSmartRef__":true,"id":1616},{"__isSmartRef__":true,"id":1618},{"__isSmartRef__":true,"id":1620},{"__isSmartRef__":true,"id":1622}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":1624},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1610":{"date":{"__isSmartRef__":true,"id":1611},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"1611":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"1612":{"date":{"__isSmartRef__":true,"id":1613},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"1613":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"1614":{"date":{"__isSmartRef__":true,"id":1615},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"1615":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"1616":{"date":{"__isSmartRef__":true,"id":1617},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"1617":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"1618":{"date":{"__isSmartRef__":true,"id":1619},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"1619":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"1620":{"date":{"__isSmartRef__":true,"id":1621},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"1621":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"1622":{"date":{"__isSmartRef__":true,"id":1623},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"1623":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"1624":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"1625":{"style":{"__isSmartRef__":true,"id":1626},"morph":{"__isSmartRef__":true,"id":1607},"chunkOwner":{"__isSmartRef__":true,"id":1607},"storedString":"50","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1626":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1627":{"morph":{"__isSmartRef__":true,"id":1607},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1628":{"sourceObj":{"__isSmartRef__":true,"id":1607},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":689},"targetMethodName":"simStepsAtOnce","varMapping":{"__isSmartRef__":true,"id":1629},"converterString":"function converter(value) {\n return Number(value)\n}","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1629":{"source":{"__isSmartRef__":true,"id":1607},"target":{"__isSmartRef__":true,"id":689}},"1630":{"submorphs":[],"scripts":[],"id":"58A0F8ED-8A21-46C8-BE4F-3D83815957F1","shape":{"__isSmartRef__":true,"id":1631},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"Text3","partsBinMetaInfo":{"__isSmartRef__":true,"id":1632},"textChunks":[{"__isSmartRef__":true,"id":1648}],"charsReplaced":"Steps","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1650},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","6553D65D-D821-4102-BD21-F597B1283D3A"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[1,1],"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":1466},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(150.0,60.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(49.5,-15.1)"},"1631":{"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(72.2,26.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1632":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1633},{"__isSmartRef__":true,"id":1635},{"__isSmartRef__":true,"id":1637},{"__isSmartRef__":true,"id":1639},{"__isSmartRef__":true,"id":1641},{"__isSmartRef__":true,"id":1643},{"__isSmartRef__":true,"id":1645}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":1647},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1633":{"date":{"__isSmartRef__":true,"id":1634},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"1634":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"1635":{"date":{"__isSmartRef__":true,"id":1636},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"1636":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"1637":{"date":{"__isSmartRef__":true,"id":1638},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"1638":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"1639":{"date":{"__isSmartRef__":true,"id":1640},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"1640":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"1641":{"date":{"__isSmartRef__":true,"id":1642},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"1642":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"1643":{"date":{"__isSmartRef__":true,"id":1644},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"1644":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"1645":{"date":{"__isSmartRef__":true,"id":1646},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"1646":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"1647":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"1648":{"style":{"__isSmartRef__":true,"id":1649},"morph":{"__isSmartRef__":true,"id":1630},"chunkOwner":{"__isSmartRef__":true,"id":1630},"storedString":"Time:","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1649":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1650":{"morph":{"__isSmartRef__":true,"id":1630},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1651":{"submorphs":[],"scripts":[],"id":"6E626760-6587-4CAD-9293-F6DC453C190B","shape":{"__isSmartRef__":true,"id":1652},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"Text4","partsBinMetaInfo":{"__isSmartRef__":true,"id":1653},"textChunks":[{"__isSmartRef__":true,"id":1669}],"charsReplaced":"0.2","lastFindLoc":3,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1671},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","6553D65D-D821-4102-BD21-F597B1283D3A","58A0F8ED-8A21-46C8-BE4F-3D83815957F1"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":1466},"isInputLine":true,"_WordBreak":"break-all","_InputAllowed":true,"_HandStyle":null,"allowInput":true,"attributeConnections":[{"__isSmartRef__":true,"id":1672}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"0.1","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(230.0,60.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(48.4,-14.1)"},"1652":{"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(76.0,28.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1653":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1654},{"__isSmartRef__":true,"id":1656},{"__isSmartRef__":true,"id":1658},{"__isSmartRef__":true,"id":1660},{"__isSmartRef__":true,"id":1662},{"__isSmartRef__":true,"id":1664},{"__isSmartRef__":true,"id":1666}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":1668},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1654":{"date":{"__isSmartRef__":true,"id":1655},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"1655":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"1656":{"date":{"__isSmartRef__":true,"id":1657},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"1657":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"1658":{"date":{"__isSmartRef__":true,"id":1659},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"1659":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"1660":{"date":{"__isSmartRef__":true,"id":1661},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"1661":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"1662":{"date":{"__isSmartRef__":true,"id":1663},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"1663":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"1664":{"date":{"__isSmartRef__":true,"id":1665},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"1665":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"1666":{"date":{"__isSmartRef__":true,"id":1667},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"1667":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"1668":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"1669":{"style":{"__isSmartRef__":true,"id":1670},"morph":{"__isSmartRef__":true,"id":1651},"chunkOwner":{"__isSmartRef__":true,"id":1651},"storedString":"0.1","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1670":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1671":{"morph":{"__isSmartRef__":true,"id":1651},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1672":{"sourceObj":{"__isSmartRef__":true,"id":1651},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":689},"targetMethodName":"deltaTime","varMapping":{"__isSmartRef__":true,"id":1673},"converterString":"function converter(value) {\n return Number(value)\n}","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1673":{"source":{"__isSmartRef__":true,"id":1651},"target":{"__isSmartRef__":true,"id":689}},"1674":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(369.7,145.4)","_BorderColor":"Color.rgb(178,178,178)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"1675":{"partsSpaceName":"PartsBin/Basic","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1676},{"__isSmartRef__":true,"id":1678},{"__isSmartRef__":true,"id":1680},{"__isSmartRef__":true,"id":1682},{"__isSmartRef__":true,"id":1684},{"__isSmartRef__":true,"id":1686},{"__isSmartRef__":true,"id":1688},{"__isSmartRef__":true,"id":1690},{"__isSmartRef__":true,"id":1692},{"__isSmartRef__":true,"id":1694},{"__isSmartRef__":true,"id":1696},{"__isSmartRef__":true,"id":1698},{"__isSmartRef__":true,"id":1700},{"__isSmartRef__":true,"id":1702},{"__isSmartRef__":true,"id":1704},{"__isSmartRef__":true,"id":1706}],"lastModifiedDate":{"__isSmartRef__":true,"id":1708},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1676":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":1677}},"1677":{"isSerializedDate":true,"string":"Fri Jun 21 2013 00:16:24 GMT+0200 (CEST)"},"1678":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":1679}},"1679":{"isSerializedDate":true,"string":"Thu May 30 2013 09:18:06 GMT+0200 (CEST)"},"1680":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":1681}},"1681":{"isSerializedDate":true,"string":"Wed Jan 23 2013 12:57:18 GMT+0100 (CET)"},"1682":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":1683}},"1683":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"1684":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":1685}},"1685":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"1686":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":1687}},"1687":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"1688":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":1689}},"1689":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"1690":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":1691}},"1691":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"1692":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":1693}},"1693":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"1694":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":1695}},"1695":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:35:08 GMT+0200 (CEST)"},"1696":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":1697}},"1697":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:35:51 GMT+0100 (CET)"},"1698":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":1699}},"1699":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:42:31 GMT+0100 (CET)"},"1700":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":1701}},"1701":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:47:05 GMT+0100 (CET)"},"1702":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":1703}},"1703":{"isSerializedDate":true,"string":"Thu May 30 2013 00:36:50 GMT+0200 (CEST)"},"1704":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":1705}},"1705":{"isSerializedDate":true,"string":"Tue Jun 18 2013 20:49:27 GMT+0200 (CEST)"},"1706":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":1707}},"1707":{"isSerializedDate":true,"string":"Tue Jul 30 2013 08:20:51 GMT+0200 (CEST)"},"1708":{"isSerializedDate":true,"string":"Thu Aug 15 2013 21:21:30 GMT+0200 (CEST)"},"1709":{"morph":{"__isSmartRef__":true,"id":1466},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1710":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1711}},"1711":{"test01IsMorph":{"__isSmartRef__":true,"id":1712}},"1712":{"varMapping":{"__isSmartRef__":true,"id":1713},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1713":{"this":{"__isSmartRef__":true,"id":1710}},"1714":{},"1715":{"onStart":{"__isSmartRef__":true,"id":1716},"onStop":{"__isSmartRef__":true,"id":1720},"updateVelocity":{"__isSmartRef__":true,"id":1724},"countSteps":{"__isSmartRef__":true,"id":1728},"onStep":{"__isSmartRef__":true,"id":1732}},"1716":{"varMapping":{"__isSmartRef__":true,"id":1717},"source":"function onStart() {\n this.updateVelocity()\n}","funcProperties":{"__isSmartRef__":true,"id":1718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1717":{"this":{"__isSmartRef__":true,"id":1466}},"1718":{"timestamp":{"__isSmartRef__":true,"id":1719},"user":"jenslincke","tags":[]},"1719":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:54:10 GMT+0100 (CET)"},"1720":{"varMapping":{"__isSmartRef__":true,"id":1721},"source":"function onStop() {\n this.owner.stopStepping()\n this.stopStepping()\n this.get(\"Status\").textString = \"stopped\"\n this.get(\"SimulationResults\").showData()\n}","funcProperties":{"__isSmartRef__":true,"id":1722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1721":{"this":{"__isSmartRef__":true,"id":1466}},"1722":{"timestamp":{"__isSmartRef__":true,"id":1723},"user":"jenslincke","tags":[]},"1723":{"isSerializedDate":true,"string":"Fri Jan 24 2014 22:27:05 GMT+0100 (CET)"},"1724":{"varMapping":{"__isSmartRef__":true,"id":1725},"source":"function updateVelocity() {\n this.owner.stopStepping()\n this.startTime = Date.now()\n this.steps = 0\n var speed = (1 - this.get(\"SimulationVelocity\").value) * 1000\n this.owner.startStepping(speed, \"simulateStep\")\n this.startStepping(speed, \"countSteps\")\n}","funcProperties":{"__isSmartRef__":true,"id":1726},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1725":{"this":{"__isSmartRef__":true,"id":1466}},"1726":{"timestamp":{"__isSmartRef__":true,"id":1727},"user":"jenslincke","tags":[]},"1727":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:59:39 GMT+0100 (CET)"},"1728":{"varMapping":{"__isSmartRef__":true,"id":1729},"source":"function countSteps() {\n this.steps ++\n var stepsPerSec = this.steps / (Date.now() - this.startTime) * 1000,\n simStepsPerSec = this.steps * this.owner.simStepsAtOnce / (Date.now() - this.startTime) * 1000\n this.get(\"Status\").textString =\"running\\n\" + this.steps + \" frames \\n\" + stepsPerSec.roundTo(0.1) + \" fps\\n\" +\n simStepsPerSec.roundTo(0.1) + \" steps/s\"\n\n\n this.get(\"SimulationResults\").showData()\n}","funcProperties":{"__isSmartRef__":true,"id":1730},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1729":{"this":{"__isSmartRef__":true,"id":1466}},"1730":{"timestamp":{"__isSmartRef__":true,"id":1731},"user":"jenslincke","tags":[]},"1731":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:44:32 GMT+0100 (CET)"},"1732":{"varMapping":{"__isSmartRef__":true,"id":1733},"source":"function onStep() {\n this.owner.resetStatus()\n this.owner.simulateOneStep()\n this.get(\"SimulationResults\").showData()\n \n}","funcProperties":{"__isSmartRef__":true,"id":1734},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1733":{"this":{"__isSmartRef__":true,"id":1466}},"1734":{"timestamp":{"__isSmartRef__":true,"id":1735},"user":"jenslincke","tags":[]},"1735":{"isSerializedDate":true,"string":"Tue Jan 28 2014 14:37:50 GMT+0100 (CET)"},"1736":{"submorphs":[{"__isSmartRef__":true,"id":1737},{"__isSmartRef__":true,"id":1761},{"__isSmartRef__":true,"id":2050},{"__isSmartRef__":true,"id":2072}],"scripts":[],"id":"FD94C295-74F7-4A84-B5DE-A95BD3AF9A10","shape":{"__isSmartRef__":true,"id":2096},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2097},"eventHandler":{"__isSmartRef__":true,"id":2157},"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","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","5E21C7BB-A7E2-498E-858F-032DCC55A4FC","2072AEFD-449A-4F4E-B8A5-9A6C57DEBB4B","8013D903-1809-4244-AABF-4DF28A1844DB","00F3C15D-F47A-44A0-8AD1-817E6DA58255","6A96318B-D7CD-48E2-913D-29CB6897E3B7","B2263E54-BA2B-4C60-B8A1-92637C28EA08","64C5A21D-7106-40F1-A881-4B19EEF4534D","558820C1-7325-4652-A6CF-33B25DBDDE22","BCDFBF89-EC99-457D-A530-78EE6AA50603","BB62D9DB-5F5D-46D1-B13F-ECC2CFA93FFA","13370CD2-1232-4E30-9AB6-D43A7241AB79"],"partTests":{"__isSmartRef__":true,"id":2158},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":2163},{"__isSmartRef__":true,"id":2164},{"__isSmartRef__":true,"id":2165},{"__isSmartRef__":true,"id":2166},{"__isSmartRef__":true,"id":2167},{"__isSmartRef__":true,"id":2168},{"__isSmartRef__":true,"id":2169},{"__isSmartRef__":true,"id":2170}],"prevScroll":[0,0],"isEnergySimulationPart":true,"layout":{"__isSmartRef__":true,"id":2171},"$":{"__isSmartRef__":true,"id":2172},"name":"MeasureData","attributeConnections":[{"__isSmartRef__":true,"id":2173}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"units":{"__isSmartRef__":true,"id":2175},"_Rotation":0,"_Scale":1,"scriptAnalysis":{"__isSmartRef__":true,"id":2176},"lastNameReference":"Fuel","owner":{"__isSmartRef__":true,"id":689},"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2179},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(335.3,-9.9)","_Position":"lively.pt(1516.7,714.4)"},"1737":{"submorphs":[],"scripts":[],"id":"C9D0D0A3-0302-4324-842B-91595014E755","shape":{"__isSmartRef__":true,"id":1738},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":1739},"textChunks":[{"__isSmartRef__":true,"id":1741}],"charsReplaced":"EnergySimulationPart","lastFindLoc":20,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":1743},{"__isSmartRef__":true,"id":1744}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"HeatingSystem","eventHandler":{"__isSmartRef__":true,"id":1745},"owner":{"__isSmartRef__":true,"id":1736},"derivationIds":[7027,"63B54D01-70F2-4A5D-8586-BE6EDD15DB66","C5E299A1-9E8A-477F-985B-DDC8528C798C","34C77E49-70E0-4238-BFC7-110384901543","21EE0BC1-029B-42D1-A2CC-381C601A5F55","17C73E30-F0FE-4832-A19D-A93FAC698D7D","567146D9-37F5-4BCC-AF7F-DB5A96EE8571","A112085C-FDC7-48D5-A582-CD39CA4E9117"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":1736},"isBeingDragged":false,"draggingEnabled":false,"_Rotation":0,"_Scale":0.9999999999999997,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1746},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.1,8.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(130.4,-10.2)"},"1738":{"fill":null,"_BorderWidth":0,"__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(180.8,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"1739":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":1740},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1740":{"isSerializedDate":true,"string":"Thu Mar 07 2013 01:25:14 GMT+0100 (CET)"},"1741":{"style":{"__isSmartRef__":true,"id":1742},"chunkOwner":{"__isSmartRef__":true,"id":1737},"_id":"_31752","storedString":"MeasureData","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1742":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1743":{"sourceObj":{"__isSmartRef__":true,"id":1737},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1737},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1744":{"sourceObj":{"__isSmartRef__":true,"id":1737},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1737},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1745":{"morph":{"__isSmartRef__":true,"id":1737},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1746":{"updateLabel":{"__isSmartRef__":true,"id":1747},"renameOwner":{"__isSmartRef__":true,"id":1750},"onFocus":{"__isSmartRef__":true,"id":1753}},"1747":{"varMapping":{"__isSmartRef__":true,"id":1748},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":1749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1748":{"this":{"__isSmartRef__":true,"id":1737}},"1749":{},"1750":{"varMapping":{"__isSmartRef__":true,"id":1751},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":1752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1751":{"this":{"__isSmartRef__":true,"id":1737}},"1752":{},"1753":{"varMapping":{"__isSmartRef__":true,"id":1754},"source":"function onFocus(evt) {\n $super(evt)\n if (this.owner.showScriptAnalysis) this.owner.showScriptAnalysis()\n}","funcProperties":{"__isSmartRef__":true,"id":1759},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1754":{"this":{"__isSmartRef__":true,"id":1737},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1755}},"1755":{"$super":{"__isSmartRef__":true,"id":1756}},"1756":{"varMapping":{"__isSmartRef__":true,"id":1757},"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":1758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1757":{"obj":{"__isSmartRef__":true,"id":1737},"name":"onFocus"},"1758":{},"1759":{"timestamp":{"__isSmartRef__":true,"id":1760},"user":"jenslincke","tags":[]},"1760":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:45:12 GMT+0100 (CET)"},"1761":{"submorphs":[],"scripts":[],"id":"248F9863-C373-4FF8-9C18-B86B55759133","shape":{"__isSmartRef__":true,"id":1762},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Monaco,monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"SimulationText","partsBinMetaInfo":{"__isSmartRef__":true,"id":1763},"textChunks":[{"__isSmartRef__":true,"id":1779},{"__isSmartRef__":true,"id":1781},{"__isSmartRef__":true,"id":1783},{"__isSmartRef__":true,"id":1785},{"__isSmartRef__":true,"id":1787},{"__isSmartRef__":true,"id":1789},{"__isSmartRef__":true,"id":1791},{"__isSmartRef__":true,"id":1793},{"__isSmartRef__":true,"id":1795},{"__isSmartRef__":true,"id":1797},{"__isSmartRef__":true,"id":1799},{"__isSmartRef__":true,"id":1801},{"__isSmartRef__":true,"id":1803},{"__isSmartRef__":true,"id":1805},{"__isSmartRef__":true,"id":1807},{"__isSmartRef__":true,"id":1809},{"__isSmartRef__":true,"id":1811},{"__isSmartRef__":true,"id":1813},{"__isSmartRef__":true,"id":1815},{"__isSmartRef__":true,"id":1817},{"__isSmartRef__":true,"id":1819},{"__isSmartRef__":true,"id":1821},{"__isSmartRef__":true,"id":1823},{"__isSmartRef__":true,"id":1825},{"__isSmartRef__":true,"id":1827},{"__isSmartRef__":true,"id":1829},{"__isSmartRef__":true,"id":1831},{"__isSmartRef__":true,"id":1833},{"__isSmartRef__":true,"id":1836},{"__isSmartRef__":true,"id":1838},{"__isSmartRef__":true,"id":1840},{"__isSmartRef__":true,"id":1842},{"__isSmartRef__":true,"id":1844},{"__isSmartRef__":true,"id":1846},{"__isSmartRef__":true,"id":1848},{"__isSmartRef__":true,"id":1851},{"__isSmartRef__":true,"id":1853},{"__isSmartRef__":true,"id":1855},{"__isSmartRef__":true,"id":1857},{"__isSmartRef__":true,"id":1859},{"__isSmartRef__":true,"id":1861},{"__isSmartRef__":true,"id":1863},{"__isSmartRef__":true,"id":1866},{"__isSmartRef__":true,"id":1868},{"__isSmartRef__":true,"id":1870},{"__isSmartRef__":true,"id":1872},{"__isSmartRef__":true,"id":1874},{"__isSmartRef__":true,"id":1876},{"__isSmartRef__":true,"id":1878},{"__isSmartRef__":true,"id":1881},{"__isSmartRef__":true,"id":1883},{"__isSmartRef__":true,"id":1885},{"__isSmartRef__":true,"id":1887},{"__isSmartRef__":true,"id":1889},{"__isSmartRef__":true,"id":1891},{"__isSmartRef__":true,"id":1893},{"__isSmartRef__":true,"id":1896},{"__isSmartRef__":true,"id":1898},{"__isSmartRef__":true,"id":1900},{"__isSmartRef__":true,"id":1902},{"__isSmartRef__":true,"id":1904},{"__isSmartRef__":true,"id":1906},{"__isSmartRef__":true,"id":1908},{"__isSmartRef__":true,"id":1911},{"__isSmartRef__":true,"id":1913},{"__isSmartRef__":true,"id":1915},{"__isSmartRef__":true,"id":1917},{"__isSmartRef__":true,"id":1919},{"__isSmartRef__":true,"id":1921},{"__isSmartRef__":true,"id":1923},{"__isSmartRef__":true,"id":1926},{"__isSmartRef__":true,"id":1928},{"__isSmartRef__":true,"id":1930},{"__isSmartRef__":true,"id":1932},{"__isSmartRef__":true,"id":1934},{"__isSmartRef__":true,"id":1936},{"__isSmartRef__":true,"id":1938},{"__isSmartRef__":true,"id":1940},{"__isSmartRef__":true,"id":1942},{"__isSmartRef__":true,"id":1944},{"__isSmartRef__":true,"id":1946},{"__isSmartRef__":true,"id":1948},{"__isSmartRef__":true,"id":1950},{"__isSmartRef__":true,"id":1952},{"__isSmartRef__":true,"id":1954},{"__isSmartRef__":true,"id":1956},{"__isSmartRef__":true,"id":1958},{"__isSmartRef__":true,"id":1960},{"__isSmartRef__":true,"id":1962},{"__isSmartRef__":true,"id":1964},{"__isSmartRef__":true,"id":1966},{"__isSmartRef__":true,"id":1968},{"__isSmartRef__":true,"id":1970},{"__isSmartRef__":true,"id":1972},{"__isSmartRef__":true,"id":1974},{"__isSmartRef__":true,"id":1976},{"__isSmartRef__":true,"id":1978},{"__isSmartRef__":true,"id":1980},{"__isSmartRef__":true,"id":1982},{"__isSmartRef__":true,"id":1985}],"charsReplaced":" ","lastFindLoc":409,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1987},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","1BC17AC6-65D2-4DD8-906E-C419087FC3F7","6809C3A5-DCFA-4E76-9397-E4C5BA4A34C7","C528D4FD-5331-4D9A-9352-1088CF72DDDA","A3CD61D5-7936-402F-8EBA-3E2456AB5E0C","39BE0850-B4DE-4E8D-9EC7-7A6A5059775A","2035C52E-14AD-4493-A166-F79162AD66FB","D0F7C47B-437F-457E-929F-EA18E7790FA7","22F56005-4177-492C-8AAF-FF810C44931A","AAC02353-3C4E-47A1-8120-60A2F258771E","9FBBDAD3-5AE3-4342-A9DE-CF7593957E51","88B5A45D-F0EA-4372-952F-E5B93250C15E","782DCC77-008C-4653-BD28-DA4E24401AF9","D8C320FE-7916-4301-99FC-57DF6F7818E8","08F797B1-9E4E-44A7-82A8-94AD5055DD06","4A08CEEF-4759-4921-AF85-D276309CF091"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"magnets":[{"__isSmartRef__":true,"id":1988},{"__isSmartRef__":true,"id":1989},{"__isSmartRef__":true,"id":1990},{"__isSmartRef__":true,"id":1991},{"__isSmartRef__":true,"id":1992},{"__isSmartRef__":true,"id":1993},{"__isSmartRef__":true,"id":1994},{"__isSmartRef__":true,"id":1995}],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":1996},"draggingEnabled":false,"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":1736},"savedTextString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas\n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}","attributeConnections":[{"__isSmartRef__":true,"id":1997},{"__isSmartRef__":true,"id":1999}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":98,"_Rotation":0,"_Scale":1,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"previousSelection":[611,611],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"$.Time += dt\n$.Counter += dt\nif ($.Counter < 5) return\n$.Counter = 0\nvar data = {\n Gas: #Fuel.$.Gas,\n Heat: #HeatStorage.$.Energy,\n Battery: #Battery.$.Energy,\n ConsumedPower: #ElectricConsumer.$.Consumed,\n ConsumedHeat: #HeatConsumer.$.Consumed,\n TWP: #ThermalPowerStation.$.Heat,\n HS: #HeatingSystem.$.Heat,\n}\ndata.Total = Properties.values(data).sum()\nvar factor = 0.01 // scale, so that it fits into vis\ndata.Gas *= factor\ndata.ConsumedPower *= factor\ndata.ConsumedHeat *= factor\ndata.Total *= factor\nProperties.own(data).each(function(ea) {\n data[ea] = data[ea].roundTo(0.000001)\n})\ndata.Time = $.Time,\n#SimulationResults.addData(data)","priorSelectionRange":[68,68],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2001},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"1762":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_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(487.9,458.9)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1763":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1764},{"__isSmartRef__":true,"id":1766},{"__isSmartRef__":true,"id":1768},{"__isSmartRef__":true,"id":1770},{"__isSmartRef__":true,"id":1772},{"__isSmartRef__":true,"id":1774},{"__isSmartRef__":true,"id":1776}],"lastModifiedDate":{"__isSmartRef__":true,"id":1778},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1764":{"date":{"__isSmartRef__":true,"id":1765},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"1765":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"1766":{"date":{"__isSmartRef__":true,"id":1767},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"1767":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"1768":{"date":{"__isSmartRef__":true,"id":1769},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"1769":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"1770":{"date":{"__isSmartRef__":true,"id":1771},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"1771":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"1772":{"date":{"__isSmartRef__":true,"id":1773},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"1773":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"1774":{"date":{"__isSmartRef__":true,"id":1775},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"1775":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"1776":{"date":{"__isSmartRef__":true,"id":1777},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"1777":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"1778":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"1779":{"style":{"__isSmartRef__":true,"id":1780},"chunkOwner":{"__isSmartRef__":true,"id":1761},"_id":"_14","storedString":"$","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1780":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"1781":{"_id":"_4186","style":{"__isSmartRef__":true,"id":1782},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":".Time +=","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1782":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1783":{"_id":"_4250","style":{"__isSmartRef__":true,"id":1784},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":" dt\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1784":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,204,0)"},"1785":{"_id":"_4251","style":{"__isSmartRef__":true,"id":1786},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1786":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1787":{"_id":"_4241","style":{"__isSmartRef__":true,"id":1788},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"Counter","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1788":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1789":{"_id":"_4240","style":{"__isSmartRef__":true,"id":1790},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":" +=","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1790":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1791":{"_id":"_4252","style":{"__isSmartRef__":true,"id":1792},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":" dt\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1792":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,204,0)"},"1793":{"_id":"_68","style":{"__isSmartRef__":true,"id":1794},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1794":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"1795":{"_id":"_69","style":{"__isSmartRef__":true,"id":1796},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1796":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1797":{"_id":"_4243","style":{"__isSmartRef__":true,"id":1798},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"($.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1798":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1799":{"_id":"_4244","style":{"__isSmartRef__":true,"id":1800},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"Counter","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1800":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1801":{"_id":"_4242","style":{"__isSmartRef__":true,"id":1802},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":" < ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1802":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1803":{"_id":"_70","style":{"__isSmartRef__":true,"id":1804},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"5","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1804":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"1805":{"_id":"_71","style":{"__isSmartRef__":true,"id":1806},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":") ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1806":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1807":{"_id":"_72","style":{"__isSmartRef__":true,"id":1808},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"return","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1808":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"1809":{"_id":"_73","style":{"__isSmartRef__":true,"id":1810},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"\n$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1810":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1811":{"_id":"_4246","style":{"__isSmartRef__":true,"id":1812},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"Counter","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1812":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1813":{"_id":"_4245","style":{"__isSmartRef__":true,"id":1814},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":" = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1814":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1815":{"_id":"_74","style":{"__isSmartRef__":true,"id":1816},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1816":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"1817":{"_id":"_75","style":{"__isSmartRef__":true,"id":1818},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1818":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1819":{"_id":"_76","style":{"__isSmartRef__":true,"id":1820},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1820":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"1821":{"_id":"_77","style":{"__isSmartRef__":true,"id":1822},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":" data = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1822":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1823":{"_id":"_78","style":{"__isSmartRef__":true,"id":1824},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1824":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1825":{"_id":"_79","style":{"__isSmartRef__":true,"id":1826},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1826":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1827":{"_id":"_80","style":{"__isSmartRef__":true,"id":1828},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"Gas:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1828":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(139,0,0)"},"1829":{"_id":"_81","style":{"__isSmartRef__":true,"id":1830},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1830":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1831":{"_id":"_4203","style":{"__isSmartRef__":true,"id":1832},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1832":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1833":{"_id":"_4204","style":{"__isSmartRef__":true,"id":1834},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"Fuel","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1834":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1835},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1835":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"Fuel\")","context":{"__isSmartRef__":true,"id":1736}},"1836":{"_id":"_4136","style":{"__isSmartRef__":true,"id":1837},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1837":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1838":{"_id":"_4205","style":{"__isSmartRef__":true,"id":1839},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"Gas","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1839":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1840":{"_id":"_4206","style":{"__isSmartRef__":true,"id":1841},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":",\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1841":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1842":{"_id":"_82","style":{"__isSmartRef__":true,"id":1843},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"Heat:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1843":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(139,0,0)"},"1844":{"_id":"_83","style":{"__isSmartRef__":true,"id":1845},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1845":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1846":{"_id":"_4207","style":{"__isSmartRef__":true,"id":1847},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1847":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1848":{"_id":"_4209","style":{"__isSmartRef__":true,"id":1849},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"HeatStorage","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1849":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1850},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1850":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatStorage\")","context":{"__isSmartRef__":true,"id":1736}},"1851":{"_id":"_4208","style":{"__isSmartRef__":true,"id":1852},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1852":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1853":{"_id":"_4210","style":{"__isSmartRef__":true,"id":1854},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"Energy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1854":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1855":{"_id":"_4211","style":{"__isSmartRef__":true,"id":1856},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":",\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1856":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1857":{"_id":"_84","style":{"__isSmartRef__":true,"id":1858},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"Battery:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1858":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(139,0,0)"},"1859":{"_id":"_85","style":{"__isSmartRef__":true,"id":1860},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1860":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1861":{"_id":"_4212","style":{"__isSmartRef__":true,"id":1862},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1862":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1863":{"_id":"_4214","style":{"__isSmartRef__":true,"id":1864},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"Battery","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1864":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1865},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1865":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"Battery\")","context":{"__isSmartRef__":true,"id":1736}},"1866":{"_id":"_4213","style":{"__isSmartRef__":true,"id":1867},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1867":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1868":{"_id":"_4215","style":{"__isSmartRef__":true,"id":1869},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"Energy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1869":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1870":{"_id":"_4216","style":{"__isSmartRef__":true,"id":1871},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":",\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1871":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1872":{"_id":"_86","style":{"__isSmartRef__":true,"id":1873},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"ConsumedPower:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1873":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(139,0,0)"},"1874":{"_id":"_87","style":{"__isSmartRef__":true,"id":1875},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1875":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1876":{"_id":"_4217","style":{"__isSmartRef__":true,"id":1877},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1877":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1878":{"_id":"_4219","style":{"__isSmartRef__":true,"id":1879},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"ElectricConsumer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1879":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1880},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1880":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"ElectricConsumer\")","context":{"__isSmartRef__":true,"id":1736}},"1881":{"_id":"_4218","style":{"__isSmartRef__":true,"id":1882},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1882":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1883":{"_id":"_4220","style":{"__isSmartRef__":true,"id":1884},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"Consumed","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1884":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1885":{"_id":"_4221","style":{"__isSmartRef__":true,"id":1886},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":",\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1886":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1887":{"_id":"_88","style":{"__isSmartRef__":true,"id":1888},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"ConsumedHeat:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1888":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(139,0,0)"},"1889":{"_id":"_89","style":{"__isSmartRef__":true,"id":1890},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1890":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1891":{"_id":"_4222","style":{"__isSmartRef__":true,"id":1892},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1892":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1893":{"_id":"_4224","style":{"__isSmartRef__":true,"id":1894},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"HeatConsumer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1894":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1895},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1895":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatConsumer\")","context":{"__isSmartRef__":true,"id":1736}},"1896":{"_id":"_4223","style":{"__isSmartRef__":true,"id":1897},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1897":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1898":{"_id":"_4225","style":{"__isSmartRef__":true,"id":1899},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"Consumed","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1899":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1900":{"_id":"_4226","style":{"__isSmartRef__":true,"id":1901},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":",\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1901":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1902":{"_id":"_90","style":{"__isSmartRef__":true,"id":1903},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"TWP:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1903":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(139,0,0)"},"1904":{"_id":"_91","style":{"__isSmartRef__":true,"id":1905},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1905":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1906":{"_id":"_4227","style":{"__isSmartRef__":true,"id":1907},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1907":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1908":{"_id":"_4229","style":{"__isSmartRef__":true,"id":1909},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"ThermalPowerStation","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1909":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1910},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1910":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"ThermalPowerStation\")","context":{"__isSmartRef__":true,"id":1736}},"1911":{"_id":"_4228","style":{"__isSmartRef__":true,"id":1912},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1912":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1913":{"_id":"_4230","style":{"__isSmartRef__":true,"id":1914},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"Heat","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1914":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1915":{"_id":"_4231","style":{"__isSmartRef__":true,"id":1916},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":",\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1916":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1917":{"_id":"_92","style":{"__isSmartRef__":true,"id":1918},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"HS:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1918":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(139,0,0)"},"1919":{"_id":"_93","style":{"__isSmartRef__":true,"id":1920},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1920":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1921":{"_id":"_4232","style":{"__isSmartRef__":true,"id":1922},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1922":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1923":{"_id":"_4234","style":{"__isSmartRef__":true,"id":1924},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"HeatingSystem","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1924":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1925},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1925":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"HeatingSystem\")","context":{"__isSmartRef__":true,"id":1736}},"1926":{"_id":"_4233","style":{"__isSmartRef__":true,"id":1927},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":".$.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1927":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1928":{"_id":"_4235","style":{"__isSmartRef__":true,"id":1929},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"Heat","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1929":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1930":{"_id":"_4236","style":{"__isSmartRef__":true,"id":1931},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":",\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1931":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1932":{"_id":"_94","style":{"__isSmartRef__":true,"id":1933},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1933":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1934":{"_id":"_95","style":{"__isSmartRef__":true,"id":1935},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"\ndata.Total = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1935":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1936":{"_id":"_4197","style":{"__isSmartRef__":true,"id":1937},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"Properties","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1937":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"1938":{"_id":"_4198","style":{"__isSmartRef__":true,"id":1939},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":".values(data).sum()\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1939":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1940":{"_id":"_96","style":{"__isSmartRef__":true,"id":1941},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1941":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"1942":{"_id":"_97","style":{"__isSmartRef__":true,"id":1943},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":" factor = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1943":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1944":{"_id":"_98","style":{"__isSmartRef__":true,"id":1945},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"0.01","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1945":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"1946":{"_id":"_99","style":{"__isSmartRef__":true,"id":1947},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1947":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1948":{"_id":"_100","style":{"__isSmartRef__":true,"id":1949},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1949":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"1950":{"_id":"_101","style":{"__isSmartRef__":true,"id":1951},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":" scale, so that it fits into vis","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1951":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1952":{"_id":"_102","style":{"__isSmartRef__":true,"id":1953},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"\ndata.Gas *= factor\ndata.ConsumedPower *= factor\ndata.ConsumedHeat *= factor\ndata.Total *= factor\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1953":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1954":{"_id":"_4199","style":{"__isSmartRef__":true,"id":1955},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"Properties","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1955":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"1956":{"_id":"_4200","style":{"__isSmartRef__":true,"id":1957},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":".own(data).each(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1957":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1958":{"_id":"_103","style":{"__isSmartRef__":true,"id":1959},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1959":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"1960":{"_id":"_104","style":{"__isSmartRef__":true,"id":1961},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"(ea) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1961":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1962":{"_id":"_105","style":{"__isSmartRef__":true,"id":1963},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1963":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1964":{"_id":"_106","style":{"__isSmartRef__":true,"id":1965},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"\n data[ea] = data[ea].roundTo(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1965":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1966":{"_id":"_107","style":{"__isSmartRef__":true,"id":1967},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"0.000001","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1967":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"1968":{"_id":"_108","style":{"__isSmartRef__":true,"id":1969},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":")\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1969":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1970":{"_id":"_109","style":{"__isSmartRef__":true,"id":1971},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1971":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"1972":{"_id":"_110","style":{"__isSmartRef__":true,"id":1973},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":")\ndata.Time =","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1973":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1974":{"_id":"_4248","style":{"__isSmartRef__":true,"id":1975},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":" $.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1975":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"1976":{"_id":"_4249","style":{"__isSmartRef__":true,"id":1977},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"Time","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1977":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1978":{"_id":"_4247","style":{"__isSmartRef__":true,"id":1979},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":",\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1979":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1980":{"_id":"_4237","style":{"__isSmartRef__":true,"id":1981},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"#","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1981":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1982":{"_id":"_4239","style":{"__isSmartRef__":true,"id":1983},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"SimulationResults","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1983":{"__serializedExpressions__":["color"],"backgroundColor":null,"doit":{"__isSmartRef__":true,"id":1984},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"1984":{"isAutoformatHighlight":true,"code":"this.showNameReference(\"SimulationResults\")","context":{"__isSmartRef__":true,"id":1736}},"1985":{"_id":"_4238","style":{"__isSmartRef__":true,"id":1986},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":".addData(data)","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1986":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"1987":{"morph":{"__isSmartRef__":true,"id":1761},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1988":{"morph":{"__isSmartRef__":true,"id":1761},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"1989":{"morph":{"__isSmartRef__":true,"id":1761},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"1990":{"morph":{"__isSmartRef__":true,"id":1761},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"1991":{"morph":{"__isSmartRef__":true,"id":1761},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"1992":{"morph":{"__isSmartRef__":true,"id":1761},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"1993":{"morph":{"__isSmartRef__":true,"id":1761},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"1994":{"morph":{"__isSmartRef__":true,"id":1761},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"1995":{"morph":{"__isSmartRef__":true,"id":1761},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"1996":{"resizeWidth":true,"resizeHeight":true},"1997":{"sourceObj":{"__isSmartRef__":true,"id":1761},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1736},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":1998},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1998":{"source":{"__isSmartRef__":true,"id":1761},"target":{"__isSmartRef__":true,"id":1736}},"1999":{"sourceObj":{"__isSmartRef__":true,"id":1761},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":1761},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":2000},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2000":{"source":{"__isSmartRef__":true,"id":1761},"target":{"__isSmartRef__":true,"id":1761}},"2001":{"boundEval":{"__isSmartRef__":true,"id":2002},"getDoitContext":{"__isSmartRef__":true,"id":2010},"installLayers":{"__isSmartRef__":true,"id":2018},"onLoad":{"__isSmartRef__":true,"id":2022},"highligtScriptNames":{"__isSmartRef__":true,"id":2026},"getAutoCompletion":{"__isSmartRef__":true,"id":2030},"reset":{"__isSmartRef__":true,"id":2038},"getLastWordRange":{"__isSmartRef__":true,"id":2042}},"2002":{"varMapping":{"__isSmartRef__":true,"id":2003},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2003":{"this":{"__isSmartRef__":true,"id":1761},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2004}},"2004":{"$super":{"__isSmartRef__":true,"id":2005}},"2005":{"varMapping":{"__isSmartRef__":true,"id":2006},"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":2007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2006":{"obj":{"__isSmartRef__":true,"id":1761},"name":"boundEval"},"2007":{},"2008":{"timestamp":{"__isSmartRef__":true,"id":2009},"user":"jenslincke","tags":[]},"2009":{"isSerializedDate":true,"string":"Tue Jan 28 2014 11:28:47 GMT+0100 (CET)"},"2010":{"varMapping":{"__isSmartRef__":true,"id":2011},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":2016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2011":{"this":{"__isSmartRef__":true,"id":1761},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2012}},"2012":{"$super":{"__isSmartRef__":true,"id":2013}},"2013":{"varMapping":{"__isSmartRef__":true,"id":2014},"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":2015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2014":{"obj":{"__isSmartRef__":true,"id":1761},"name":"getDoitContext"},"2015":{},"2016":{"timestamp":{"__isSmartRef__":true,"id":2017},"user":"jenslincke","tags":[]},"2017":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:42:09 GMT+0100 (CET)"},"2018":{"varMapping":{"__isSmartRef__":true,"id":2019},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":2020},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2019":{"this":{"__isSmartRef__":true,"id":1761}},"2020":{"timestamp":{"__isSmartRef__":true,"id":2021},"user":"jenslincke","tags":[]},"2021":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:44 GMT+0100 (CET)"},"2022":{"varMapping":{"__isSmartRef__":true,"id":2023},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":2024},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2023":{"this":{"__isSmartRef__":true,"id":1761}},"2024":{"timestamp":{"__isSmartRef__":true,"id":2025},"user":"jenslincke","tags":[]},"2025":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:45 GMT+0100 (CET)"},"2026":{"varMapping":{"__isSmartRef__":true,"id":2027},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.showNameReference(\"'+name+'\")',\n context: this.owner}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":2028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2027":{"this":{"__isSmartRef__":true,"id":1761}},"2028":{"timestamp":{"__isSmartRef__":true,"id":2029},"user":"jenslincke","tags":[]},"2029":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:25:07 GMT+0100 (CET)"},"2030":{"varMapping":{"__isSmartRef__":true,"id":2031},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":2036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2031":{"this":{"__isSmartRef__":true,"id":1761},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2032}},"2032":{"$super":{"__isSmartRef__":true,"id":2033}},"2033":{"varMapping":{"__isSmartRef__":true,"id":2034},"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":2035},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2034":{"obj":{"__isSmartRef__":true,"id":1761},"name":"getAutoCompletion"},"2035":{},"2036":{"timestamp":{"__isSmartRef__":true,"id":2037},"user":"jenslincke","tags":[]},"2037":{"isSerializedDate":true,"string":"Wed Jan 29 2014 00:33:17 GMT+0100 (CET)"},"2038":{"varMapping":{"__isSmartRef__":true,"id":2039},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":2040},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2039":{"this":{"__isSmartRef__":true,"id":1761}},"2040":{"timestamp":{"__isSmartRef__":true,"id":2041},"user":"jenslincke","tags":[]},"2041":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:58:01 GMT+0100 (CET)"},"2042":{"varMapping":{"__isSmartRef__":true,"id":2043},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2043":{"this":{"__isSmartRef__":true,"id":1761},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2044}},"2044":{"$super":{"__isSmartRef__":true,"id":2045}},"2045":{"varMapping":{"__isSmartRef__":true,"id":2046},"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":2047},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2046":{"obj":{"__isSmartRef__":true,"id":1761},"name":"getLastWordRange"},"2047":{},"2048":{"timestamp":{"__isSmartRef__":true,"id":2049},"user":"jenslincke","tags":[]},"2049":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:59:58 GMT+0100 (CET)"},"2050":{"submorphs":[],"scripts":[],"id":"2A1B7CB6-2C23-413B-834C-D34F21767554","shape":{"__isSmartRef__":true,"id":2051},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":2052},"textChunks":[{"__isSmartRef__":true,"id":2068}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2070},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","DDEC9403-6C57-4923-ABE3-1737E6362120","07D195A1-33DA-4A4D-B3EA-B51C03BACF39"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":1736},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":2071},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,543.9)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"2051":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"_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(480.0,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2052":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2053},{"__isSmartRef__":true,"id":2055},{"__isSmartRef__":true,"id":2057},{"__isSmartRef__":true,"id":2059},{"__isSmartRef__":true,"id":2061},{"__isSmartRef__":true,"id":2063},{"__isSmartRef__":true,"id":2065}],"lastModifiedDate":{"__isSmartRef__":true,"id":2067},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2053":{"date":{"__isSmartRef__":true,"id":2054},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"2054":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"2055":{"date":{"__isSmartRef__":true,"id":2056},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"2056":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"2057":{"date":{"__isSmartRef__":true,"id":2058},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"2058":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"2059":{"date":{"__isSmartRef__":true,"id":2060},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"2060":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"2061":{"date":{"__isSmartRef__":true,"id":2062},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"2062":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"2063":{"date":{"__isSmartRef__":true,"id":2064},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"2064":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"2065":{"date":{"__isSmartRef__":true,"id":2066},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"2066":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"2067":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"2068":{"style":{"__isSmartRef__":true,"id":2069},"chunkOwner":{"__isSmartRef__":true,"id":2050},"_id":"_2916","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2069":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2070":{"morph":{"__isSmartRef__":true,"id":2050},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2071":{"moveVertical":true,"resizeWidth":true},"2072":{"submorphs":[],"scripts":[],"id":"E46F0D91-E03D-428B-972B-74982D08BB8D","shape":{"__isSmartRef__":true,"id":2073},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":2074},"textChunks":[{"__isSmartRef__":true,"id":2090}],"charsReplaced":"false","lastFindLoc":28,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2092},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","1A5DC502-21A9-4B18-8878-654818F4C282","88E27517-6524-49AD-AF69-936DADF77DDD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":1736},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":2093}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 10\nMax: 5 [kW]","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":2095},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"2073":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(473.5,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2074":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2075},{"__isSmartRef__":true,"id":2077},{"__isSmartRef__":true,"id":2079},{"__isSmartRef__":true,"id":2081},{"__isSmartRef__":true,"id":2083},{"__isSmartRef__":true,"id":2085},{"__isSmartRef__":true,"id":2087}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":2089},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2075":{"date":{"__isSmartRef__":true,"id":2076},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"2076":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"2077":{"date":{"__isSmartRef__":true,"id":2078},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"2078":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"2079":{"date":{"__isSmartRef__":true,"id":2080},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"2080":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"2081":{"date":{"__isSmartRef__":true,"id":2082},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"2082":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"2083":{"date":{"__isSmartRef__":true,"id":2084},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"2084":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"2085":{"date":{"__isSmartRef__":true,"id":2086},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"2086":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"2087":{"date":{"__isSmartRef__":true,"id":2088},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"2088":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"2089":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"2090":{"style":{"__isSmartRef__":true,"id":2091},"chunkOwner":{"__isSmartRef__":true,"id":2072},"_id":"_1999","storedString":"Counter: 10000\nTime: 1391551015.85\nStart: 1391551015.85","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2091":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2092":{"morph":{"__isSmartRef__":true,"id":2072},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2093":{"sourceObj":{"__isSmartRef__":true,"id":2072},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1736},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":2094},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2094":{"source":{"__isSmartRef__":true,"id":2072},"target":{"__isSmartRef__":true,"id":1736}},"2095":{"resizeWidth":true},"2096":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(501.8,561.7)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"2097":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":2098},{"__isSmartRef__":true,"id":2100},{"__isSmartRef__":true,"id":2102},{"__isSmartRef__":true,"id":2104},{"__isSmartRef__":true,"id":2106},{"__isSmartRef__":true,"id":2108},{"__isSmartRef__":true,"id":2110},{"__isSmartRef__":true,"id":2112},{"__isSmartRef__":true,"id":2114},{"__isSmartRef__":true,"id":2116},{"__isSmartRef__":true,"id":2118},{"__isSmartRef__":true,"id":2120},{"__isSmartRef__":true,"id":2122},{"__isSmartRef__":true,"id":2124},{"__isSmartRef__":true,"id":2126},{"__isSmartRef__":true,"id":2128},{"__isSmartRef__":true,"id":2130},{"__isSmartRef__":true,"id":2132},{"__isSmartRef__":true,"id":2134},{"__isSmartRef__":true,"id":2136},{"__isSmartRef__":true,"id":2138},{"__isSmartRef__":true,"id":2140},{"__isSmartRef__":true,"id":2142},{"__isSmartRef__":true,"id":2144},{"__isSmartRef__":true,"id":2146},{"__isSmartRef__":true,"id":2148},{"__isSmartRef__":true,"id":2150},{"__isSmartRef__":true,"id":2152},{"__isSmartRef__":true,"id":2154}],"lastModifiedDate":{"__isSmartRef__":true,"id":2156},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2098":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":2099}},"2099":{"isSerializedDate":true,"string":"Fri Jun 21 2013 00:16:24 GMT+0200 (CEST)"},"2100":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":2101}},"2101":{"isSerializedDate":true,"string":"Thu May 30 2013 09:18:06 GMT+0200 (CEST)"},"2102":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":2103}},"2103":{"isSerializedDate":true,"string":"Wed Jan 23 2013 12:57:18 GMT+0100 (CET)"},"2104":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":2105}},"2105":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"2106":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":2107}},"2107":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"2108":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":2109}},"2109":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"2110":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":2111}},"2111":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"2112":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":2113}},"2113":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"2114":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":2115}},"2115":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"2116":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":2117}},"2117":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:35:08 GMT+0200 (CEST)"},"2118":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":2119}},"2119":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:35:51 GMT+0100 (CET)"},"2120":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":2121}},"2121":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:42:31 GMT+0100 (CET)"},"2122":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":2123}},"2123":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:47:05 GMT+0100 (CET)"},"2124":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":2125}},"2125":{"isSerializedDate":true,"string":"Thu May 30 2013 00:36:50 GMT+0200 (CEST)"},"2126":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":2127}},"2127":{"isSerializedDate":true,"string":"Tue Jun 18 2013 20:49:27 GMT+0200 (CEST)"},"2128":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":2129}},"2129":{"isSerializedDate":true,"string":"Tue Jul 30 2013 08:20:51 GMT+0200 (CEST)"},"2130":{"date":{"__isSmartRef__":true,"id":2131},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"2131":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:02:28 GMT+0100 (CET)"},"2132":{"date":{"__isSmartRef__":true,"id":2133},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"2133":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:10:08 GMT+0100 (CET)"},"2134":{"date":{"__isSmartRef__":true,"id":2135},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"2135":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:24:55 GMT+0100 (CET)"},"2136":{"date":{"__isSmartRef__":true,"id":2137},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"2137":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:29:33 GMT+0100 (CET)"},"2138":{"date":{"__isSmartRef__":true,"id":2139},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"2139":{"isSerializedDate":true,"string":"Wed Jan 22 2014 21:07:26 GMT+0100 (CET)"},"2140":{"date":{"__isSmartRef__":true,"id":2141},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"2141":{"isSerializedDate":true,"string":"Wed Jan 22 2014 22:23:13 GMT+0100 (CET)"},"2142":{"date":{"__isSmartRef__":true,"id":2143},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"2143":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:58:48 GMT+0100 (CET)"},"2144":{"date":{"__isSmartRef__":true,"id":2145},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"2145":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:59:27 GMT+0100 (CET)"},"2146":{"date":{"__isSmartRef__":true,"id":2147},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"2147":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:03:44 GMT+0100 (CET)"},"2148":{"date":{"__isSmartRef__":true,"id":2149},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"2149":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:24:12 GMT+0100 (CET)"},"2150":{"date":{"__isSmartRef__":true,"id":2151},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"2151":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:26:15 GMT+0100 (CET)"},"2152":{"date":{"__isSmartRef__":true,"id":2153},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"2153":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:35:38 GMT+0100 (CET)"},"2154":{"date":{"__isSmartRef__":true,"id":2155},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"2155":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:54:51 GMT+0100 (CET)"},"2156":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:15 GMT+0100 (CET)"},"2157":{"morph":{"__isSmartRef__":true,"id":1736},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2158":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2159}},"2159":{"test01IsMorph":{"__isSmartRef__":true,"id":2160}},"2160":{"varMapping":{"__isSmartRef__":true,"id":2161},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2161":{"this":{"__isSmartRef__":true,"id":2158}},"2162":{},"2163":{"morph":{"__isSmartRef__":true,"id":1736},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"2164":{"morph":{"__isSmartRef__":true,"id":1736},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"2165":{"morph":{"__isSmartRef__":true,"id":1736},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"2166":{"morph":{"__isSmartRef__":true,"id":1736},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"2167":{"morph":{"__isSmartRef__":true,"id":1736},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"2168":{"morph":{"__isSmartRef__":true,"id":1736},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"2169":{"morph":{"__isSmartRef__":true,"id":1736},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"2170":{"morph":{"__isSmartRef__":true,"id":1736},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"2171":{"adjustForNewBounds":true},"2172":{"Counter":10000,"Time":1391551015.85,"Start":1391551015.85},"2173":{"sourceObj":{"__isSmartRef__":true,"id":1736},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":1737},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":2174},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2174":{"source":{"__isSmartRef__":true,"id":1736},"target":{"__isSmartRef__":true,"id":1737}},"2175":{},"2176":{"referencedBy":{"__isSmartRef__":true,"id":2177},"references":{"__isSmartRef__":true,"id":2178}},"2177":{},"2178":{},"2179":{"migrateFrom":{"__isSmartRef__":true,"id":2180},"parsePropeties":{"__isSmartRef__":true,"id":2184},"printProperties":{"__isSmartRef__":true,"id":2188},"parseSimulationSource":{"__isSmartRef__":true,"id":2192},"simulateStep":{"__isSmartRef__":true,"id":2196},"showError":{"__isSmartRef__":true,"id":2199},"throwSimulationProblem":{"__isSmartRef__":true,"id":2203},"updateUI":{"__isSmartRef__":true,"id":2207},"resetStatus":{"__isSmartRef__":true,"id":2211},"simulateOneStep":{"__isSmartRef__":true,"id":2215},"reset":{"__isSmartRef__":true,"id":2219},"resetScriptAnalysis":{"__isSmartRef__":true,"id":2223},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":2227},"logReference":{"__isSmartRef__":true,"id":2231},"showScriptAnalysis":{"__isSmartRef__":true,"id":2235},"showReferenceTo":{"__isSmartRef__":true,"id":2239},"resetSourceHighlighting":{"__isSmartRef__":true,"id":2243},"showNameReference":{"__isSmartRef__":true,"id":2247}},"2180":{"varMapping":{"__isSmartRef__":true,"id":2181},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n \n}","funcProperties":{"__isSmartRef__":true,"id":2182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2181":{"this":{"__isSmartRef__":true,"id":1736}},"2182":{"timestamp":{"__isSmartRef__":true,"id":2183},"user":"jenslincke","tags":[]},"2183":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:59 GMT+0100 (CET)"},"2184":{"varMapping":{"__isSmartRef__":true,"id":2185},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":2186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2185":{"this":{"__isSmartRef__":true,"id":1736}},"2186":{"timestamp":{"__isSmartRef__":true,"id":2187},"user":"jenslincke","tags":[]},"2187":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:03 GMT+0100 (CET)"},"2188":{"varMapping":{"__isSmartRef__":true,"id":2189},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":2190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2189":{"this":{"__isSmartRef__":true,"id":1736}},"2190":{"timestamp":{"__isSmartRef__":true,"id":2191},"user":"jenslincke","tags":[]},"2191":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:34:48 GMT+0100 (CET)"},"2192":{"varMapping":{"__isSmartRef__":true,"id":2193},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":2194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2193":{"this":{"__isSmartRef__":true,"id":1736}},"2194":{"timestamp":{"__isSmartRef__":true,"id":2195},"user":"jenslincke","tags":[]},"2195":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:12:57 GMT+0100 (CET)"},"2196":{"varMapping":{"__isSmartRef__":true,"id":2197},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\n$.Time += dt\n$.Counter += dt\nif ($.Counter < 5) return\n$.Counter = 0\nvar data = {\n Gas: this.get('Fuel').$.Gas,\n Heat: this.get('HeatStorage').$.Energy,\n Battery: this.get('Battery').$.Energy,\n ConsumedPower: this.get('ElectricConsumer').$.Consumed,\n ConsumedHeat: this.get('HeatConsumer').$.Consumed,\n TWP: this.get('ThermalPowerStation').$.Heat,\n HS: this.get('HeatingSystem').$.Heat,\n}\ndata.Total = Properties.values(data).sum()\nvar factor = 0.01 // scale, so that it fits into vis\ndata.Gas *= factor\ndata.ConsumedPower *= factor\ndata.ConsumedHeat *= factor\ndata.Total *= factor\nProperties.own(data).each(function(ea) {\n data[ea] = data[ea].roundTo(0.000001)\n})\ndata.Time = $.Time,\nthis.get('SimulationResults').addData(data)\n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":2198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2197":{"this":{"__isSmartRef__":true,"id":1736}},"2198":{},"2199":{"varMapping":{"__isSmartRef__":true,"id":2200},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2200":{"this":{"__isSmartRef__":true,"id":1736}},"2201":{"timestamp":{"__isSmartRef__":true,"id":2202},"user":"jenslincke","tags":[]},"2202":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:11:23 GMT+0100 (CET)"},"2203":{"varMapping":{"__isSmartRef__":true,"id":2204},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":2205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2204":{"this":{"__isSmartRef__":true,"id":1736}},"2205":{"timestamp":{"__isSmartRef__":true,"id":2206},"user":"jenslincke","tags":[]},"2206":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:32:56 GMT+0100 (CET)"},"2207":{"varMapping":{"__isSmartRef__":true,"id":2208},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":2209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2208":{"this":{"__isSmartRef__":true,"id":1736}},"2209":{"timestamp":{"__isSmartRef__":true,"id":2210},"user":"jenslincke","tags":[]},"2210":{"isSerializedDate":true,"string":"Sun Jan 26 2014 15:22:09 GMT+0100 (CET)"},"2211":{"varMapping":{"__isSmartRef__":true,"id":2212},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":2213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2212":{"this":{"__isSmartRef__":true,"id":1736}},"2213":{"timestamp":{"__isSmartRef__":true,"id":2214},"user":"jenslincke","tags":[]},"2214":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:54:04 GMT+0100 (CET)"},"2215":{"varMapping":{"__isSmartRef__":true,"id":2216},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2216":{"this":{"__isSmartRef__":true,"id":1736}},"2217":{"timestamp":{"__isSmartRef__":true,"id":2218},"user":"jenslincke","tags":[]},"2218":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:05:58 GMT+0100 (CET)"},"2219":{"varMapping":{"__isSmartRef__":true,"id":2220},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":2221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2220":{"this":{"__isSmartRef__":true,"id":1736}},"2221":{"timestamp":{"__isSmartRef__":true,"id":2222},"user":"jenslincke","tags":[]},"2222":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:35:44 GMT+0100 (CET)"},"2223":{"varMapping":{"__isSmartRef__":true,"id":2224},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":2225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2224":{"this":{"__isSmartRef__":true,"id":1736}},"2225":{"timestamp":{"__isSmartRef__":true,"id":2226},"user":"jenslincke","tags":[]},"2226":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:36:12 GMT+0100 (CET)"},"2227":{"varMapping":{"__isSmartRef__":true,"id":2228},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":2229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2228":{"this":{"__isSmartRef__":true,"id":1736}},"2229":{"timestamp":{"__isSmartRef__":true,"id":2230},"user":"jenslincke","tags":[]},"2230":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:09 GMT+0100 (CET)"},"2231":{"varMapping":{"__isSmartRef__":true,"id":2232},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":2233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2232":{"this":{"__isSmartRef__":true,"id":1736}},"2233":{"timestamp":{"__isSmartRef__":true,"id":2234},"user":"jenslincke","tags":[]},"2234":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:15 GMT+0100 (CET)"},"2235":{"varMapping":{"__isSmartRef__":true,"id":2236},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":2237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2236":{"this":{"__isSmartRef__":true,"id":1736}},"2237":{"timestamp":{"__isSmartRef__":true,"id":2238},"user":"jenslincke","tags":[]},"2238":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:55:26 GMT+0100 (CET)"},"2239":{"varMapping":{"__isSmartRef__":true,"id":2240},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2241},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2240":{"this":{"__isSmartRef__":true,"id":1736}},"2241":{"timestamp":{"__isSmartRef__":true,"id":2242},"user":"jenslincke","tags":[]},"2242":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:25 GMT+0100 (CET)"},"2243":{"varMapping":{"__isSmartRef__":true,"id":2244},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":2245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2244":{"this":{"__isSmartRef__":true,"id":1736}},"2245":{"timestamp":{"__isSmartRef__":true,"id":2246},"user":"jenslincke","tags":[]},"2246":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:53:47 GMT+0100 (CET)"},"2247":{"varMapping":{"__isSmartRef__":true,"id":2248},"source":"function showNameReference(name) {\n\n if (this.owner.resetSourceHighlighting)\n this.owner.resetSourceHighlighting()\n\n if (name ==this.lastNameReference) {\n this.lastNameReference = null\n return\n }\n var morph = this.get(name)\n if (morph) morph.show().invoke(\"setBorderColor\", Color.yellow)\n\n this.lastNameReference = name;\n this.showReferenceTo(name)\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":2249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2248":{"this":{"__isSmartRef__":true,"id":1736}},"2249":{"timestamp":{"__isSmartRef__":true,"id":2250},"user":"jenslincke","tags":[]},"2250":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:32:17 GMT+0100 (CET)"},"2251":{"submorphs":[{"__isSmartRef__":true,"id":2252},{"__isSmartRef__":true,"id":2276},{"__isSmartRef__":true,"id":2359},{"__isSmartRef__":true,"id":2381}],"scripts":[],"id":"3471BA39-EF51-45F6-B222-1F4147A62C09","shape":{"__isSmartRef__":true,"id":2405},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2406},"eventHandler":{"__isSmartRef__":true,"id":2466},"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","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","5E21C7BB-A7E2-498E-858F-032DCC55A4FC","2072AEFD-449A-4F4E-B8A5-9A6C57DEBB4B","8013D903-1809-4244-AABF-4DF28A1844DB","00F3C15D-F47A-44A0-8AD1-817E6DA58255","6A96318B-D7CD-48E2-913D-29CB6897E3B7","B2263E54-BA2B-4C60-B8A1-92637C28EA08","64C5A21D-7106-40F1-A881-4B19EEF4534D","558820C1-7325-4652-A6CF-33B25DBDDE22","BCDFBF89-EC99-457D-A530-78EE6AA50603","BB62D9DB-5F5D-46D1-B13F-ECC2CFA93FFA","13370CD2-1232-4E30-9AB6-D43A7241AB79"],"partTests":{"__isSmartRef__":true,"id":2467},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":2472},{"__isSmartRef__":true,"id":2473},{"__isSmartRef__":true,"id":2474},{"__isSmartRef__":true,"id":2475},{"__isSmartRef__":true,"id":2476},{"__isSmartRef__":true,"id":2477},{"__isSmartRef__":true,"id":2478},{"__isSmartRef__":true,"id":2479}],"prevScroll":[0,0],"isEnergySimulationPart":true,"layout":{"__isSmartRef__":true,"id":2480},"$":{"__isSmartRef__":true,"id":2481},"name":"Battery","attributeConnections":[{"__isSmartRef__":true,"id":2482}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"units":{"__isSmartRef__":true,"id":2484},"scriptAnalysis":{"__isSmartRef__":true,"id":2485},"lastNameReference":"Fuel","owner":{"__isSmartRef__":true,"id":689},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2488},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(386.6,-15.1)","_Position":"lively.pt(927.4,326.1)"},"2252":{"submorphs":[],"scripts":[],"id":"FB5F8C30-3C71-4FFA-9909-27FDA523F072","shape":{"__isSmartRef__":true,"id":2253},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":2254},"textChunks":[{"__isSmartRef__":true,"id":2256}],"charsReplaced":"EnergySimulationPart","lastFindLoc":20,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":2258},{"__isSmartRef__":true,"id":2259}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"HeatingSystem","eventHandler":{"__isSmartRef__":true,"id":2260},"owner":{"__isSmartRef__":true,"id":2251},"derivationIds":[7027,"63B54D01-70F2-4A5D-8586-BE6EDD15DB66","C5E299A1-9E8A-477F-985B-DDC8528C798C","34C77E49-70E0-4238-BFC7-110384901543","21EE0BC1-029B-42D1-A2CC-381C601A5F55","17C73E30-F0FE-4832-A19D-A93FAC698D7D","567146D9-37F5-4BCC-AF7F-DB5A96EE8571","A112085C-FDC7-48D5-A582-CD39CA4E9117"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":2251},"isBeingDragged":false,"draggingEnabled":false,"_Rotation":0,"_Scale":0.9999999999999997,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"priorSelectionRange":[3,3],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2261},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.1,8.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(130.4,-10.2)"},"2253":{"fill":null,"_BorderWidth":0,"__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(180.8,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"2254":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":2255},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2255":{"isSerializedDate":true,"string":"Thu Mar 07 2013 01:25:14 GMT+0100 (CET)"},"2256":{"style":{"__isSmartRef__":true,"id":2257},"chunkOwner":{"__isSmartRef__":true,"id":2252},"_id":"_31721","storedString":"Battery","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2257":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2258":{"sourceObj":{"__isSmartRef__":true,"id":2252},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2252},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2259":{"sourceObj":{"__isSmartRef__":true,"id":2252},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2252},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2260":{"morph":{"__isSmartRef__":true,"id":2252},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2261":{"updateLabel":{"__isSmartRef__":true,"id":2262},"renameOwner":{"__isSmartRef__":true,"id":2265},"onFocus":{"__isSmartRef__":true,"id":2268}},"2262":{"varMapping":{"__isSmartRef__":true,"id":2263},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":2264},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2263":{"this":{"__isSmartRef__":true,"id":2252}},"2264":{},"2265":{"varMapping":{"__isSmartRef__":true,"id":2266},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":2267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2266":{"this":{"__isSmartRef__":true,"id":2252}},"2267":{},"2268":{"varMapping":{"__isSmartRef__":true,"id":2269},"source":"function onFocus(evt) {\n $super(evt)\n if (this.owner.showScriptAnalysis) this.owner.showScriptAnalysis()\n}","funcProperties":{"__isSmartRef__":true,"id":2274},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2269":{"this":{"__isSmartRef__":true,"id":2252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2270}},"2270":{"$super":{"__isSmartRef__":true,"id":2271}},"2271":{"varMapping":{"__isSmartRef__":true,"id":2272},"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":2273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2272":{"obj":{"__isSmartRef__":true,"id":2252},"name":"onFocus"},"2273":{},"2274":{"timestamp":{"__isSmartRef__":true,"id":2275},"user":"jenslincke","tags":[]},"2275":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:45:12 GMT+0100 (CET)"},"2276":{"submorphs":[],"scripts":[],"id":"0C97B790-B85D-4561-B5C8-B16FCD22B9F5","shape":{"__isSmartRef__":true,"id":2277},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Monaco,monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"SimulationText","partsBinMetaInfo":{"__isSmartRef__":true,"id":2278},"textChunks":[{"__isSmartRef__":true,"id":2294}],"charsReplaced":" ","lastFindLoc":409,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2296},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","1BC17AC6-65D2-4DD8-906E-C419087FC3F7","6809C3A5-DCFA-4E76-9397-E4C5BA4A34C7","C528D4FD-5331-4D9A-9352-1088CF72DDDA","A3CD61D5-7936-402F-8EBA-3E2456AB5E0C","39BE0850-B4DE-4E8D-9EC7-7A6A5059775A","2035C52E-14AD-4493-A166-F79162AD66FB","D0F7C47B-437F-457E-929F-EA18E7790FA7","22F56005-4177-492C-8AAF-FF810C44931A","AAC02353-3C4E-47A1-8120-60A2F258771E","9FBBDAD3-5AE3-4342-A9DE-CF7593957E51","88B5A45D-F0EA-4372-952F-E5B93250C15E","782DCC77-008C-4653-BD28-DA4E24401AF9","D8C320FE-7916-4301-99FC-57DF6F7818E8","08F797B1-9E4E-44A7-82A8-94AD5055DD06","4A08CEEF-4759-4921-AF85-D276309CF091"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"magnets":[{"__isSmartRef__":true,"id":2297},{"__isSmartRef__":true,"id":2298},{"__isSmartRef__":true,"id":2299},{"__isSmartRef__":true,"id":2300},{"__isSmartRef__":true,"id":2301},{"__isSmartRef__":true,"id":2302},{"__isSmartRef__":true,"id":2303},{"__isSmartRef__":true,"id":2304}],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":2305},"draggingEnabled":false,"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":2251},"savedTextString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas\n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}","attributeConnections":[{"__isSmartRef__":true,"id":2306},{"__isSmartRef__":true,"id":2308}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":2,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"previousSelection":[241,315],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2310},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"2277":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_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(146.2,0.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2278":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2279},{"__isSmartRef__":true,"id":2281},{"__isSmartRef__":true,"id":2283},{"__isSmartRef__":true,"id":2285},{"__isSmartRef__":true,"id":2287},{"__isSmartRef__":true,"id":2289},{"__isSmartRef__":true,"id":2291}],"lastModifiedDate":{"__isSmartRef__":true,"id":2293},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2279":{"date":{"__isSmartRef__":true,"id":2280},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"2280":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"2281":{"date":{"__isSmartRef__":true,"id":2282},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"2282":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"2283":{"date":{"__isSmartRef__":true,"id":2284},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"2284":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"2285":{"date":{"__isSmartRef__":true,"id":2286},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"2286":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"2287":{"date":{"__isSmartRef__":true,"id":2288},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"2288":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"2289":{"date":{"__isSmartRef__":true,"id":2290},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"2290":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"2291":{"date":{"__isSmartRef__":true,"id":2292},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"2292":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"2293":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"2294":{"style":{"__isSmartRef__":true,"id":2295},"chunkOwner":{"__isSmartRef__":true,"id":2276},"_id":"_4","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2295":{"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2296":{"morph":{"__isSmartRef__":true,"id":2276},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2297":{"morph":{"__isSmartRef__":true,"id":2276},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"2298":{"morph":{"__isSmartRef__":true,"id":2276},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"2299":{"morph":{"__isSmartRef__":true,"id":2276},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"2300":{"morph":{"__isSmartRef__":true,"id":2276},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"2301":{"morph":{"__isSmartRef__":true,"id":2276},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"2302":{"morph":{"__isSmartRef__":true,"id":2276},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"2303":{"morph":{"__isSmartRef__":true,"id":2276},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"2304":{"morph":{"__isSmartRef__":true,"id":2276},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"2305":{"resizeWidth":true,"resizeHeight":true},"2306":{"sourceObj":{"__isSmartRef__":true,"id":2276},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2251},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":2307},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2307":{"source":{"__isSmartRef__":true,"id":2276},"target":{"__isSmartRef__":true,"id":2251}},"2308":{"sourceObj":{"__isSmartRef__":true,"id":2276},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":2276},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":2309},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2309":{"source":{"__isSmartRef__":true,"id":2276},"target":{"__isSmartRef__":true,"id":2276}},"2310":{"boundEval":{"__isSmartRef__":true,"id":2311},"getDoitContext":{"__isSmartRef__":true,"id":2319},"installLayers":{"__isSmartRef__":true,"id":2327},"onLoad":{"__isSmartRef__":true,"id":2331},"highligtScriptNames":{"__isSmartRef__":true,"id":2335},"getAutoCompletion":{"__isSmartRef__":true,"id":2339},"reset":{"__isSmartRef__":true,"id":2347},"getLastWordRange":{"__isSmartRef__":true,"id":2351}},"2311":{"varMapping":{"__isSmartRef__":true,"id":2312},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2312":{"this":{"__isSmartRef__":true,"id":2276},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2313}},"2313":{"$super":{"__isSmartRef__":true,"id":2314}},"2314":{"varMapping":{"__isSmartRef__":true,"id":2315},"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":2316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2315":{"obj":{"__isSmartRef__":true,"id":2276},"name":"boundEval"},"2316":{},"2317":{"timestamp":{"__isSmartRef__":true,"id":2318},"user":"jenslincke","tags":[]},"2318":{"isSerializedDate":true,"string":"Tue Jan 28 2014 11:28:47 GMT+0100 (CET)"},"2319":{"varMapping":{"__isSmartRef__":true,"id":2320},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":2325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2320":{"this":{"__isSmartRef__":true,"id":2276},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2321}},"2321":{"$super":{"__isSmartRef__":true,"id":2322}},"2322":{"varMapping":{"__isSmartRef__":true,"id":2323},"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":2324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2323":{"obj":{"__isSmartRef__":true,"id":2276},"name":"getDoitContext"},"2324":{},"2325":{"timestamp":{"__isSmartRef__":true,"id":2326},"user":"jenslincke","tags":[]},"2326":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:42:09 GMT+0100 (CET)"},"2327":{"varMapping":{"__isSmartRef__":true,"id":2328},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":2329},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2328":{"this":{"__isSmartRef__":true,"id":2276}},"2329":{"timestamp":{"__isSmartRef__":true,"id":2330},"user":"jenslincke","tags":[]},"2330":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:44 GMT+0100 (CET)"},"2331":{"varMapping":{"__isSmartRef__":true,"id":2332},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":2333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2332":{"this":{"__isSmartRef__":true,"id":2276}},"2333":{"timestamp":{"__isSmartRef__":true,"id":2334},"user":"jenslincke","tags":[]},"2334":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:45 GMT+0100 (CET)"},"2335":{"varMapping":{"__isSmartRef__":true,"id":2336},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.showNameReference(\"'+name+'\")',\n context: this.owner}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":2337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2336":{"this":{"__isSmartRef__":true,"id":2276}},"2337":{"timestamp":{"__isSmartRef__":true,"id":2338},"user":"jenslincke","tags":[]},"2338":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:25:07 GMT+0100 (CET)"},"2339":{"varMapping":{"__isSmartRef__":true,"id":2340},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":2345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2340":{"this":{"__isSmartRef__":true,"id":2276},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2341}},"2341":{"$super":{"__isSmartRef__":true,"id":2342}},"2342":{"varMapping":{"__isSmartRef__":true,"id":2343},"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":2344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2343":{"obj":{"__isSmartRef__":true,"id":2276},"name":"getAutoCompletion"},"2344":{},"2345":{"timestamp":{"__isSmartRef__":true,"id":2346},"user":"jenslincke","tags":[]},"2346":{"isSerializedDate":true,"string":"Wed Jan 29 2014 00:33:17 GMT+0100 (CET)"},"2347":{"varMapping":{"__isSmartRef__":true,"id":2348},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":2349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2348":{"this":{"__isSmartRef__":true,"id":2276}},"2349":{"timestamp":{"__isSmartRef__":true,"id":2350},"user":"jenslincke","tags":[]},"2350":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:58:01 GMT+0100 (CET)"},"2351":{"varMapping":{"__isSmartRef__":true,"id":2352},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2357},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2352":{"this":{"__isSmartRef__":true,"id":2276},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2353}},"2353":{"$super":{"__isSmartRef__":true,"id":2354}},"2354":{"varMapping":{"__isSmartRef__":true,"id":2355},"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":2356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2355":{"obj":{"__isSmartRef__":true,"id":2276},"name":"getLastWordRange"},"2356":{},"2357":{"timestamp":{"__isSmartRef__":true,"id":2358},"user":"jenslincke","tags":[]},"2358":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:59:58 GMT+0100 (CET)"},"2359":{"submorphs":[],"scripts":[],"id":"34971A4A-9D2B-4E99-8838-E838576BF625","shape":{"__isSmartRef__":true,"id":2360},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":2361},"textChunks":[{"__isSmartRef__":true,"id":2377}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2379},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","DDEC9403-6C57-4923-ABE3-1737E6362120","07D195A1-33DA-4A4D-B3EA-B51C03BACF39"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":2251},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":2380},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,66.8)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"2360":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"_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(138.3,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2361":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2362},{"__isSmartRef__":true,"id":2364},{"__isSmartRef__":true,"id":2366},{"__isSmartRef__":true,"id":2368},{"__isSmartRef__":true,"id":2370},{"__isSmartRef__":true,"id":2372},{"__isSmartRef__":true,"id":2374}],"lastModifiedDate":{"__isSmartRef__":true,"id":2376},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2362":{"date":{"__isSmartRef__":true,"id":2363},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"2363":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"2364":{"date":{"__isSmartRef__":true,"id":2365},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"2365":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"2366":{"date":{"__isSmartRef__":true,"id":2367},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"2367":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"2368":{"date":{"__isSmartRef__":true,"id":2369},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"2369":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"2370":{"date":{"__isSmartRef__":true,"id":2371},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"2371":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"2372":{"date":{"__isSmartRef__":true,"id":2373},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"2373":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"2374":{"date":{"__isSmartRef__":true,"id":2375},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"2375":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"2376":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"2377":{"style":{"__isSmartRef__":true,"id":2378},"chunkOwner":{"__isSmartRef__":true,"id":2359},"_id":"_2918","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2378":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2379":{"morph":{"__isSmartRef__":true,"id":2359},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2380":{"moveVertical":true,"resizeWidth":true},"2381":{"submorphs":[],"scripts":[],"id":"C0E3AE18-7CBE-4E5E-98E4-6963009EE079","shape":{"__isSmartRef__":true,"id":2382},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":2383},"textChunks":[{"__isSmartRef__":true,"id":2399}],"charsReplaced":"false","lastFindLoc":28,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2401},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","1A5DC502-21A9-4B18-8878-654818F4C282","88E27517-6524-49AD-AF69-936DADF77DDD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":2251},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":2402}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 10\nMax: 5 [kW]","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":2404},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"2382":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(131.8,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2383":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2384},{"__isSmartRef__":true,"id":2386},{"__isSmartRef__":true,"id":2388},{"__isSmartRef__":true,"id":2390},{"__isSmartRef__":true,"id":2392},{"__isSmartRef__":true,"id":2394},{"__isSmartRef__":true,"id":2396}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":2398},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2384":{"date":{"__isSmartRef__":true,"id":2385},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"2385":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"2386":{"date":{"__isSmartRef__":true,"id":2387},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"2387":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"2388":{"date":{"__isSmartRef__":true,"id":2389},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"2389":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"2390":{"date":{"__isSmartRef__":true,"id":2391},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"2391":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"2392":{"date":{"__isSmartRef__":true,"id":2393},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"2393":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"2394":{"date":{"__isSmartRef__":true,"id":2395},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"2395":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"2396":{"date":{"__isSmartRef__":true,"id":2397},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"2397":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"2398":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"2399":{"style":{"__isSmartRef__":true,"id":2400},"chunkOwner":{"__isSmartRef__":true,"id":2381},"_id":"_2000","storedString":"Energy: 0\nMax: 360","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2400":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2401":{"morph":{"__isSmartRef__":true,"id":2381},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2402":{"sourceObj":{"__isSmartRef__":true,"id":2381},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2251},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":2403},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2403":{"source":{"__isSmartRef__":true,"id":2381},"target":{"__isSmartRef__":true,"id":2251}},"2404":{"resizeWidth":true},"2405":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(160.1,84.6)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"2406":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":2407},{"__isSmartRef__":true,"id":2409},{"__isSmartRef__":true,"id":2411},{"__isSmartRef__":true,"id":2413},{"__isSmartRef__":true,"id":2415},{"__isSmartRef__":true,"id":2417},{"__isSmartRef__":true,"id":2419},{"__isSmartRef__":true,"id":2421},{"__isSmartRef__":true,"id":2423},{"__isSmartRef__":true,"id":2425},{"__isSmartRef__":true,"id":2427},{"__isSmartRef__":true,"id":2429},{"__isSmartRef__":true,"id":2431},{"__isSmartRef__":true,"id":2433},{"__isSmartRef__":true,"id":2435},{"__isSmartRef__":true,"id":2437},{"__isSmartRef__":true,"id":2439},{"__isSmartRef__":true,"id":2441},{"__isSmartRef__":true,"id":2443},{"__isSmartRef__":true,"id":2445},{"__isSmartRef__":true,"id":2447},{"__isSmartRef__":true,"id":2449},{"__isSmartRef__":true,"id":2451},{"__isSmartRef__":true,"id":2453},{"__isSmartRef__":true,"id":2455},{"__isSmartRef__":true,"id":2457},{"__isSmartRef__":true,"id":2459},{"__isSmartRef__":true,"id":2461},{"__isSmartRef__":true,"id":2463}],"lastModifiedDate":{"__isSmartRef__":true,"id":2465},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2407":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":2408}},"2408":{"isSerializedDate":true,"string":"Fri Jun 21 2013 00:16:24 GMT+0200 (CEST)"},"2409":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":2410}},"2410":{"isSerializedDate":true,"string":"Thu May 30 2013 09:18:06 GMT+0200 (CEST)"},"2411":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":2412}},"2412":{"isSerializedDate":true,"string":"Wed Jan 23 2013 12:57:18 GMT+0100 (CET)"},"2413":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":2414}},"2414":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"2415":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":2416}},"2416":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"2417":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":2418}},"2418":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"2419":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":2420}},"2420":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"2421":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":2422}},"2422":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"2423":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":2424}},"2424":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"2425":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":2426}},"2426":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:35:08 GMT+0200 (CEST)"},"2427":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":2428}},"2428":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:35:51 GMT+0100 (CET)"},"2429":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":2430}},"2430":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:42:31 GMT+0100 (CET)"},"2431":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":2432}},"2432":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:47:05 GMT+0100 (CET)"},"2433":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":2434}},"2434":{"isSerializedDate":true,"string":"Thu May 30 2013 00:36:50 GMT+0200 (CEST)"},"2435":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":2436}},"2436":{"isSerializedDate":true,"string":"Tue Jun 18 2013 20:49:27 GMT+0200 (CEST)"},"2437":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":2438}},"2438":{"isSerializedDate":true,"string":"Tue Jul 30 2013 08:20:51 GMT+0200 (CEST)"},"2439":{"date":{"__isSmartRef__":true,"id":2440},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"2440":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:02:28 GMT+0100 (CET)"},"2441":{"date":{"__isSmartRef__":true,"id":2442},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"2442":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:10:08 GMT+0100 (CET)"},"2443":{"date":{"__isSmartRef__":true,"id":2444},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"2444":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:24:55 GMT+0100 (CET)"},"2445":{"date":{"__isSmartRef__":true,"id":2446},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"2446":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:29:33 GMT+0100 (CET)"},"2447":{"date":{"__isSmartRef__":true,"id":2448},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"2448":{"isSerializedDate":true,"string":"Wed Jan 22 2014 21:07:26 GMT+0100 (CET)"},"2449":{"date":{"__isSmartRef__":true,"id":2450},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"2450":{"isSerializedDate":true,"string":"Wed Jan 22 2014 22:23:13 GMT+0100 (CET)"},"2451":{"date":{"__isSmartRef__":true,"id":2452},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"2452":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:58:48 GMT+0100 (CET)"},"2453":{"date":{"__isSmartRef__":true,"id":2454},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"2454":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:59:27 GMT+0100 (CET)"},"2455":{"date":{"__isSmartRef__":true,"id":2456},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"2456":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:03:44 GMT+0100 (CET)"},"2457":{"date":{"__isSmartRef__":true,"id":2458},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"2458":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:24:12 GMT+0100 (CET)"},"2459":{"date":{"__isSmartRef__":true,"id":2460},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"2460":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:26:15 GMT+0100 (CET)"},"2461":{"date":{"__isSmartRef__":true,"id":2462},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"2462":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:35:38 GMT+0100 (CET)"},"2463":{"date":{"__isSmartRef__":true,"id":2464},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"2464":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:54:51 GMT+0100 (CET)"},"2465":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:15 GMT+0100 (CET)"},"2466":{"morph":{"__isSmartRef__":true,"id":2251},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2467":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2468}},"2468":{"test01IsMorph":{"__isSmartRef__":true,"id":2469}},"2469":{"varMapping":{"__isSmartRef__":true,"id":2470},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2471},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2470":{"this":{"__isSmartRef__":true,"id":2467}},"2471":{},"2472":{"morph":{"__isSmartRef__":true,"id":2251},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"2473":{"morph":{"__isSmartRef__":true,"id":2251},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"2474":{"morph":{"__isSmartRef__":true,"id":2251},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"2475":{"morph":{"__isSmartRef__":true,"id":2251},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"2476":{"morph":{"__isSmartRef__":true,"id":2251},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"2477":{"morph":{"__isSmartRef__":true,"id":2251},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"2478":{"morph":{"__isSmartRef__":true,"id":2251},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"2479":{"morph":{"__isSmartRef__":true,"id":2251},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"2480":{"adjustForNewBounds":true},"2481":{"Energy":0,"Max":360},"2482":{"sourceObj":{"__isSmartRef__":true,"id":2251},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":2252},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":2483},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2483":{"source":{"__isSmartRef__":true,"id":2251},"target":{"__isSmartRef__":true,"id":2252}},"2484":{},"2485":{"referencedBy":{"__isSmartRef__":true,"id":2486},"references":{"__isSmartRef__":true,"id":2487}},"2486":{},"2487":{},"2488":{"migrateFrom":{"__isSmartRef__":true,"id":2489},"parsePropeties":{"__isSmartRef__":true,"id":2493},"printProperties":{"__isSmartRef__":true,"id":2497},"parseSimulationSource":{"__isSmartRef__":true,"id":2501},"simulateStep":{"__isSmartRef__":true,"id":2505},"showError":{"__isSmartRef__":true,"id":2508},"throwSimulationProblem":{"__isSmartRef__":true,"id":2512},"updateUI":{"__isSmartRef__":true,"id":2516},"resetStatus":{"__isSmartRef__":true,"id":2520},"simulateOneStep":{"__isSmartRef__":true,"id":2524},"reset":{"__isSmartRef__":true,"id":2528},"resetScriptAnalysis":{"__isSmartRef__":true,"id":2532},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":2536},"logReference":{"__isSmartRef__":true,"id":2540},"showScriptAnalysis":{"__isSmartRef__":true,"id":2544},"showReferenceTo":{"__isSmartRef__":true,"id":2548},"resetSourceHighlighting":{"__isSmartRef__":true,"id":2552},"showNameReference":{"__isSmartRef__":true,"id":2556}},"2489":{"varMapping":{"__isSmartRef__":true,"id":2490},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n \n}","funcProperties":{"__isSmartRef__":true,"id":2491},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2490":{"this":{"__isSmartRef__":true,"id":2251}},"2491":{"timestamp":{"__isSmartRef__":true,"id":2492},"user":"jenslincke","tags":[]},"2492":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:59 GMT+0100 (CET)"},"2493":{"varMapping":{"__isSmartRef__":true,"id":2494},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":2495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2494":{"this":{"__isSmartRef__":true,"id":2251}},"2495":{"timestamp":{"__isSmartRef__":true,"id":2496},"user":"jenslincke","tags":[]},"2496":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:03 GMT+0100 (CET)"},"2497":{"varMapping":{"__isSmartRef__":true,"id":2498},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":2499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2498":{"this":{"__isSmartRef__":true,"id":2251}},"2499":{"timestamp":{"__isSmartRef__":true,"id":2500},"user":"jenslincke","tags":[]},"2500":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:34:48 GMT+0100 (CET)"},"2501":{"varMapping":{"__isSmartRef__":true,"id":2502},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":2503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2502":{"this":{"__isSmartRef__":true,"id":2251}},"2503":{"timestamp":{"__isSmartRef__":true,"id":2504},"user":"jenslincke","tags":[]},"2504":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:12:57 GMT+0100 (CET)"},"2505":{"varMapping":{"__isSmartRef__":true,"id":2506},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\n\n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":2507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2506":{"this":{"__isSmartRef__":true,"id":2251}},"2507":{},"2508":{"varMapping":{"__isSmartRef__":true,"id":2509},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2510},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2509":{"this":{"__isSmartRef__":true,"id":2251}},"2510":{"timestamp":{"__isSmartRef__":true,"id":2511},"user":"jenslincke","tags":[]},"2511":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:11:23 GMT+0100 (CET)"},"2512":{"varMapping":{"__isSmartRef__":true,"id":2513},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":2514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2513":{"this":{"__isSmartRef__":true,"id":2251}},"2514":{"timestamp":{"__isSmartRef__":true,"id":2515},"user":"jenslincke","tags":[]},"2515":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:32:56 GMT+0100 (CET)"},"2516":{"varMapping":{"__isSmartRef__":true,"id":2517},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":2518},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2517":{"this":{"__isSmartRef__":true,"id":2251}},"2518":{"timestamp":{"__isSmartRef__":true,"id":2519},"user":"jenslincke","tags":[]},"2519":{"isSerializedDate":true,"string":"Sun Jan 26 2014 15:22:09 GMT+0100 (CET)"},"2520":{"varMapping":{"__isSmartRef__":true,"id":2521},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":2522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2521":{"this":{"__isSmartRef__":true,"id":2251}},"2522":{"timestamp":{"__isSmartRef__":true,"id":2523},"user":"jenslincke","tags":[]},"2523":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:54:04 GMT+0100 (CET)"},"2524":{"varMapping":{"__isSmartRef__":true,"id":2525},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2525":{"this":{"__isSmartRef__":true,"id":2251}},"2526":{"timestamp":{"__isSmartRef__":true,"id":2527},"user":"jenslincke","tags":[]},"2527":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:05:58 GMT+0100 (CET)"},"2528":{"varMapping":{"__isSmartRef__":true,"id":2529},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":2530},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2529":{"this":{"__isSmartRef__":true,"id":2251}},"2530":{"timestamp":{"__isSmartRef__":true,"id":2531},"user":"jenslincke","tags":[]},"2531":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:35:44 GMT+0100 (CET)"},"2532":{"varMapping":{"__isSmartRef__":true,"id":2533},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":2534},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2533":{"this":{"__isSmartRef__":true,"id":2251}},"2534":{"timestamp":{"__isSmartRef__":true,"id":2535},"user":"jenslincke","tags":[]},"2535":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:36:12 GMT+0100 (CET)"},"2536":{"varMapping":{"__isSmartRef__":true,"id":2537},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":2538},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2537":{"this":{"__isSmartRef__":true,"id":2251}},"2538":{"timestamp":{"__isSmartRef__":true,"id":2539},"user":"jenslincke","tags":[]},"2539":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:09 GMT+0100 (CET)"},"2540":{"varMapping":{"__isSmartRef__":true,"id":2541},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":2542},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2541":{"this":{"__isSmartRef__":true,"id":2251}},"2542":{"timestamp":{"__isSmartRef__":true,"id":2543},"user":"jenslincke","tags":[]},"2543":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:15 GMT+0100 (CET)"},"2544":{"varMapping":{"__isSmartRef__":true,"id":2545},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":2546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2545":{"this":{"__isSmartRef__":true,"id":2251}},"2546":{"timestamp":{"__isSmartRef__":true,"id":2547},"user":"jenslincke","tags":[]},"2547":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:55:26 GMT+0100 (CET)"},"2548":{"varMapping":{"__isSmartRef__":true,"id":2549},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2549":{"this":{"__isSmartRef__":true,"id":2251}},"2550":{"timestamp":{"__isSmartRef__":true,"id":2551},"user":"jenslincke","tags":[]},"2551":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:25 GMT+0100 (CET)"},"2552":{"varMapping":{"__isSmartRef__":true,"id":2553},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":2554},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2553":{"this":{"__isSmartRef__":true,"id":2251}},"2554":{"timestamp":{"__isSmartRef__":true,"id":2555},"user":"jenslincke","tags":[]},"2555":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:53:47 GMT+0100 (CET)"},"2556":{"varMapping":{"__isSmartRef__":true,"id":2557},"source":"function showNameReference(name) {\n\n if (this.owner.resetSourceHighlighting)\n this.owner.resetSourceHighlighting()\n\n if (name ==this.lastNameReference) {\n this.lastNameReference = null\n return\n }\n var morph = this.get(name)\n if (morph) morph.show().invoke(\"setBorderColor\", Color.yellow)\n\n this.lastNameReference = name;\n this.showReferenceTo(name)\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":2558},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2557":{"this":{"__isSmartRef__":true,"id":2251}},"2558":{"timestamp":{"__isSmartRef__":true,"id":2559},"user":"jenslincke","tags":[]},"2559":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:32:17 GMT+0100 (CET)"},"2560":{"submorphs":[{"__isSmartRef__":true,"id":2561},{"__isSmartRef__":true,"id":2585},{"__isSmartRef__":true,"id":2668},{"__isSmartRef__":true,"id":2690}],"scripts":[],"id":"72A58653-B3C7-46C7-9FCD-85D9AC2CDB61","shape":{"__isSmartRef__":true,"id":2714},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2715},"eventHandler":{"__isSmartRef__":true,"id":2775},"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","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","5E21C7BB-A7E2-498E-858F-032DCC55A4FC","2072AEFD-449A-4F4E-B8A5-9A6C57DEBB4B","8013D903-1809-4244-AABF-4DF28A1844DB","00F3C15D-F47A-44A0-8AD1-817E6DA58255","6A96318B-D7CD-48E2-913D-29CB6897E3B7","B2263E54-BA2B-4C60-B8A1-92637C28EA08","64C5A21D-7106-40F1-A881-4B19EEF4534D","558820C1-7325-4652-A6CF-33B25DBDDE22","BCDFBF89-EC99-457D-A530-78EE6AA50603","BB62D9DB-5F5D-46D1-B13F-ECC2CFA93FFA","13370CD2-1232-4E30-9AB6-D43A7241AB79"],"partTests":{"__isSmartRef__":true,"id":2776},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":2781},{"__isSmartRef__":true,"id":2782},{"__isSmartRef__":true,"id":2783},{"__isSmartRef__":true,"id":2784},{"__isSmartRef__":true,"id":2785},{"__isSmartRef__":true,"id":2786},{"__isSmartRef__":true,"id":2787},{"__isSmartRef__":true,"id":2788}],"prevScroll":[0,0],"isEnergySimulationPart":true,"layout":{"__isSmartRef__":true,"id":2789},"$":{"__isSmartRef__":true,"id":2790},"name":"HeatStorage","attributeConnections":[{"__isSmartRef__":true,"id":2791}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"units":{"__isSmartRef__":true,"id":2793},"scriptAnalysis":{"__isSmartRef__":true,"id":2794},"lastNameReference":"Fuel","owner":{"__isSmartRef__":true,"id":689},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2797},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(386.6,-15.1)","_Position":"lively.pt(923.4,218.2)"},"2561":{"submorphs":[],"scripts":[],"id":"42108E51-2173-4AC5-8174-72AA59EB3725","shape":{"__isSmartRef__":true,"id":2562},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":2563},"textChunks":[{"__isSmartRef__":true,"id":2565}],"charsReplaced":"EnergySimulationPart","lastFindLoc":20,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":2567},{"__isSmartRef__":true,"id":2568}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"HeatingSystem","eventHandler":{"__isSmartRef__":true,"id":2569},"owner":{"__isSmartRef__":true,"id":2560},"derivationIds":[7027,"63B54D01-70F2-4A5D-8586-BE6EDD15DB66","C5E299A1-9E8A-477F-985B-DDC8528C798C","34C77E49-70E0-4238-BFC7-110384901543","21EE0BC1-029B-42D1-A2CC-381C601A5F55","17C73E30-F0FE-4832-A19D-A93FAC698D7D","567146D9-37F5-4BCC-AF7F-DB5A96EE8571","A112085C-FDC7-48D5-A582-CD39CA4E9117"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":2560},"isBeingDragged":false,"draggingEnabled":false,"_Rotation":0,"_Scale":0.9999999999999997,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2570},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.1,8.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(130.4,-10.2)"},"2562":{"fill":null,"_BorderWidth":0,"__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(180.8,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"2563":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":2564},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2564":{"isSerializedDate":true,"string":"Thu Mar 07 2013 01:25:14 GMT+0100 (CET)"},"2565":{"style":{"__isSmartRef__":true,"id":2566},"chunkOwner":{"__isSmartRef__":true,"id":2561},"_id":"_31711","storedString":"HeatStorage","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2566":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2567":{"sourceObj":{"__isSmartRef__":true,"id":2561},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2561},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2568":{"sourceObj":{"__isSmartRef__":true,"id":2561},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2561},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2569":{"morph":{"__isSmartRef__":true,"id":2561},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2570":{"updateLabel":{"__isSmartRef__":true,"id":2571},"renameOwner":{"__isSmartRef__":true,"id":2574},"onFocus":{"__isSmartRef__":true,"id":2577}},"2571":{"varMapping":{"__isSmartRef__":true,"id":2572},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":2573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2572":{"this":{"__isSmartRef__":true,"id":2561}},"2573":{},"2574":{"varMapping":{"__isSmartRef__":true,"id":2575},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":2576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2575":{"this":{"__isSmartRef__":true,"id":2561}},"2576":{},"2577":{"varMapping":{"__isSmartRef__":true,"id":2578},"source":"function onFocus(evt) {\n $super(evt)\n if (this.owner.showScriptAnalysis) this.owner.showScriptAnalysis()\n}","funcProperties":{"__isSmartRef__":true,"id":2583},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2578":{"this":{"__isSmartRef__":true,"id":2561},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2579}},"2579":{"$super":{"__isSmartRef__":true,"id":2580}},"2580":{"varMapping":{"__isSmartRef__":true,"id":2581},"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":2582},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2581":{"obj":{"__isSmartRef__":true,"id":2561},"name":"onFocus"},"2582":{},"2583":{"timestamp":{"__isSmartRef__":true,"id":2584},"user":"jenslincke","tags":[]},"2584":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:45:12 GMT+0100 (CET)"},"2585":{"submorphs":[],"scripts":[],"id":"A4AF525A-7041-4A99-AA62-DC48B220363C","shape":{"__isSmartRef__":true,"id":2586},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Monaco,monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"SimulationText","partsBinMetaInfo":{"__isSmartRef__":true,"id":2587},"textChunks":[{"__isSmartRef__":true,"id":2603}],"charsReplaced":" ","lastFindLoc":409,"prevScroll":[0,1],"eventHandler":{"__isSmartRef__":true,"id":2605},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","1BC17AC6-65D2-4DD8-906E-C419087FC3F7","6809C3A5-DCFA-4E76-9397-E4C5BA4A34C7","C528D4FD-5331-4D9A-9352-1088CF72DDDA","A3CD61D5-7936-402F-8EBA-3E2456AB5E0C","39BE0850-B4DE-4E8D-9EC7-7A6A5059775A","2035C52E-14AD-4493-A166-F79162AD66FB","D0F7C47B-437F-457E-929F-EA18E7790FA7","22F56005-4177-492C-8AAF-FF810C44931A","AAC02353-3C4E-47A1-8120-60A2F258771E","9FBBDAD3-5AE3-4342-A9DE-CF7593957E51","88B5A45D-F0EA-4372-952F-E5B93250C15E","782DCC77-008C-4653-BD28-DA4E24401AF9","D8C320FE-7916-4301-99FC-57DF6F7818E8","08F797B1-9E4E-44A7-82A8-94AD5055DD06","4A08CEEF-4759-4921-AF85-D276309CF091"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"magnets":[{"__isSmartRef__":true,"id":2606},{"__isSmartRef__":true,"id":2607},{"__isSmartRef__":true,"id":2608},{"__isSmartRef__":true,"id":2609},{"__isSmartRef__":true,"id":2610},{"__isSmartRef__":true,"id":2611},{"__isSmartRef__":true,"id":2612},{"__isSmartRef__":true,"id":2613}],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":2614},"draggingEnabled":false,"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":2560},"savedTextString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas\n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}","attributeConnections":[{"__isSmartRef__":true,"id":2615},{"__isSmartRef__":true,"id":2617}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":2,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"previousSelection":[241,315],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2619},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"2586":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_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(152.3,0.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2587":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2588},{"__isSmartRef__":true,"id":2590},{"__isSmartRef__":true,"id":2592},{"__isSmartRef__":true,"id":2594},{"__isSmartRef__":true,"id":2596},{"__isSmartRef__":true,"id":2598},{"__isSmartRef__":true,"id":2600}],"lastModifiedDate":{"__isSmartRef__":true,"id":2602},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2588":{"date":{"__isSmartRef__":true,"id":2589},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"2589":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"2590":{"date":{"__isSmartRef__":true,"id":2591},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"2591":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"2592":{"date":{"__isSmartRef__":true,"id":2593},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"2593":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"2594":{"date":{"__isSmartRef__":true,"id":2595},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"2595":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"2596":{"date":{"__isSmartRef__":true,"id":2597},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"2597":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"2598":{"date":{"__isSmartRef__":true,"id":2599},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"2599":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"2600":{"date":{"__isSmartRef__":true,"id":2601},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"2601":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"2602":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"2603":{"style":{"__isSmartRef__":true,"id":2604},"chunkOwner":{"__isSmartRef__":true,"id":2585},"_id":"_5","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2604":{"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2605":{"morph":{"__isSmartRef__":true,"id":2585},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2606":{"morph":{"__isSmartRef__":true,"id":2585},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"2607":{"morph":{"__isSmartRef__":true,"id":2585},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"2608":{"morph":{"__isSmartRef__":true,"id":2585},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"2609":{"morph":{"__isSmartRef__":true,"id":2585},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"2610":{"morph":{"__isSmartRef__":true,"id":2585},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"2611":{"morph":{"__isSmartRef__":true,"id":2585},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"2612":{"morph":{"__isSmartRef__":true,"id":2585},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"2613":{"morph":{"__isSmartRef__":true,"id":2585},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"2614":{"resizeWidth":true,"resizeHeight":true},"2615":{"sourceObj":{"__isSmartRef__":true,"id":2585},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2560},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":2616},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2616":{"source":{"__isSmartRef__":true,"id":2585},"target":{"__isSmartRef__":true,"id":2560}},"2617":{"sourceObj":{"__isSmartRef__":true,"id":2585},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":2585},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":2618},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2618":{"source":{"__isSmartRef__":true,"id":2585},"target":{"__isSmartRef__":true,"id":2585}},"2619":{"boundEval":{"__isSmartRef__":true,"id":2620},"getDoitContext":{"__isSmartRef__":true,"id":2628},"installLayers":{"__isSmartRef__":true,"id":2636},"onLoad":{"__isSmartRef__":true,"id":2640},"highligtScriptNames":{"__isSmartRef__":true,"id":2644},"getAutoCompletion":{"__isSmartRef__":true,"id":2648},"reset":{"__isSmartRef__":true,"id":2656},"getLastWordRange":{"__isSmartRef__":true,"id":2660}},"2620":{"varMapping":{"__isSmartRef__":true,"id":2621},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2621":{"this":{"__isSmartRef__":true,"id":2585},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2622}},"2622":{"$super":{"__isSmartRef__":true,"id":2623}},"2623":{"varMapping":{"__isSmartRef__":true,"id":2624},"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":2625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2624":{"obj":{"__isSmartRef__":true,"id":2585},"name":"boundEval"},"2625":{},"2626":{"timestamp":{"__isSmartRef__":true,"id":2627},"user":"jenslincke","tags":[]},"2627":{"isSerializedDate":true,"string":"Tue Jan 28 2014 11:28:47 GMT+0100 (CET)"},"2628":{"varMapping":{"__isSmartRef__":true,"id":2629},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":2634},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2629":{"this":{"__isSmartRef__":true,"id":2585},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2630}},"2630":{"$super":{"__isSmartRef__":true,"id":2631}},"2631":{"varMapping":{"__isSmartRef__":true,"id":2632},"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":2633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2632":{"obj":{"__isSmartRef__":true,"id":2585},"name":"getDoitContext"},"2633":{},"2634":{"timestamp":{"__isSmartRef__":true,"id":2635},"user":"jenslincke","tags":[]},"2635":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:42:09 GMT+0100 (CET)"},"2636":{"varMapping":{"__isSmartRef__":true,"id":2637},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":2638},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2637":{"this":{"__isSmartRef__":true,"id":2585}},"2638":{"timestamp":{"__isSmartRef__":true,"id":2639},"user":"jenslincke","tags":[]},"2639":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:44 GMT+0100 (CET)"},"2640":{"varMapping":{"__isSmartRef__":true,"id":2641},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":2642},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2641":{"this":{"__isSmartRef__":true,"id":2585}},"2642":{"timestamp":{"__isSmartRef__":true,"id":2643},"user":"jenslincke","tags":[]},"2643":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:45 GMT+0100 (CET)"},"2644":{"varMapping":{"__isSmartRef__":true,"id":2645},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.showNameReference(\"'+name+'\")',\n context: this.owner}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":2646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2645":{"this":{"__isSmartRef__":true,"id":2585}},"2646":{"timestamp":{"__isSmartRef__":true,"id":2647},"user":"jenslincke","tags":[]},"2647":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:25:07 GMT+0100 (CET)"},"2648":{"varMapping":{"__isSmartRef__":true,"id":2649},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":2654},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2649":{"this":{"__isSmartRef__":true,"id":2585},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2650}},"2650":{"$super":{"__isSmartRef__":true,"id":2651}},"2651":{"varMapping":{"__isSmartRef__":true,"id":2652},"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":2653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2652":{"obj":{"__isSmartRef__":true,"id":2585},"name":"getAutoCompletion"},"2653":{},"2654":{"timestamp":{"__isSmartRef__":true,"id":2655},"user":"jenslincke","tags":[]},"2655":{"isSerializedDate":true,"string":"Wed Jan 29 2014 00:33:17 GMT+0100 (CET)"},"2656":{"varMapping":{"__isSmartRef__":true,"id":2657},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":2658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2657":{"this":{"__isSmartRef__":true,"id":2585}},"2658":{"timestamp":{"__isSmartRef__":true,"id":2659},"user":"jenslincke","tags":[]},"2659":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:58:01 GMT+0100 (CET)"},"2660":{"varMapping":{"__isSmartRef__":true,"id":2661},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2661":{"this":{"__isSmartRef__":true,"id":2585},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2662}},"2662":{"$super":{"__isSmartRef__":true,"id":2663}},"2663":{"varMapping":{"__isSmartRef__":true,"id":2664},"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":2665},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2664":{"obj":{"__isSmartRef__":true,"id":2585},"name":"getLastWordRange"},"2665":{},"2666":{"timestamp":{"__isSmartRef__":true,"id":2667},"user":"jenslincke","tags":[]},"2667":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:59:58 GMT+0100 (CET)"},"2668":{"submorphs":[],"scripts":[],"id":"9E315F20-D511-4395-9B56-AA191DA2630B","shape":{"__isSmartRef__":true,"id":2669},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":2670},"textChunks":[{"__isSmartRef__":true,"id":2686}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2688},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","DDEC9403-6C57-4923-ABE3-1737E6362120","07D195A1-33DA-4A4D-B3EA-B51C03BACF39"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":2560},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":2689},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,61.9)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"2669":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"_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(144.4,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2670":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2671},{"__isSmartRef__":true,"id":2673},{"__isSmartRef__":true,"id":2675},{"__isSmartRef__":true,"id":2677},{"__isSmartRef__":true,"id":2679},{"__isSmartRef__":true,"id":2681},{"__isSmartRef__":true,"id":2683}],"lastModifiedDate":{"__isSmartRef__":true,"id":2685},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2671":{"date":{"__isSmartRef__":true,"id":2672},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"2672":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"2673":{"date":{"__isSmartRef__":true,"id":2674},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"2674":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"2675":{"date":{"__isSmartRef__":true,"id":2676},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"2676":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"2677":{"date":{"__isSmartRef__":true,"id":2678},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"2678":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"2679":{"date":{"__isSmartRef__":true,"id":2680},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"2680":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"2681":{"date":{"__isSmartRef__":true,"id":2682},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"2682":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"2683":{"date":{"__isSmartRef__":true,"id":2684},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"2684":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"2685":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"2686":{"style":{"__isSmartRef__":true,"id":2687},"chunkOwner":{"__isSmartRef__":true,"id":2668},"_id":"_2920","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2687":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2688":{"morph":{"__isSmartRef__":true,"id":2668},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2689":{"moveVertical":true,"resizeWidth":true},"2690":{"submorphs":[],"scripts":[],"id":"01ED9C4D-562E-4C4D-B989-026BBD9556C8","shape":{"__isSmartRef__":true,"id":2691},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":2692},"textChunks":[{"__isSmartRef__":true,"id":2708}],"charsReplaced":"false","lastFindLoc":28,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2710},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","1A5DC502-21A9-4B18-8878-654818F4C282","88E27517-6524-49AD-AF69-936DADF77DDD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":2560},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":2711}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 10\nMax: 5 [kW]","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":2713},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"2691":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(137.9,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2692":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2693},{"__isSmartRef__":true,"id":2695},{"__isSmartRef__":true,"id":2697},{"__isSmartRef__":true,"id":2699},{"__isSmartRef__":true,"id":2701},{"__isSmartRef__":true,"id":2703},{"__isSmartRef__":true,"id":2705}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":2707},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2693":{"date":{"__isSmartRef__":true,"id":2694},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"2694":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"2695":{"date":{"__isSmartRef__":true,"id":2696},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"2696":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"2697":{"date":{"__isSmartRef__":true,"id":2698},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"2698":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"2699":{"date":{"__isSmartRef__":true,"id":2700},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"2700":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"2701":{"date":{"__isSmartRef__":true,"id":2702},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"2702":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"2703":{"date":{"__isSmartRef__":true,"id":2704},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"2704":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"2705":{"date":{"__isSmartRef__":true,"id":2706},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"2706":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"2707":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"2708":{"style":{"__isSmartRef__":true,"id":2709},"chunkOwner":{"__isSmartRef__":true,"id":2690},"_id":"_2001","storedString":"Energy: 0 [kWs]\nMax: 360 [kWs]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2709":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2710":{"morph":{"__isSmartRef__":true,"id":2690},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2711":{"sourceObj":{"__isSmartRef__":true,"id":2690},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2560},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":2712},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2712":{"source":{"__isSmartRef__":true,"id":2690},"target":{"__isSmartRef__":true,"id":2560}},"2713":{"resizeWidth":true},"2714":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(166.2,79.7)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"2715":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":2716},{"__isSmartRef__":true,"id":2718},{"__isSmartRef__":true,"id":2720},{"__isSmartRef__":true,"id":2722},{"__isSmartRef__":true,"id":2724},{"__isSmartRef__":true,"id":2726},{"__isSmartRef__":true,"id":2728},{"__isSmartRef__":true,"id":2730},{"__isSmartRef__":true,"id":2732},{"__isSmartRef__":true,"id":2734},{"__isSmartRef__":true,"id":2736},{"__isSmartRef__":true,"id":2738},{"__isSmartRef__":true,"id":2740},{"__isSmartRef__":true,"id":2742},{"__isSmartRef__":true,"id":2744},{"__isSmartRef__":true,"id":2746},{"__isSmartRef__":true,"id":2748},{"__isSmartRef__":true,"id":2750},{"__isSmartRef__":true,"id":2752},{"__isSmartRef__":true,"id":2754},{"__isSmartRef__":true,"id":2756},{"__isSmartRef__":true,"id":2758},{"__isSmartRef__":true,"id":2760},{"__isSmartRef__":true,"id":2762},{"__isSmartRef__":true,"id":2764},{"__isSmartRef__":true,"id":2766},{"__isSmartRef__":true,"id":2768},{"__isSmartRef__":true,"id":2770},{"__isSmartRef__":true,"id":2772}],"lastModifiedDate":{"__isSmartRef__":true,"id":2774},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2716":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":2717}},"2717":{"isSerializedDate":true,"string":"Fri Jun 21 2013 00:16:24 GMT+0200 (CEST)"},"2718":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":2719}},"2719":{"isSerializedDate":true,"string":"Thu May 30 2013 09:18:06 GMT+0200 (CEST)"},"2720":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":2721}},"2721":{"isSerializedDate":true,"string":"Wed Jan 23 2013 12:57:18 GMT+0100 (CET)"},"2722":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":2723}},"2723":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"2724":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":2725}},"2725":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"2726":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":2727}},"2727":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"2728":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":2729}},"2729":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"2730":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":2731}},"2731":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"2732":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":2733}},"2733":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"2734":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":2735}},"2735":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:35:08 GMT+0200 (CEST)"},"2736":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":2737}},"2737":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:35:51 GMT+0100 (CET)"},"2738":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":2739}},"2739":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:42:31 GMT+0100 (CET)"},"2740":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":2741}},"2741":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:47:05 GMT+0100 (CET)"},"2742":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":2743}},"2743":{"isSerializedDate":true,"string":"Thu May 30 2013 00:36:50 GMT+0200 (CEST)"},"2744":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":2745}},"2745":{"isSerializedDate":true,"string":"Tue Jun 18 2013 20:49:27 GMT+0200 (CEST)"},"2746":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":2747}},"2747":{"isSerializedDate":true,"string":"Tue Jul 30 2013 08:20:51 GMT+0200 (CEST)"},"2748":{"date":{"__isSmartRef__":true,"id":2749},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"2749":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:02:28 GMT+0100 (CET)"},"2750":{"date":{"__isSmartRef__":true,"id":2751},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"2751":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:10:08 GMT+0100 (CET)"},"2752":{"date":{"__isSmartRef__":true,"id":2753},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"2753":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:24:55 GMT+0100 (CET)"},"2754":{"date":{"__isSmartRef__":true,"id":2755},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"2755":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:29:33 GMT+0100 (CET)"},"2756":{"date":{"__isSmartRef__":true,"id":2757},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"2757":{"isSerializedDate":true,"string":"Wed Jan 22 2014 21:07:26 GMT+0100 (CET)"},"2758":{"date":{"__isSmartRef__":true,"id":2759},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"2759":{"isSerializedDate":true,"string":"Wed Jan 22 2014 22:23:13 GMT+0100 (CET)"},"2760":{"date":{"__isSmartRef__":true,"id":2761},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"2761":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:58:48 GMT+0100 (CET)"},"2762":{"date":{"__isSmartRef__":true,"id":2763},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"2763":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:59:27 GMT+0100 (CET)"},"2764":{"date":{"__isSmartRef__":true,"id":2765},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"2765":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:03:44 GMT+0100 (CET)"},"2766":{"date":{"__isSmartRef__":true,"id":2767},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"2767":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:24:12 GMT+0100 (CET)"},"2768":{"date":{"__isSmartRef__":true,"id":2769},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"2769":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:26:15 GMT+0100 (CET)"},"2770":{"date":{"__isSmartRef__":true,"id":2771},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"2771":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:35:38 GMT+0100 (CET)"},"2772":{"date":{"__isSmartRef__":true,"id":2773},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"2773":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:54:51 GMT+0100 (CET)"},"2774":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:15 GMT+0100 (CET)"},"2775":{"morph":{"__isSmartRef__":true,"id":2560},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2776":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2777}},"2777":{"test01IsMorph":{"__isSmartRef__":true,"id":2778}},"2778":{"varMapping":{"__isSmartRef__":true,"id":2779},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2779":{"this":{"__isSmartRef__":true,"id":2776}},"2780":{},"2781":{"morph":{"__isSmartRef__":true,"id":2560},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"2782":{"morph":{"__isSmartRef__":true,"id":2560},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"2783":{"morph":{"__isSmartRef__":true,"id":2560},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"2784":{"morph":{"__isSmartRef__":true,"id":2560},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"2785":{"morph":{"__isSmartRef__":true,"id":2560},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"2786":{"morph":{"__isSmartRef__":true,"id":2560},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"2787":{"morph":{"__isSmartRef__":true,"id":2560},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"2788":{"morph":{"__isSmartRef__":true,"id":2560},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"2789":{"adjustForNewBounds":true},"2790":{"Energy":0,"Max":360},"2791":{"sourceObj":{"__isSmartRef__":true,"id":2560},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":2561},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":2792},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2792":{"source":{"__isSmartRef__":true,"id":2560},"target":{"__isSmartRef__":true,"id":2561}},"2793":{"Energy":"kWs","Max":"kWs"},"2794":{"referencedBy":{"__isSmartRef__":true,"id":2795},"references":{"__isSmartRef__":true,"id":2796}},"2795":{},"2796":{},"2797":{"migrateFrom":{"__isSmartRef__":true,"id":2798},"parsePropeties":{"__isSmartRef__":true,"id":2802},"printProperties":{"__isSmartRef__":true,"id":2806},"parseSimulationSource":{"__isSmartRef__":true,"id":2810},"simulateStep":{"__isSmartRef__":true,"id":2814},"showError":{"__isSmartRef__":true,"id":2817},"throwSimulationProblem":{"__isSmartRef__":true,"id":2821},"updateUI":{"__isSmartRef__":true,"id":2825},"resetStatus":{"__isSmartRef__":true,"id":2829},"simulateOneStep":{"__isSmartRef__":true,"id":2833},"reset":{"__isSmartRef__":true,"id":2837},"resetScriptAnalysis":{"__isSmartRef__":true,"id":2841},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":2845},"logReference":{"__isSmartRef__":true,"id":2849},"showScriptAnalysis":{"__isSmartRef__":true,"id":2853},"showReferenceTo":{"__isSmartRef__":true,"id":2857},"resetSourceHighlighting":{"__isSmartRef__":true,"id":2861},"showNameReference":{"__isSmartRef__":true,"id":2865}},"2798":{"varMapping":{"__isSmartRef__":true,"id":2799},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n \n}","funcProperties":{"__isSmartRef__":true,"id":2800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2799":{"this":{"__isSmartRef__":true,"id":2560}},"2800":{"timestamp":{"__isSmartRef__":true,"id":2801},"user":"jenslincke","tags":[]},"2801":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:59 GMT+0100 (CET)"},"2802":{"varMapping":{"__isSmartRef__":true,"id":2803},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":2804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2803":{"this":{"__isSmartRef__":true,"id":2560}},"2804":{"timestamp":{"__isSmartRef__":true,"id":2805},"user":"jenslincke","tags":[]},"2805":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:03 GMT+0100 (CET)"},"2806":{"varMapping":{"__isSmartRef__":true,"id":2807},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":2808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2807":{"this":{"__isSmartRef__":true,"id":2560}},"2808":{"timestamp":{"__isSmartRef__":true,"id":2809},"user":"jenslincke","tags":[]},"2809":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:34:48 GMT+0100 (CET)"},"2810":{"varMapping":{"__isSmartRef__":true,"id":2811},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":2812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2811":{"this":{"__isSmartRef__":true,"id":2560}},"2812":{"timestamp":{"__isSmartRef__":true,"id":2813},"user":"jenslincke","tags":[]},"2813":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:12:57 GMT+0100 (CET)"},"2814":{"varMapping":{"__isSmartRef__":true,"id":2815},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\n\n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":2816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2815":{"this":{"__isSmartRef__":true,"id":2560}},"2816":{},"2817":{"varMapping":{"__isSmartRef__":true,"id":2818},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2818":{"this":{"__isSmartRef__":true,"id":2560}},"2819":{"timestamp":{"__isSmartRef__":true,"id":2820},"user":"jenslincke","tags":[]},"2820":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:11:23 GMT+0100 (CET)"},"2821":{"varMapping":{"__isSmartRef__":true,"id":2822},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":2823},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2822":{"this":{"__isSmartRef__":true,"id":2560}},"2823":{"timestamp":{"__isSmartRef__":true,"id":2824},"user":"jenslincke","tags":[]},"2824":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:32:56 GMT+0100 (CET)"},"2825":{"varMapping":{"__isSmartRef__":true,"id":2826},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":2827},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2826":{"this":{"__isSmartRef__":true,"id":2560}},"2827":{"timestamp":{"__isSmartRef__":true,"id":2828},"user":"jenslincke","tags":[]},"2828":{"isSerializedDate":true,"string":"Sun Jan 26 2014 15:22:09 GMT+0100 (CET)"},"2829":{"varMapping":{"__isSmartRef__":true,"id":2830},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":2831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2830":{"this":{"__isSmartRef__":true,"id":2560}},"2831":{"timestamp":{"__isSmartRef__":true,"id":2832},"user":"jenslincke","tags":[]},"2832":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:54:04 GMT+0100 (CET)"},"2833":{"varMapping":{"__isSmartRef__":true,"id":2834},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2835},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2834":{"this":{"__isSmartRef__":true,"id":2560}},"2835":{"timestamp":{"__isSmartRef__":true,"id":2836},"user":"jenslincke","tags":[]},"2836":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:05:58 GMT+0100 (CET)"},"2837":{"varMapping":{"__isSmartRef__":true,"id":2838},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":2839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2838":{"this":{"__isSmartRef__":true,"id":2560}},"2839":{"timestamp":{"__isSmartRef__":true,"id":2840},"user":"jenslincke","tags":[]},"2840":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:35:44 GMT+0100 (CET)"},"2841":{"varMapping":{"__isSmartRef__":true,"id":2842},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":2843},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2842":{"this":{"__isSmartRef__":true,"id":2560}},"2843":{"timestamp":{"__isSmartRef__":true,"id":2844},"user":"jenslincke","tags":[]},"2844":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:36:12 GMT+0100 (CET)"},"2845":{"varMapping":{"__isSmartRef__":true,"id":2846},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":2847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2846":{"this":{"__isSmartRef__":true,"id":2560}},"2847":{"timestamp":{"__isSmartRef__":true,"id":2848},"user":"jenslincke","tags":[]},"2848":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:09 GMT+0100 (CET)"},"2849":{"varMapping":{"__isSmartRef__":true,"id":2850},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":2851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2850":{"this":{"__isSmartRef__":true,"id":2560}},"2851":{"timestamp":{"__isSmartRef__":true,"id":2852},"user":"jenslincke","tags":[]},"2852":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:15 GMT+0100 (CET)"},"2853":{"varMapping":{"__isSmartRef__":true,"id":2854},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":2855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2854":{"this":{"__isSmartRef__":true,"id":2560}},"2855":{"timestamp":{"__isSmartRef__":true,"id":2856},"user":"jenslincke","tags":[]},"2856":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:55:26 GMT+0100 (CET)"},"2857":{"varMapping":{"__isSmartRef__":true,"id":2858},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2858":{"this":{"__isSmartRef__":true,"id":2560}},"2859":{"timestamp":{"__isSmartRef__":true,"id":2860},"user":"jenslincke","tags":[]},"2860":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:25 GMT+0100 (CET)"},"2861":{"varMapping":{"__isSmartRef__":true,"id":2862},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":2863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2862":{"this":{"__isSmartRef__":true,"id":2560}},"2863":{"timestamp":{"__isSmartRef__":true,"id":2864},"user":"jenslincke","tags":[]},"2864":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:53:47 GMT+0100 (CET)"},"2865":{"varMapping":{"__isSmartRef__":true,"id":2866},"source":"function showNameReference(name) {\n\n if (this.owner.resetSourceHighlighting)\n this.owner.resetSourceHighlighting()\n\n if (name ==this.lastNameReference) {\n this.lastNameReference = null\n return\n }\n var morph = this.get(name)\n if (morph) morph.show().invoke(\"setBorderColor\", Color.yellow)\n\n this.lastNameReference = name;\n this.showReferenceTo(name)\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":2867},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2866":{"this":{"__isSmartRef__":true,"id":2560}},"2867":{"timestamp":{"__isSmartRef__":true,"id":2868},"user":"jenslincke","tags":[]},"2868":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:32:17 GMT+0100 (CET)"},"2869":{"submorphs":[{"__isSmartRef__":true,"id":2870},{"__isSmartRef__":true,"id":2894},{"__isSmartRef__":true,"id":3015},{"__isSmartRef__":true,"id":3037}],"scripts":[],"id":"4044555B-EF19-4901-A6A6-ABDD8C6E1305","shape":{"__isSmartRef__":true,"id":3061},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3062},"eventHandler":{"__isSmartRef__":true,"id":3122},"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","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","5E21C7BB-A7E2-498E-858F-032DCC55A4FC","2072AEFD-449A-4F4E-B8A5-9A6C57DEBB4B","8013D903-1809-4244-AABF-4DF28A1844DB","00F3C15D-F47A-44A0-8AD1-817E6DA58255","6A96318B-D7CD-48E2-913D-29CB6897E3B7","B2263E54-BA2B-4C60-B8A1-92637C28EA08","64C5A21D-7106-40F1-A881-4B19EEF4534D","558820C1-7325-4652-A6CF-33B25DBDDE22","BCDFBF89-EC99-457D-A530-78EE6AA50603","BB62D9DB-5F5D-46D1-B13F-ECC2CFA93FFA","13370CD2-1232-4E30-9AB6-D43A7241AB79"],"partTests":{"__isSmartRef__":true,"id":3123},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":3128},{"__isSmartRef__":true,"id":3129},{"__isSmartRef__":true,"id":3130},{"__isSmartRef__":true,"id":3131},{"__isSmartRef__":true,"id":3132},{"__isSmartRef__":true,"id":3133},{"__isSmartRef__":true,"id":3134},{"__isSmartRef__":true,"id":3135}],"prevScroll":[0,0],"isEnergySimulationPart":true,"layout":{"__isSmartRef__":true,"id":3136},"$":{"__isSmartRef__":true,"id":3137},"name":"HeatConsumer","attributeConnections":[{"__isSmartRef__":true,"id":3138}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"units":{"__isSmartRef__":true,"id":3140},"scriptAnalysis":{"__isSmartRef__":true,"id":3141},"lastNameReference":"Fuel","owner":{"__isSmartRef__":true,"id":689},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3144},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(282.9,4.0)","_Position":"lively.pt(1113.3,6.2)"},"2870":{"submorphs":[],"scripts":[],"id":"4E3ECE08-CF98-4ACD-9BCA-4C8D57CC64DE","shape":{"__isSmartRef__":true,"id":2871},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":2872},"textChunks":[{"__isSmartRef__":true,"id":2874}],"charsReplaced":"EnergySimulationPart","lastFindLoc":20,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":2876},{"__isSmartRef__":true,"id":2877}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"HeatingSystem","eventHandler":{"__isSmartRef__":true,"id":2878},"owner":{"__isSmartRef__":true,"id":2869},"derivationIds":[7027,"63B54D01-70F2-4A5D-8586-BE6EDD15DB66","C5E299A1-9E8A-477F-985B-DDC8528C798C","34C77E49-70E0-4238-BFC7-110384901543","21EE0BC1-029B-42D1-A2CC-381C601A5F55","17C73E30-F0FE-4832-A19D-A93FAC698D7D","567146D9-37F5-4BCC-AF7F-DB5A96EE8571","A112085C-FDC7-48D5-A582-CD39CA4E9117"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":2869},"isBeingDragged":false,"draggingEnabled":false,"_Rotation":0,"_Scale":0.9999999999999997,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2879},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.1,8.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(130.4,-10.2)"},"2871":{"fill":null,"_BorderWidth":0,"__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(180.8,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"2872":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":2873},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2873":{"isSerializedDate":true,"string":"Thu Mar 07 2013 01:25:14 GMT+0100 (CET)"},"2874":{"style":{"__isSmartRef__":true,"id":2875},"chunkOwner":{"__isSmartRef__":true,"id":2870},"_id":"_31691","storedString":"HeatConsumer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2875":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2876":{"sourceObj":{"__isSmartRef__":true,"id":2870},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2870},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2877":{"sourceObj":{"__isSmartRef__":true,"id":2870},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2870},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2878":{"morph":{"__isSmartRef__":true,"id":2870},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2879":{"updateLabel":{"__isSmartRef__":true,"id":2880},"renameOwner":{"__isSmartRef__":true,"id":2883},"onFocus":{"__isSmartRef__":true,"id":2886}},"2880":{"varMapping":{"__isSmartRef__":true,"id":2881},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":2882},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2881":{"this":{"__isSmartRef__":true,"id":2870}},"2882":{},"2883":{"varMapping":{"__isSmartRef__":true,"id":2884},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":2885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2884":{"this":{"__isSmartRef__":true,"id":2870}},"2885":{},"2886":{"varMapping":{"__isSmartRef__":true,"id":2887},"source":"function onFocus(evt) {\n $super(evt)\n if (this.owner.showScriptAnalysis) this.owner.showScriptAnalysis()\n}","funcProperties":{"__isSmartRef__":true,"id":2892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2887":{"this":{"__isSmartRef__":true,"id":2870},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2888}},"2888":{"$super":{"__isSmartRef__":true,"id":2889}},"2889":{"varMapping":{"__isSmartRef__":true,"id":2890},"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":2891},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2890":{"obj":{"__isSmartRef__":true,"id":2870},"name":"onFocus"},"2891":{},"2892":{"timestamp":{"__isSmartRef__":true,"id":2893},"user":"jenslincke","tags":[]},"2893":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:45:12 GMT+0100 (CET)"},"2894":{"submorphs":[],"scripts":[],"id":"F5842D5A-A1A1-49C1-AC89-9DD153C1415F","shape":{"__isSmartRef__":true,"id":2895},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Monaco,monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"SimulationText","partsBinMetaInfo":{"__isSmartRef__":true,"id":2896},"textChunks":[{"__isSmartRef__":true,"id":2912},{"__isSmartRef__":true,"id":2914},{"__isSmartRef__":true,"id":2916},{"__isSmartRef__":true,"id":2918},{"__isSmartRef__":true,"id":2920},{"__isSmartRef__":true,"id":2922},{"__isSmartRef__":true,"id":2924},{"__isSmartRef__":true,"id":2926},{"__isSmartRef__":true,"id":2928},{"__isSmartRef__":true,"id":2930},{"__isSmartRef__":true,"id":2932},{"__isSmartRef__":true,"id":2934},{"__isSmartRef__":true,"id":2936},{"__isSmartRef__":true,"id":2938},{"__isSmartRef__":true,"id":2940},{"__isSmartRef__":true,"id":2942},{"__isSmartRef__":true,"id":2944},{"__isSmartRef__":true,"id":2946},{"__isSmartRef__":true,"id":2948},{"__isSmartRef__":true,"id":2950}],"charsReplaced":" ","lastFindLoc":409,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2952},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","1BC17AC6-65D2-4DD8-906E-C419087FC3F7","6809C3A5-DCFA-4E76-9397-E4C5BA4A34C7","C528D4FD-5331-4D9A-9352-1088CF72DDDA","A3CD61D5-7936-402F-8EBA-3E2456AB5E0C","39BE0850-B4DE-4E8D-9EC7-7A6A5059775A","2035C52E-14AD-4493-A166-F79162AD66FB","D0F7C47B-437F-457E-929F-EA18E7790FA7","22F56005-4177-492C-8AAF-FF810C44931A","AAC02353-3C4E-47A1-8120-60A2F258771E","9FBBDAD3-5AE3-4342-A9DE-CF7593957E51","88B5A45D-F0EA-4372-952F-E5B93250C15E","782DCC77-008C-4653-BD28-DA4E24401AF9","D8C320FE-7916-4301-99FC-57DF6F7818E8","08F797B1-9E4E-44A7-82A8-94AD5055DD06","4A08CEEF-4759-4921-AF85-D276309CF091"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"magnets":[{"__isSmartRef__":true,"id":2953},{"__isSmartRef__":true,"id":2954},{"__isSmartRef__":true,"id":2955},{"__isSmartRef__":true,"id":2956},{"__isSmartRef__":true,"id":2957},{"__isSmartRef__":true,"id":2958},{"__isSmartRef__":true,"id":2959},{"__isSmartRef__":true,"id":2960}],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":2961},"draggingEnabled":false,"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":2869},"savedTextString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas\n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}","attributeConnections":[{"__isSmartRef__":true,"id":2962},{"__isSmartRef__":true,"id":2964}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":8,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"var delta = $.Demand * dt\nif (#HeatStorage.$.Energy > delta) {\n #HeatStorage.$.Energy -= delta\n $.Consumed += delta\n // TODO consume Extra\n} else {\n $.Extra += delta \n problem(\"RoomToCold\")\n}","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2966},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"2895":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_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(396.1,187.2)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2896":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2897},{"__isSmartRef__":true,"id":2899},{"__isSmartRef__":true,"id":2901},{"__isSmartRef__":true,"id":2903},{"__isSmartRef__":true,"id":2905},{"__isSmartRef__":true,"id":2907},{"__isSmartRef__":true,"id":2909}],"lastModifiedDate":{"__isSmartRef__":true,"id":2911},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2897":{"date":{"__isSmartRef__":true,"id":2898},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"2898":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"2899":{"date":{"__isSmartRef__":true,"id":2900},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"2900":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"2901":{"date":{"__isSmartRef__":true,"id":2902},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"2902":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"2903":{"date":{"__isSmartRef__":true,"id":2904},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"2904":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"2905":{"date":{"__isSmartRef__":true,"id":2906},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"2906":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"2907":{"date":{"__isSmartRef__":true,"id":2908},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"2908":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"2909":{"date":{"__isSmartRef__":true,"id":2910},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"2910":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"2911":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"2912":{"style":{"__isSmartRef__":true,"id":2913},"chunkOwner":{"__isSmartRef__":true,"id":2894},"_id":"_15","storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2913":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"2914":{"_id":"_111","style":{"__isSmartRef__":true,"id":2915},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":" delta = $.Demand * dt\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2915":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2916":{"_id":"_112","style":{"__isSmartRef__":true,"id":2917},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2917":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"2918":{"_id":"_113","style":{"__isSmartRef__":true,"id":2919},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":" (#HeatStorage.$.Energy > delta) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2919":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2920":{"_id":"_114","style":{"__isSmartRef__":true,"id":2921},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2921":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"2922":{"_id":"_115","style":{"__isSmartRef__":true,"id":2923},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":"\n #HeatStorage.$.Energy -= delta\n $.Consumed += delta\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2923":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2924":{"_id":"_116","style":{"__isSmartRef__":true,"id":2925},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2925":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"2926":{"_id":"_117","style":{"__isSmartRef__":true,"id":2927},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":" TODO consume Extra","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2927":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"2928":{"_id":"_118","style":{"__isSmartRef__":true,"id":2929},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2929":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2930":{"_id":"_119","style":{"__isSmartRef__":true,"id":2931},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2931":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"2932":{"_id":"_120","style":{"__isSmartRef__":true,"id":2933},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2933":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2934":{"_id":"_121","style":{"__isSmartRef__":true,"id":2935},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":"else","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2935":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"2936":{"_id":"_122","style":{"__isSmartRef__":true,"id":2937},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2937":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2938":{"_id":"_123","style":{"__isSmartRef__":true,"id":2939},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2939":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"2940":{"_id":"_124","style":{"__isSmartRef__":true,"id":2941},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":"\n $.Extra += delta","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2941":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2942":{"_id":"_125","style":{"__isSmartRef__":true,"id":2943},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":" \n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2943":{"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2944":{"_id":"_126","style":{"__isSmartRef__":true,"id":2945},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":" problem(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2945":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2946":{"_id":"_127","style":{"__isSmartRef__":true,"id":2947},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":"\"RoomToCold\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2947":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,128)"},"2948":{"_id":"_128","style":{"__isSmartRef__":true,"id":2949},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":")\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2949":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"2950":{"_id":"_129","style":{"__isSmartRef__":true,"id":2951},"chunkOwner":{"__isSmartRef__":true,"id":2894},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2951":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"2952":{"morph":{"__isSmartRef__":true,"id":2894},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2953":{"morph":{"__isSmartRef__":true,"id":2894},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"2954":{"morph":{"__isSmartRef__":true,"id":2894},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"2955":{"morph":{"__isSmartRef__":true,"id":2894},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"2956":{"morph":{"__isSmartRef__":true,"id":2894},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"2957":{"morph":{"__isSmartRef__":true,"id":2894},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"2958":{"morph":{"__isSmartRef__":true,"id":2894},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"2959":{"morph":{"__isSmartRef__":true,"id":2894},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"2960":{"morph":{"__isSmartRef__":true,"id":2894},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"2961":{"resizeWidth":true,"resizeHeight":true},"2962":{"sourceObj":{"__isSmartRef__":true,"id":2894},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2869},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":2963},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2963":{"source":{"__isSmartRef__":true,"id":2894},"target":{"__isSmartRef__":true,"id":2869}},"2964":{"sourceObj":{"__isSmartRef__":true,"id":2894},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":2894},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":2965},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2965":{"source":{"__isSmartRef__":true,"id":2894},"target":{"__isSmartRef__":true,"id":2894}},"2966":{"boundEval":{"__isSmartRef__":true,"id":2967},"getDoitContext":{"__isSmartRef__":true,"id":2975},"installLayers":{"__isSmartRef__":true,"id":2983},"onLoad":{"__isSmartRef__":true,"id":2987},"highligtScriptNames":{"__isSmartRef__":true,"id":2991},"getAutoCompletion":{"__isSmartRef__":true,"id":2995},"reset":{"__isSmartRef__":true,"id":3003},"getLastWordRange":{"__isSmartRef__":true,"id":3007}},"2967":{"varMapping":{"__isSmartRef__":true,"id":2968},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2968":{"this":{"__isSmartRef__":true,"id":2894},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2969}},"2969":{"$super":{"__isSmartRef__":true,"id":2970}},"2970":{"varMapping":{"__isSmartRef__":true,"id":2971},"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":2972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2971":{"obj":{"__isSmartRef__":true,"id":2894},"name":"boundEval"},"2972":{},"2973":{"timestamp":{"__isSmartRef__":true,"id":2974},"user":"jenslincke","tags":[]},"2974":{"isSerializedDate":true,"string":"Tue Jan 28 2014 11:28:47 GMT+0100 (CET)"},"2975":{"varMapping":{"__isSmartRef__":true,"id":2976},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":2981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2976":{"this":{"__isSmartRef__":true,"id":2894},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2977}},"2977":{"$super":{"__isSmartRef__":true,"id":2978}},"2978":{"varMapping":{"__isSmartRef__":true,"id":2979},"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":2980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2979":{"obj":{"__isSmartRef__":true,"id":2894},"name":"getDoitContext"},"2980":{},"2981":{"timestamp":{"__isSmartRef__":true,"id":2982},"user":"jenslincke","tags":[]},"2982":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:42:09 GMT+0100 (CET)"},"2983":{"varMapping":{"__isSmartRef__":true,"id":2984},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":2985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2984":{"this":{"__isSmartRef__":true,"id":2894}},"2985":{"timestamp":{"__isSmartRef__":true,"id":2986},"user":"jenslincke","tags":[]},"2986":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:44 GMT+0100 (CET)"},"2987":{"varMapping":{"__isSmartRef__":true,"id":2988},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":2989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2988":{"this":{"__isSmartRef__":true,"id":2894}},"2989":{"timestamp":{"__isSmartRef__":true,"id":2990},"user":"jenslincke","tags":[]},"2990":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:45 GMT+0100 (CET)"},"2991":{"varMapping":{"__isSmartRef__":true,"id":2992},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.showNameReference(\"'+name+'\")',\n context: this.owner}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":2993},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2992":{"this":{"__isSmartRef__":true,"id":2894}},"2993":{"timestamp":{"__isSmartRef__":true,"id":2994},"user":"jenslincke","tags":[]},"2994":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:25:07 GMT+0100 (CET)"},"2995":{"varMapping":{"__isSmartRef__":true,"id":2996},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":3001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2996":{"this":{"__isSmartRef__":true,"id":2894},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2997}},"2997":{"$super":{"__isSmartRef__":true,"id":2998}},"2998":{"varMapping":{"__isSmartRef__":true,"id":2999},"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":3000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2999":{"obj":{"__isSmartRef__":true,"id":2894},"name":"getAutoCompletion"},"3000":{},"3001":{"timestamp":{"__isSmartRef__":true,"id":3002},"user":"jenslincke","tags":[]},"3002":{"isSerializedDate":true,"string":"Wed Jan 29 2014 00:33:17 GMT+0100 (CET)"},"3003":{"varMapping":{"__isSmartRef__":true,"id":3004},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":3005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3004":{"this":{"__isSmartRef__":true,"id":2894}},"3005":{"timestamp":{"__isSmartRef__":true,"id":3006},"user":"jenslincke","tags":[]},"3006":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:58:01 GMT+0100 (CET)"},"3007":{"varMapping":{"__isSmartRef__":true,"id":3008},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3008":{"this":{"__isSmartRef__":true,"id":2894},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3009}},"3009":{"$super":{"__isSmartRef__":true,"id":3010}},"3010":{"varMapping":{"__isSmartRef__":true,"id":3011},"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":3012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3011":{"obj":{"__isSmartRef__":true,"id":2894},"name":"getLastWordRange"},"3012":{},"3013":{"timestamp":{"__isSmartRef__":true,"id":3014},"user":"jenslincke","tags":[]},"3014":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:59:58 GMT+0100 (CET)"},"3015":{"submorphs":[],"scripts":[],"id":"DA59BCD4-76C2-4B38-A8F2-93AC28707FC1","shape":{"__isSmartRef__":true,"id":3016},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":3017},"textChunks":[{"__isSmartRef__":true,"id":3033}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3035},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","DDEC9403-6C57-4923-ABE3-1737E6362120","07D195A1-33DA-4A4D-B3EA-B51C03BACF39"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":2869},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":3036},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,272.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"3016":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"_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(388.2,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3017":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3018},{"__isSmartRef__":true,"id":3020},{"__isSmartRef__":true,"id":3022},{"__isSmartRef__":true,"id":3024},{"__isSmartRef__":true,"id":3026},{"__isSmartRef__":true,"id":3028},{"__isSmartRef__":true,"id":3030}],"lastModifiedDate":{"__isSmartRef__":true,"id":3032},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3018":{"date":{"__isSmartRef__":true,"id":3019},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"3019":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"3020":{"date":{"__isSmartRef__":true,"id":3021},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"3021":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"3022":{"date":{"__isSmartRef__":true,"id":3023},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3023":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"3024":{"date":{"__isSmartRef__":true,"id":3025},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3025":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"3026":{"date":{"__isSmartRef__":true,"id":3027},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"3027":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"3028":{"date":{"__isSmartRef__":true,"id":3029},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"3029":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"3030":{"date":{"__isSmartRef__":true,"id":3031},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"3031":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"3032":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"3033":{"style":{"__isSmartRef__":true,"id":3034},"chunkOwner":{"__isSmartRef__":true,"id":3015},"_id":"_2922","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3034":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3035":{"morph":{"__isSmartRef__":true,"id":3015},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3036":{"moveVertical":true,"resizeWidth":true},"3037":{"submorphs":[],"scripts":[],"id":"B739E1BB-81F6-4533-848F-9BF8BDDF4134","shape":{"__isSmartRef__":true,"id":3038},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":3039},"textChunks":[{"__isSmartRef__":true,"id":3055}],"charsReplaced":"","lastFindLoc":49,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3057},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","1A5DC502-21A9-4B18-8878-654818F4C282","88E27517-6524-49AD-AF69-936DADF77DDD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":2869},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":3058}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Consumed: 857.4 [kWs]\nExtra: 9.9 [kWs]\nDemand: 5 [kW]\nStopped: false","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":3060},"_Rotation":0,"_Scale":1,"previousSelection":[30,30],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"3038":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(381.7,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3039":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3040},{"__isSmartRef__":true,"id":3042},{"__isSmartRef__":true,"id":3044},{"__isSmartRef__":true,"id":3046},{"__isSmartRef__":true,"id":3048},{"__isSmartRef__":true,"id":3050},{"__isSmartRef__":true,"id":3052}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":3054},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3040":{"date":{"__isSmartRef__":true,"id":3041},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"3041":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"3042":{"date":{"__isSmartRef__":true,"id":3043},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"3043":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"3044":{"date":{"__isSmartRef__":true,"id":3045},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3045":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"3046":{"date":{"__isSmartRef__":true,"id":3047},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3047":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"3048":{"date":{"__isSmartRef__":true,"id":3049},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"3049":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"3050":{"date":{"__isSmartRef__":true,"id":3051},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"3051":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"3052":{"date":{"__isSmartRef__":true,"id":3053},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"3053":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"3054":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"3055":{"style":{"__isSmartRef__":true,"id":3056},"chunkOwner":{"__isSmartRef__":true,"id":3037},"_id":"_2002","storedString":"Consumed: 0 [kWs]\nExtra: 0 [kWs]\nDemand: 3 [kW]\nStopped: false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3056":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3057":{"morph":{"__isSmartRef__":true,"id":3037},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3058":{"sourceObj":{"__isSmartRef__":true,"id":3037},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2869},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":3059},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3059":{"source":{"__isSmartRef__":true,"id":3037},"target":{"__isSmartRef__":true,"id":2869}},"3060":{"resizeWidth":true},"3061":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(410.0,290.0)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"3062":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":3063},{"__isSmartRef__":true,"id":3065},{"__isSmartRef__":true,"id":3067},{"__isSmartRef__":true,"id":3069},{"__isSmartRef__":true,"id":3071},{"__isSmartRef__":true,"id":3073},{"__isSmartRef__":true,"id":3075},{"__isSmartRef__":true,"id":3077},{"__isSmartRef__":true,"id":3079},{"__isSmartRef__":true,"id":3081},{"__isSmartRef__":true,"id":3083},{"__isSmartRef__":true,"id":3085},{"__isSmartRef__":true,"id":3087},{"__isSmartRef__":true,"id":3089},{"__isSmartRef__":true,"id":3091},{"__isSmartRef__":true,"id":3093},{"__isSmartRef__":true,"id":3095},{"__isSmartRef__":true,"id":3097},{"__isSmartRef__":true,"id":3099},{"__isSmartRef__":true,"id":3101},{"__isSmartRef__":true,"id":3103},{"__isSmartRef__":true,"id":3105},{"__isSmartRef__":true,"id":3107},{"__isSmartRef__":true,"id":3109},{"__isSmartRef__":true,"id":3111},{"__isSmartRef__":true,"id":3113},{"__isSmartRef__":true,"id":3115},{"__isSmartRef__":true,"id":3117},{"__isSmartRef__":true,"id":3119}],"lastModifiedDate":{"__isSmartRef__":true,"id":3121},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3063":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":3064}},"3064":{"isSerializedDate":true,"string":"Fri Jun 21 2013 00:16:24 GMT+0200 (CEST)"},"3065":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":3066}},"3066":{"isSerializedDate":true,"string":"Thu May 30 2013 09:18:06 GMT+0200 (CEST)"},"3067":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":3068}},"3068":{"isSerializedDate":true,"string":"Wed Jan 23 2013 12:57:18 GMT+0100 (CET)"},"3069":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":3070}},"3070":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"3071":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":3072}},"3072":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"3073":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":3074}},"3074":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"3075":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":3076}},"3076":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"3077":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":3078}},"3078":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"3079":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":3080}},"3080":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"3081":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":3082}},"3082":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:35:08 GMT+0200 (CEST)"},"3083":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":3084}},"3084":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:35:51 GMT+0100 (CET)"},"3085":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":3086}},"3086":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:42:31 GMT+0100 (CET)"},"3087":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":3088}},"3088":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:47:05 GMT+0100 (CET)"},"3089":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":3090}},"3090":{"isSerializedDate":true,"string":"Thu May 30 2013 00:36:50 GMT+0200 (CEST)"},"3091":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":3092}},"3092":{"isSerializedDate":true,"string":"Tue Jun 18 2013 20:49:27 GMT+0200 (CEST)"},"3093":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":3094}},"3094":{"isSerializedDate":true,"string":"Tue Jul 30 2013 08:20:51 GMT+0200 (CEST)"},"3095":{"date":{"__isSmartRef__":true,"id":3096},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"3096":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:02:28 GMT+0100 (CET)"},"3097":{"date":{"__isSmartRef__":true,"id":3098},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"3098":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:10:08 GMT+0100 (CET)"},"3099":{"date":{"__isSmartRef__":true,"id":3100},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"3100":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:24:55 GMT+0100 (CET)"},"3101":{"date":{"__isSmartRef__":true,"id":3102},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"3102":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:29:33 GMT+0100 (CET)"},"3103":{"date":{"__isSmartRef__":true,"id":3104},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"3104":{"isSerializedDate":true,"string":"Wed Jan 22 2014 21:07:26 GMT+0100 (CET)"},"3105":{"date":{"__isSmartRef__":true,"id":3106},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"3106":{"isSerializedDate":true,"string":"Wed Jan 22 2014 22:23:13 GMT+0100 (CET)"},"3107":{"date":{"__isSmartRef__":true,"id":3108},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"3108":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:58:48 GMT+0100 (CET)"},"3109":{"date":{"__isSmartRef__":true,"id":3110},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"3110":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:59:27 GMT+0100 (CET)"},"3111":{"date":{"__isSmartRef__":true,"id":3112},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"3112":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:03:44 GMT+0100 (CET)"},"3113":{"date":{"__isSmartRef__":true,"id":3114},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"3114":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:24:12 GMT+0100 (CET)"},"3115":{"date":{"__isSmartRef__":true,"id":3116},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"3116":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:26:15 GMT+0100 (CET)"},"3117":{"date":{"__isSmartRef__":true,"id":3118},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"3118":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:35:38 GMT+0100 (CET)"},"3119":{"date":{"__isSmartRef__":true,"id":3120},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"3120":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:54:51 GMT+0100 (CET)"},"3121":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:15 GMT+0100 (CET)"},"3122":{"morph":{"__isSmartRef__":true,"id":2869},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3123":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3124}},"3124":{"test01IsMorph":{"__isSmartRef__":true,"id":3125}},"3125":{"varMapping":{"__isSmartRef__":true,"id":3126},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3127},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3126":{"this":{"__isSmartRef__":true,"id":3123}},"3127":{},"3128":{"morph":{"__isSmartRef__":true,"id":2869},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"3129":{"morph":{"__isSmartRef__":true,"id":2869},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"3130":{"morph":{"__isSmartRef__":true,"id":2869},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"3131":{"morph":{"__isSmartRef__":true,"id":2869},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"3132":{"morph":{"__isSmartRef__":true,"id":2869},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"3133":{"morph":{"__isSmartRef__":true,"id":2869},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"3134":{"morph":{"__isSmartRef__":true,"id":2869},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"3135":{"morph":{"__isSmartRef__":true,"id":2869},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"3136":{"adjustForNewBounds":true},"3137":{"Consumed":0,"Extra":0,"Demand":3,"Stopped":false},"3138":{"sourceObj":{"__isSmartRef__":true,"id":2869},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":2870},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":3139},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3139":{"source":{"__isSmartRef__":true,"id":2869},"target":{"__isSmartRef__":true,"id":2870}},"3140":{"Consumed":"kWs","Extra":"kWs","Demand":"kW"},"3141":{"referencedBy":{"__isSmartRef__":true,"id":3142},"references":{"__isSmartRef__":true,"id":3143}},"3142":{},"3143":{},"3144":{"migrateFrom":{"__isSmartRef__":true,"id":3145},"parsePropeties":{"__isSmartRef__":true,"id":3149},"printProperties":{"__isSmartRef__":true,"id":3153},"parseSimulationSource":{"__isSmartRef__":true,"id":3157},"simulateStep":{"__isSmartRef__":true,"id":3161},"showError":{"__isSmartRef__":true,"id":3164},"throwSimulationProblem":{"__isSmartRef__":true,"id":3168},"updateUI":{"__isSmartRef__":true,"id":3172},"resetStatus":{"__isSmartRef__":true,"id":3176},"simulateOneStep":{"__isSmartRef__":true,"id":3180},"reset":{"__isSmartRef__":true,"id":3184},"resetScriptAnalysis":{"__isSmartRef__":true,"id":3188},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":3192},"logReference":{"__isSmartRef__":true,"id":3196},"showScriptAnalysis":{"__isSmartRef__":true,"id":3200},"showReferenceTo":{"__isSmartRef__":true,"id":3204},"resetSourceHighlighting":{"__isSmartRef__":true,"id":3208},"showNameReference":{"__isSmartRef__":true,"id":3212}},"3145":{"varMapping":{"__isSmartRef__":true,"id":3146},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n \n}","funcProperties":{"__isSmartRef__":true,"id":3147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3146":{"this":{"__isSmartRef__":true,"id":2869}},"3147":{"timestamp":{"__isSmartRef__":true,"id":3148},"user":"jenslincke","tags":[]},"3148":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:59 GMT+0100 (CET)"},"3149":{"varMapping":{"__isSmartRef__":true,"id":3150},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":3151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3150":{"this":{"__isSmartRef__":true,"id":2869}},"3151":{"timestamp":{"__isSmartRef__":true,"id":3152},"user":"jenslincke","tags":[]},"3152":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:03 GMT+0100 (CET)"},"3153":{"varMapping":{"__isSmartRef__":true,"id":3154},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":3155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3154":{"this":{"__isSmartRef__":true,"id":2869}},"3155":{"timestamp":{"__isSmartRef__":true,"id":3156},"user":"jenslincke","tags":[]},"3156":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:34:48 GMT+0100 (CET)"},"3157":{"varMapping":{"__isSmartRef__":true,"id":3158},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":3159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3158":{"this":{"__isSmartRef__":true,"id":2869}},"3159":{"timestamp":{"__isSmartRef__":true,"id":3160},"user":"jenslincke","tags":[]},"3160":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:12:57 GMT+0100 (CET)"},"3161":{"varMapping":{"__isSmartRef__":true,"id":3162},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\nvar delta = $.Demand * dt\nif (this.get('HeatStorage').$.Energy > delta) {\n this.get('HeatStorage').$.Energy -= delta\n $.Consumed += delta\n // TODO consume Extra\n} else {\n $.Extra += delta \n problem(\"RoomToCold\")\n}\n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":3163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3162":{"this":{"__isSmartRef__":true,"id":2869}},"3163":{},"3164":{"varMapping":{"__isSmartRef__":true,"id":3165},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3165":{"this":{"__isSmartRef__":true,"id":2869}},"3166":{"timestamp":{"__isSmartRef__":true,"id":3167},"user":"jenslincke","tags":[]},"3167":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:11:23 GMT+0100 (CET)"},"3168":{"varMapping":{"__isSmartRef__":true,"id":3169},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":3170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3169":{"this":{"__isSmartRef__":true,"id":2869}},"3170":{"timestamp":{"__isSmartRef__":true,"id":3171},"user":"jenslincke","tags":[]},"3171":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:32:56 GMT+0100 (CET)"},"3172":{"varMapping":{"__isSmartRef__":true,"id":3173},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":3174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3173":{"this":{"__isSmartRef__":true,"id":2869}},"3174":{"timestamp":{"__isSmartRef__":true,"id":3175},"user":"jenslincke","tags":[]},"3175":{"isSerializedDate":true,"string":"Sun Jan 26 2014 15:22:09 GMT+0100 (CET)"},"3176":{"varMapping":{"__isSmartRef__":true,"id":3177},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":3178},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3177":{"this":{"__isSmartRef__":true,"id":2869}},"3178":{"timestamp":{"__isSmartRef__":true,"id":3179},"user":"jenslincke","tags":[]},"3179":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:54:04 GMT+0100 (CET)"},"3180":{"varMapping":{"__isSmartRef__":true,"id":3181},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3181":{"this":{"__isSmartRef__":true,"id":2869}},"3182":{"timestamp":{"__isSmartRef__":true,"id":3183},"user":"jenslincke","tags":[]},"3183":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:05:58 GMT+0100 (CET)"},"3184":{"varMapping":{"__isSmartRef__":true,"id":3185},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":3186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3185":{"this":{"__isSmartRef__":true,"id":2869}},"3186":{"timestamp":{"__isSmartRef__":true,"id":3187},"user":"jenslincke","tags":[]},"3187":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:35:44 GMT+0100 (CET)"},"3188":{"varMapping":{"__isSmartRef__":true,"id":3189},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":3190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3189":{"this":{"__isSmartRef__":true,"id":2869}},"3190":{"timestamp":{"__isSmartRef__":true,"id":3191},"user":"jenslincke","tags":[]},"3191":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:36:12 GMT+0100 (CET)"},"3192":{"varMapping":{"__isSmartRef__":true,"id":3193},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":3194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3193":{"this":{"__isSmartRef__":true,"id":2869}},"3194":{"timestamp":{"__isSmartRef__":true,"id":3195},"user":"jenslincke","tags":[]},"3195":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:09 GMT+0100 (CET)"},"3196":{"varMapping":{"__isSmartRef__":true,"id":3197},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":3198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3197":{"this":{"__isSmartRef__":true,"id":2869}},"3198":{"timestamp":{"__isSmartRef__":true,"id":3199},"user":"jenslincke","tags":[]},"3199":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:15 GMT+0100 (CET)"},"3200":{"varMapping":{"__isSmartRef__":true,"id":3201},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":3202},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3201":{"this":{"__isSmartRef__":true,"id":2869}},"3202":{"timestamp":{"__isSmartRef__":true,"id":3203},"user":"jenslincke","tags":[]},"3203":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:55:26 GMT+0100 (CET)"},"3204":{"varMapping":{"__isSmartRef__":true,"id":3205},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":3206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3205":{"this":{"__isSmartRef__":true,"id":2869}},"3206":{"timestamp":{"__isSmartRef__":true,"id":3207},"user":"jenslincke","tags":[]},"3207":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:25 GMT+0100 (CET)"},"3208":{"varMapping":{"__isSmartRef__":true,"id":3209},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":3210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3209":{"this":{"__isSmartRef__":true,"id":2869}},"3210":{"timestamp":{"__isSmartRef__":true,"id":3211},"user":"jenslincke","tags":[]},"3211":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:53:47 GMT+0100 (CET)"},"3212":{"varMapping":{"__isSmartRef__":true,"id":3213},"source":"function showNameReference(name) {\n\n if (this.owner.resetSourceHighlighting)\n this.owner.resetSourceHighlighting()\n\n if (name ==this.lastNameReference) {\n this.lastNameReference = null\n return\n }\n var morph = this.get(name)\n if (morph) morph.show().invoke(\"setBorderColor\", Color.yellow)\n\n this.lastNameReference = name;\n this.showReferenceTo(name)\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":3214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3213":{"this":{"__isSmartRef__":true,"id":2869}},"3214":{"timestamp":{"__isSmartRef__":true,"id":3215},"user":"jenslincke","tags":[]},"3215":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:32:17 GMT+0100 (CET)"},"3216":{"submorphs":[{"__isSmartRef__":true,"id":3217},{"__isSmartRef__":true,"id":3241},{"__isSmartRef__":true,"id":3368},{"__isSmartRef__":true,"id":3390}],"scripts":[],"id":"60DA55C6-05F2-4324-9744-242812623AC7","shape":{"__isSmartRef__":true,"id":3414},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3415},"eventHandler":{"__isSmartRef__":true,"id":3475},"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","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","5E21C7BB-A7E2-498E-858F-032DCC55A4FC","2072AEFD-449A-4F4E-B8A5-9A6C57DEBB4B","8013D903-1809-4244-AABF-4DF28A1844DB","00F3C15D-F47A-44A0-8AD1-817E6DA58255","6A96318B-D7CD-48E2-913D-29CB6897E3B7","B2263E54-BA2B-4C60-B8A1-92637C28EA08","64C5A21D-7106-40F1-A881-4B19EEF4534D","558820C1-7325-4652-A6CF-33B25DBDDE22","BCDFBF89-EC99-457D-A530-78EE6AA50603","BB62D9DB-5F5D-46D1-B13F-ECC2CFA93FFA","13370CD2-1232-4E30-9AB6-D43A7241AB79"],"partTests":{"__isSmartRef__":true,"id":3476},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":3481},{"__isSmartRef__":true,"id":3482},{"__isSmartRef__":true,"id":3483},{"__isSmartRef__":true,"id":3484},{"__isSmartRef__":true,"id":3485},{"__isSmartRef__":true,"id":3486},{"__isSmartRef__":true,"id":3487},{"__isSmartRef__":true,"id":3488}],"prevScroll":[0,0],"isEnergySimulationPart":true,"layout":{"__isSmartRef__":true,"id":3489},"$":{"__isSmartRef__":true,"id":3490},"name":"ElectricConsumer","attributeConnections":[{"__isSmartRef__":true,"id":3491}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"units":{"__isSmartRef__":true,"id":3493},"scriptAnalysis":{"__isSmartRef__":true,"id":3494},"lastNameReference":"Fuel","owner":{"__isSmartRef__":true,"id":689},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3497},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(386.6,-15.1)","_Position":"lively.pt(1114.6,343.2)"},"3217":{"submorphs":[],"scripts":[],"id":"7AD42D92-8F29-49FB-9DE8-D0FE8A433916","shape":{"__isSmartRef__":true,"id":3218},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":3219},"textChunks":[{"__isSmartRef__":true,"id":3221}],"charsReplaced":"EnergySimulationPart","lastFindLoc":20,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":3223},{"__isSmartRef__":true,"id":3224}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"HeatingSystem","eventHandler":{"__isSmartRef__":true,"id":3225},"owner":{"__isSmartRef__":true,"id":3216},"derivationIds":[7027,"63B54D01-70F2-4A5D-8586-BE6EDD15DB66","C5E299A1-9E8A-477F-985B-DDC8528C798C","34C77E49-70E0-4238-BFC7-110384901543","21EE0BC1-029B-42D1-A2CC-381C601A5F55","17C73E30-F0FE-4832-A19D-A93FAC698D7D","567146D9-37F5-4BCC-AF7F-DB5A96EE8571","A112085C-FDC7-48D5-A582-CD39CA4E9117"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":3216},"isBeingDragged":false,"draggingEnabled":false,"_Rotation":0,"_Scale":0.9999999999999997,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3226},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.1,8.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(130.4,-10.2)"},"3218":{"fill":null,"_BorderWidth":0,"__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(180.8,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"3219":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":3220},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3220":{"isSerializedDate":true,"string":"Thu Mar 07 2013 01:25:14 GMT+0100 (CET)"},"3221":{"style":{"__isSmartRef__":true,"id":3222},"chunkOwner":{"__isSmartRef__":true,"id":3217},"_id":"_31741","storedString":"ElectricConsumer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3222":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3223":{"sourceObj":{"__isSmartRef__":true,"id":3217},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3217},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3224":{"sourceObj":{"__isSmartRef__":true,"id":3217},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":3217},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3225":{"morph":{"__isSmartRef__":true,"id":3217},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3226":{"updateLabel":{"__isSmartRef__":true,"id":3227},"renameOwner":{"__isSmartRef__":true,"id":3230},"onFocus":{"__isSmartRef__":true,"id":3233}},"3227":{"varMapping":{"__isSmartRef__":true,"id":3228},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":3229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3228":{"this":{"__isSmartRef__":true,"id":3217}},"3229":{},"3230":{"varMapping":{"__isSmartRef__":true,"id":3231},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3231":{"this":{"__isSmartRef__":true,"id":3217}},"3232":{},"3233":{"varMapping":{"__isSmartRef__":true,"id":3234},"source":"function onFocus(evt) {\n $super(evt)\n if (this.owner.showScriptAnalysis) this.owner.showScriptAnalysis()\n}","funcProperties":{"__isSmartRef__":true,"id":3239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3234":{"this":{"__isSmartRef__":true,"id":3217},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3235}},"3235":{"$super":{"__isSmartRef__":true,"id":3236}},"3236":{"varMapping":{"__isSmartRef__":true,"id":3237},"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":3238},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3237":{"obj":{"__isSmartRef__":true,"id":3217},"name":"onFocus"},"3238":{},"3239":{"timestamp":{"__isSmartRef__":true,"id":3240},"user":"jenslincke","tags":[]},"3240":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:45:12 GMT+0100 (CET)"},"3241":{"submorphs":[],"scripts":[],"id":"BD3D51A1-405B-4C19-A78A-2E075E58B681","shape":{"__isSmartRef__":true,"id":3242},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Monaco,monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"SimulationText","partsBinMetaInfo":{"__isSmartRef__":true,"id":3243},"textChunks":[{"__isSmartRef__":true,"id":3259},{"__isSmartRef__":true,"id":3261},{"__isSmartRef__":true,"id":3263},{"__isSmartRef__":true,"id":3265},{"__isSmartRef__":true,"id":3267},{"__isSmartRef__":true,"id":3269},{"__isSmartRef__":true,"id":3271},{"__isSmartRef__":true,"id":3273},{"__isSmartRef__":true,"id":3275},{"__isSmartRef__":true,"id":3277},{"__isSmartRef__":true,"id":3279},{"__isSmartRef__":true,"id":3281},{"__isSmartRef__":true,"id":3283},{"__isSmartRef__":true,"id":3285},{"__isSmartRef__":true,"id":3287},{"__isSmartRef__":true,"id":3289},{"__isSmartRef__":true,"id":3291},{"__isSmartRef__":true,"id":3293},{"__isSmartRef__":true,"id":3295},{"__isSmartRef__":true,"id":3297},{"__isSmartRef__":true,"id":3299},{"__isSmartRef__":true,"id":3301},{"__isSmartRef__":true,"id":3303}],"charsReplaced":"\"","lastFindLoc":187,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3305},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","1BC17AC6-65D2-4DD8-906E-C419087FC3F7","6809C3A5-DCFA-4E76-9397-E4C5BA4A34C7","C528D4FD-5331-4D9A-9352-1088CF72DDDA","A3CD61D5-7936-402F-8EBA-3E2456AB5E0C","39BE0850-B4DE-4E8D-9EC7-7A6A5059775A","2035C52E-14AD-4493-A166-F79162AD66FB","D0F7C47B-437F-457E-929F-EA18E7790FA7","22F56005-4177-492C-8AAF-FF810C44931A","AAC02353-3C4E-47A1-8120-60A2F258771E","9FBBDAD3-5AE3-4342-A9DE-CF7593957E51","88B5A45D-F0EA-4372-952F-E5B93250C15E","782DCC77-008C-4653-BD28-DA4E24401AF9","D8C320FE-7916-4301-99FC-57DF6F7818E8","08F797B1-9E4E-44A7-82A8-94AD5055DD06","4A08CEEF-4759-4921-AF85-D276309CF091"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"magnets":[{"__isSmartRef__":true,"id":3306},{"__isSmartRef__":true,"id":3307},{"__isSmartRef__":true,"id":3308},{"__isSmartRef__":true,"id":3309},{"__isSmartRef__":true,"id":3310},{"__isSmartRef__":true,"id":3311},{"__isSmartRef__":true,"id":3312},{"__isSmartRef__":true,"id":3313}],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":3314},"draggingEnabled":false,"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":3216},"savedTextString":"$.Demand += (Math.random() - 0.3) * 0.06 * dt\nvar delta = $.Demand * dt\nif (#Battery.$.Energy > delta) {\n #Battery.$.Energy -= delta\n $.Consumed += delta\n} else {\n $.Extra += delta\n problem(\"EngeryToLow\")\n}\n","attributeConnections":[{"__isSmartRef__":true,"id":3315},{"__isSmartRef__":true,"id":3317}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":6,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"_Rotation":0,"_Scale":1,"previousSelection":[113,113],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"$.Demand += (Math.random() - 0.5) * 0.03 * dt\nvar delta = $.Demand * dt\nif (#Battery.$.Energy > delta) {\n #Battery.$.Energy -= delta\n $.Consumed += delta\n} else {\n $.Extra += delta\n problem(\"EngeryToLow\")\n} \n","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3319},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"3242":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_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(396.1,147.2)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3243":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3244},{"__isSmartRef__":true,"id":3246},{"__isSmartRef__":true,"id":3248},{"__isSmartRef__":true,"id":3250},{"__isSmartRef__":true,"id":3252},{"__isSmartRef__":true,"id":3254},{"__isSmartRef__":true,"id":3256}],"lastModifiedDate":{"__isSmartRef__":true,"id":3258},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3244":{"date":{"__isSmartRef__":true,"id":3245},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"3245":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"3246":{"date":{"__isSmartRef__":true,"id":3247},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"3247":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"3248":{"date":{"__isSmartRef__":true,"id":3249},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3249":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"3250":{"date":{"__isSmartRef__":true,"id":3251},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3251":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"3252":{"date":{"__isSmartRef__":true,"id":3253},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"3253":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"3254":{"date":{"__isSmartRef__":true,"id":3255},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"3255":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"3256":{"date":{"__isSmartRef__":true,"id":3257},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"3257":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"3258":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"3259":{"style":{"__isSmartRef__":true,"id":3260},"chunkOwner":{"__isSmartRef__":true,"id":3241},"_id":"_16","storedString":"$.Demand += (","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3260":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3261":{"_id":"_130","style":{"__isSmartRef__":true,"id":3262},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":"Math","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3262":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(255,20,147)"},"3263":{"_id":"_131","style":{"__isSmartRef__":true,"id":3264},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":".random() - ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3264":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3265":{"_id":"_132","style":{"__isSmartRef__":true,"id":3266},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":"0.5","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3266":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3267":{"_id":"_133","style":{"__isSmartRef__":true,"id":3268},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":") * ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3268":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3269":{"_id":"_134","style":{"__isSmartRef__":true,"id":3270},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":"0.03","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3270":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3271":{"_id":"_135","style":{"__isSmartRef__":true,"id":3272},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":" * dt\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3272":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3273":{"_id":"_136","style":{"__isSmartRef__":true,"id":3274},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3274":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"3275":{"_id":"_137","style":{"__isSmartRef__":true,"id":3276},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":" delta = $.Demand * dt\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3276":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3277":{"_id":"_138","style":{"__isSmartRef__":true,"id":3278},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3278":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"3279":{"_id":"_139","style":{"__isSmartRef__":true,"id":3280},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":" (#Battery.$.Energy > delta) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3280":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3281":{"_id":"_140","style":{"__isSmartRef__":true,"id":3282},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3282":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"3283":{"_id":"_141","style":{"__isSmartRef__":true,"id":3284},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":"\n #Battery.$.Energy -= delta\n $.Consumed += delta\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3284":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3285":{"_id":"_142","style":{"__isSmartRef__":true,"id":3286},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3286":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"3287":{"_id":"_143","style":{"__isSmartRef__":true,"id":3288},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3288":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3289":{"_id":"_144","style":{"__isSmartRef__":true,"id":3290},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":"else","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3290":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"3291":{"_id":"_145","style":{"__isSmartRef__":true,"id":3292},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3292":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3293":{"_id":"_146","style":{"__isSmartRef__":true,"id":3294},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3294":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"3295":{"_id":"_147","style":{"__isSmartRef__":true,"id":3296},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":"\n $.Extra += delta\n problem(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3296":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3297":{"_id":"_148","style":{"__isSmartRef__":true,"id":3298},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":"\"EngeryToLow\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3298":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,128)"},"3299":{"_id":"_149","style":{"__isSmartRef__":true,"id":3300},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":")\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3300":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3301":{"_id":"_150","style":{"__isSmartRef__":true,"id":3302},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3302":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"3303":{"_id":"_151","style":{"__isSmartRef__":true,"id":3304},"chunkOwner":{"__isSmartRef__":true,"id":3241},"storedString":" \n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3304":{"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3305":{"morph":{"__isSmartRef__":true,"id":3241},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3306":{"morph":{"__isSmartRef__":true,"id":3241},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"3307":{"morph":{"__isSmartRef__":true,"id":3241},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"3308":{"morph":{"__isSmartRef__":true,"id":3241},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"3309":{"morph":{"__isSmartRef__":true,"id":3241},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"3310":{"morph":{"__isSmartRef__":true,"id":3241},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"3311":{"morph":{"__isSmartRef__":true,"id":3241},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"3312":{"morph":{"__isSmartRef__":true,"id":3241},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"3313":{"morph":{"__isSmartRef__":true,"id":3241},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"3314":{"resizeWidth":true,"resizeHeight":true},"3315":{"sourceObj":{"__isSmartRef__":true,"id":3241},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":3216},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":3316},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3316":{"source":{"__isSmartRef__":true,"id":3241},"target":{"__isSmartRef__":true,"id":3216}},"3317":{"sourceObj":{"__isSmartRef__":true,"id":3241},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":3241},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":3318},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3318":{"source":{"__isSmartRef__":true,"id":3241},"target":{"__isSmartRef__":true,"id":3241}},"3319":{"boundEval":{"__isSmartRef__":true,"id":3320},"getDoitContext":{"__isSmartRef__":true,"id":3328},"installLayers":{"__isSmartRef__":true,"id":3336},"onLoad":{"__isSmartRef__":true,"id":3340},"highligtScriptNames":{"__isSmartRef__":true,"id":3344},"getAutoCompletion":{"__isSmartRef__":true,"id":3348},"reset":{"__isSmartRef__":true,"id":3356},"getLastWordRange":{"__isSmartRef__":true,"id":3360}},"3320":{"varMapping":{"__isSmartRef__":true,"id":3321},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3326},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3321":{"this":{"__isSmartRef__":true,"id":3241},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3322}},"3322":{"$super":{"__isSmartRef__":true,"id":3323}},"3323":{"varMapping":{"__isSmartRef__":true,"id":3324},"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":3325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3324":{"obj":{"__isSmartRef__":true,"id":3241},"name":"boundEval"},"3325":{},"3326":{"timestamp":{"__isSmartRef__":true,"id":3327},"user":"jenslincke","tags":[]},"3327":{"isSerializedDate":true,"string":"Tue Jan 28 2014 11:28:47 GMT+0100 (CET)"},"3328":{"varMapping":{"__isSmartRef__":true,"id":3329},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":3334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3329":{"this":{"__isSmartRef__":true,"id":3241},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3330}},"3330":{"$super":{"__isSmartRef__":true,"id":3331}},"3331":{"varMapping":{"__isSmartRef__":true,"id":3332},"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":3333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3332":{"obj":{"__isSmartRef__":true,"id":3241},"name":"getDoitContext"},"3333":{},"3334":{"timestamp":{"__isSmartRef__":true,"id":3335},"user":"jenslincke","tags":[]},"3335":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:42:09 GMT+0100 (CET)"},"3336":{"varMapping":{"__isSmartRef__":true,"id":3337},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":3338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3337":{"this":{"__isSmartRef__":true,"id":3241}},"3338":{"timestamp":{"__isSmartRef__":true,"id":3339},"user":"jenslincke","tags":[]},"3339":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:44 GMT+0100 (CET)"},"3340":{"varMapping":{"__isSmartRef__":true,"id":3341},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":3342},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3341":{"this":{"__isSmartRef__":true,"id":3241}},"3342":{"timestamp":{"__isSmartRef__":true,"id":3343},"user":"jenslincke","tags":[]},"3343":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:45 GMT+0100 (CET)"},"3344":{"varMapping":{"__isSmartRef__":true,"id":3345},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.showNameReference(\"'+name+'\")',\n context: this.owner}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":3346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3345":{"this":{"__isSmartRef__":true,"id":3241}},"3346":{"timestamp":{"__isSmartRef__":true,"id":3347},"user":"jenslincke","tags":[]},"3347":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:25:07 GMT+0100 (CET)"},"3348":{"varMapping":{"__isSmartRef__":true,"id":3349},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":3354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3349":{"this":{"__isSmartRef__":true,"id":3241},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3350}},"3350":{"$super":{"__isSmartRef__":true,"id":3351}},"3351":{"varMapping":{"__isSmartRef__":true,"id":3352},"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":3353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3352":{"obj":{"__isSmartRef__":true,"id":3241},"name":"getAutoCompletion"},"3353":{},"3354":{"timestamp":{"__isSmartRef__":true,"id":3355},"user":"jenslincke","tags":[]},"3355":{"isSerializedDate":true,"string":"Wed Jan 29 2014 00:33:17 GMT+0100 (CET)"},"3356":{"varMapping":{"__isSmartRef__":true,"id":3357},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":3358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3357":{"this":{"__isSmartRef__":true,"id":3241}},"3358":{"timestamp":{"__isSmartRef__":true,"id":3359},"user":"jenslincke","tags":[]},"3359":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:58:01 GMT+0100 (CET)"},"3360":{"varMapping":{"__isSmartRef__":true,"id":3361},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3361":{"this":{"__isSmartRef__":true,"id":3241},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3362}},"3362":{"$super":{"__isSmartRef__":true,"id":3363}},"3363":{"varMapping":{"__isSmartRef__":true,"id":3364},"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":3365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3364":{"obj":{"__isSmartRef__":true,"id":3241},"name":"getLastWordRange"},"3365":{},"3366":{"timestamp":{"__isSmartRef__":true,"id":3367},"user":"jenslincke","tags":[]},"3367":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:59:58 GMT+0100 (CET)"},"3368":{"submorphs":[],"scripts":[],"id":"C1532509-881D-4034-9027-486453A61FD5","shape":{"__isSmartRef__":true,"id":3369},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":3370},"textChunks":[{"__isSmartRef__":true,"id":3386}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3388},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","DDEC9403-6C57-4923-ABE3-1737E6362120","07D195A1-33DA-4A4D-B3EA-B51C03BACF39"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":3216},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":3389},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,232.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"3369":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"_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(388.2,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3370":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3371},{"__isSmartRef__":true,"id":3373},{"__isSmartRef__":true,"id":3375},{"__isSmartRef__":true,"id":3377},{"__isSmartRef__":true,"id":3379},{"__isSmartRef__":true,"id":3381},{"__isSmartRef__":true,"id":3383}],"lastModifiedDate":{"__isSmartRef__":true,"id":3385},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3371":{"date":{"__isSmartRef__":true,"id":3372},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"3372":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"3373":{"date":{"__isSmartRef__":true,"id":3374},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"3374":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"3375":{"date":{"__isSmartRef__":true,"id":3376},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3376":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"3377":{"date":{"__isSmartRef__":true,"id":3378},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3378":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"3379":{"date":{"__isSmartRef__":true,"id":3380},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"3380":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"3381":{"date":{"__isSmartRef__":true,"id":3382},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"3382":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"3383":{"date":{"__isSmartRef__":true,"id":3384},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"3384":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"3385":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"3386":{"style":{"__isSmartRef__":true,"id":3387},"chunkOwner":{"__isSmartRef__":true,"id":3368},"_id":"_2924","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3387":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3388":{"morph":{"__isSmartRef__":true,"id":3368},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3389":{"moveVertical":true,"resizeWidth":true},"3390":{"submorphs":[],"scripts":[],"id":"0C245842-A619-48B8-862A-631C99830CF5","shape":{"__isSmartRef__":true,"id":3391},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":3392},"textChunks":[{"__isSmartRef__":true,"id":3408}],"charsReplaced":"false","lastFindLoc":28,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3410},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","1A5DC502-21A9-4B18-8878-654818F4C282","88E27517-6524-49AD-AF69-936DADF77DDD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":3216},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":3411}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 10\nMax: 5 [kW]","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":3413},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"3391":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(381.7,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3392":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3393},{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":3397},{"__isSmartRef__":true,"id":3399},{"__isSmartRef__":true,"id":3401},{"__isSmartRef__":true,"id":3403},{"__isSmartRef__":true,"id":3405}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":3407},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3393":{"date":{"__isSmartRef__":true,"id":3394},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"3394":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"3395":{"date":{"__isSmartRef__":true,"id":3396},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"3396":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"3397":{"date":{"__isSmartRef__":true,"id":3398},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3398":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"3399":{"date":{"__isSmartRef__":true,"id":3400},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3400":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"3401":{"date":{"__isSmartRef__":true,"id":3402},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"3402":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"3403":{"date":{"__isSmartRef__":true,"id":3404},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"3404":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"3405":{"date":{"__isSmartRef__":true,"id":3406},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"3406":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"3407":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"3408":{"style":{"__isSmartRef__":true,"id":3409},"chunkOwner":{"__isSmartRef__":true,"id":3390},"_id":"_2003","storedString":"Consumed: 0\nDemand: 1.5\nExtra: 0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3409":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3410":{"morph":{"__isSmartRef__":true,"id":3390},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3411":{"sourceObj":{"__isSmartRef__":true,"id":3390},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":3216},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":3412},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3412":{"source":{"__isSmartRef__":true,"id":3390},"target":{"__isSmartRef__":true,"id":3216}},"3413":{"resizeWidth":true},"3414":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(410.0,250.0)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"3415":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":3416},{"__isSmartRef__":true,"id":3418},{"__isSmartRef__":true,"id":3420},{"__isSmartRef__":true,"id":3422},{"__isSmartRef__":true,"id":3424},{"__isSmartRef__":true,"id":3426},{"__isSmartRef__":true,"id":3428},{"__isSmartRef__":true,"id":3430},{"__isSmartRef__":true,"id":3432},{"__isSmartRef__":true,"id":3434},{"__isSmartRef__":true,"id":3436},{"__isSmartRef__":true,"id":3438},{"__isSmartRef__":true,"id":3440},{"__isSmartRef__":true,"id":3442},{"__isSmartRef__":true,"id":3444},{"__isSmartRef__":true,"id":3446},{"__isSmartRef__":true,"id":3448},{"__isSmartRef__":true,"id":3450},{"__isSmartRef__":true,"id":3452},{"__isSmartRef__":true,"id":3454},{"__isSmartRef__":true,"id":3456},{"__isSmartRef__":true,"id":3458},{"__isSmartRef__":true,"id":3460},{"__isSmartRef__":true,"id":3462},{"__isSmartRef__":true,"id":3464},{"__isSmartRef__":true,"id":3466},{"__isSmartRef__":true,"id":3468},{"__isSmartRef__":true,"id":3470},{"__isSmartRef__":true,"id":3472}],"lastModifiedDate":{"__isSmartRef__":true,"id":3474},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3416":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":3417}},"3417":{"isSerializedDate":true,"string":"Fri Jun 21 2013 00:16:24 GMT+0200 (CEST)"},"3418":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":3419}},"3419":{"isSerializedDate":true,"string":"Thu May 30 2013 09:18:06 GMT+0200 (CEST)"},"3420":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":3421}},"3421":{"isSerializedDate":true,"string":"Wed Jan 23 2013 12:57:18 GMT+0100 (CET)"},"3422":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":3423}},"3423":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"3424":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":3425}},"3425":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"3426":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":3427}},"3427":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"3428":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":3429}},"3429":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"3430":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":3431}},"3431":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"3432":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":3433}},"3433":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"3434":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":3435}},"3435":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:35:08 GMT+0200 (CEST)"},"3436":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":3437}},"3437":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:35:51 GMT+0100 (CET)"},"3438":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":3439}},"3439":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:42:31 GMT+0100 (CET)"},"3440":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":3441}},"3441":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:47:05 GMT+0100 (CET)"},"3442":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":3443}},"3443":{"isSerializedDate":true,"string":"Thu May 30 2013 00:36:50 GMT+0200 (CEST)"},"3444":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":3445}},"3445":{"isSerializedDate":true,"string":"Tue Jun 18 2013 20:49:27 GMT+0200 (CEST)"},"3446":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":3447}},"3447":{"isSerializedDate":true,"string":"Tue Jul 30 2013 08:20:51 GMT+0200 (CEST)"},"3448":{"date":{"__isSmartRef__":true,"id":3449},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"3449":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:02:28 GMT+0100 (CET)"},"3450":{"date":{"__isSmartRef__":true,"id":3451},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"3451":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:10:08 GMT+0100 (CET)"},"3452":{"date":{"__isSmartRef__":true,"id":3453},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"3453":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:24:55 GMT+0100 (CET)"},"3454":{"date":{"__isSmartRef__":true,"id":3455},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"3455":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:29:33 GMT+0100 (CET)"},"3456":{"date":{"__isSmartRef__":true,"id":3457},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"3457":{"isSerializedDate":true,"string":"Wed Jan 22 2014 21:07:26 GMT+0100 (CET)"},"3458":{"date":{"__isSmartRef__":true,"id":3459},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"3459":{"isSerializedDate":true,"string":"Wed Jan 22 2014 22:23:13 GMT+0100 (CET)"},"3460":{"date":{"__isSmartRef__":true,"id":3461},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"3461":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:58:48 GMT+0100 (CET)"},"3462":{"date":{"__isSmartRef__":true,"id":3463},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"3463":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:59:27 GMT+0100 (CET)"},"3464":{"date":{"__isSmartRef__":true,"id":3465},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"3465":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:03:44 GMT+0100 (CET)"},"3466":{"date":{"__isSmartRef__":true,"id":3467},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"3467":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:24:12 GMT+0100 (CET)"},"3468":{"date":{"__isSmartRef__":true,"id":3469},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"3469":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:26:15 GMT+0100 (CET)"},"3470":{"date":{"__isSmartRef__":true,"id":3471},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"3471":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:35:38 GMT+0100 (CET)"},"3472":{"date":{"__isSmartRef__":true,"id":3473},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"3473":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:54:51 GMT+0100 (CET)"},"3474":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:15 GMT+0100 (CET)"},"3475":{"morph":{"__isSmartRef__":true,"id":3216},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3476":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3477}},"3477":{"test01IsMorph":{"__isSmartRef__":true,"id":3478}},"3478":{"varMapping":{"__isSmartRef__":true,"id":3479},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3480},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3479":{"this":{"__isSmartRef__":true,"id":3476}},"3480":{},"3481":{"morph":{"__isSmartRef__":true,"id":3216},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"3482":{"morph":{"__isSmartRef__":true,"id":3216},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"3483":{"morph":{"__isSmartRef__":true,"id":3216},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"3484":{"morph":{"__isSmartRef__":true,"id":3216},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"3485":{"morph":{"__isSmartRef__":true,"id":3216},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"3486":{"morph":{"__isSmartRef__":true,"id":3216},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"3487":{"morph":{"__isSmartRef__":true,"id":3216},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"3488":{"morph":{"__isSmartRef__":true,"id":3216},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"3489":{"adjustForNewBounds":true},"3490":{"Consumed":0,"Demand":1.5,"Extra":0},"3491":{"sourceObj":{"__isSmartRef__":true,"id":3216},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":3217},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":3492},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3492":{"source":{"__isSmartRef__":true,"id":3216},"target":{"__isSmartRef__":true,"id":3217}},"3493":{},"3494":{"referencedBy":{"__isSmartRef__":true,"id":3495},"references":{"__isSmartRef__":true,"id":3496}},"3495":{},"3496":{},"3497":{"migrateFrom":{"__isSmartRef__":true,"id":3498},"parsePropeties":{"__isSmartRef__":true,"id":3502},"printProperties":{"__isSmartRef__":true,"id":3506},"parseSimulationSource":{"__isSmartRef__":true,"id":3510},"simulateStep":{"__isSmartRef__":true,"id":3514},"showError":{"__isSmartRef__":true,"id":3517},"throwSimulationProblem":{"__isSmartRef__":true,"id":3521},"updateUI":{"__isSmartRef__":true,"id":3525},"resetStatus":{"__isSmartRef__":true,"id":3529},"simulateOneStep":{"__isSmartRef__":true,"id":3533},"reset":{"__isSmartRef__":true,"id":3537},"resetScriptAnalysis":{"__isSmartRef__":true,"id":3541},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":3545},"logReference":{"__isSmartRef__":true,"id":3549},"showScriptAnalysis":{"__isSmartRef__":true,"id":3553},"showReferenceTo":{"__isSmartRef__":true,"id":3557},"resetSourceHighlighting":{"__isSmartRef__":true,"id":3561},"showNameReference":{"__isSmartRef__":true,"id":3565}},"3498":{"varMapping":{"__isSmartRef__":true,"id":3499},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n \n}","funcProperties":{"__isSmartRef__":true,"id":3500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3499":{"this":{"__isSmartRef__":true,"id":3216}},"3500":{"timestamp":{"__isSmartRef__":true,"id":3501},"user":"jenslincke","tags":[]},"3501":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:59 GMT+0100 (CET)"},"3502":{"varMapping":{"__isSmartRef__":true,"id":3503},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":3504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3503":{"this":{"__isSmartRef__":true,"id":3216}},"3504":{"timestamp":{"__isSmartRef__":true,"id":3505},"user":"jenslincke","tags":[]},"3505":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:03 GMT+0100 (CET)"},"3506":{"varMapping":{"__isSmartRef__":true,"id":3507},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":3508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3507":{"this":{"__isSmartRef__":true,"id":3216}},"3508":{"timestamp":{"__isSmartRef__":true,"id":3509},"user":"jenslincke","tags":[]},"3509":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:34:48 GMT+0100 (CET)"},"3510":{"varMapping":{"__isSmartRef__":true,"id":3511},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":3512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3511":{"this":{"__isSmartRef__":true,"id":3216}},"3512":{"timestamp":{"__isSmartRef__":true,"id":3513},"user":"jenslincke","tags":[]},"3513":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:12:57 GMT+0100 (CET)"},"3514":{"varMapping":{"__isSmartRef__":true,"id":3515},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\n$.Demand += (Math.random() - 0.5) * 0.03 * dt\nvar delta = $.Demand * dt\nif (this.get('Battery').$.Energy > delta) {\n this.get('Battery').$.Energy -= delta\n $.Consumed += delta\n} else {\n $.Extra += delta\n problem(\"EngeryToLow\")\n} \n\n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":3516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3515":{"this":{"__isSmartRef__":true,"id":3216}},"3516":{},"3517":{"varMapping":{"__isSmartRef__":true,"id":3518},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3518":{"this":{"__isSmartRef__":true,"id":3216}},"3519":{"timestamp":{"__isSmartRef__":true,"id":3520},"user":"jenslincke","tags":[]},"3520":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:11:23 GMT+0100 (CET)"},"3521":{"varMapping":{"__isSmartRef__":true,"id":3522},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":3523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3522":{"this":{"__isSmartRef__":true,"id":3216}},"3523":{"timestamp":{"__isSmartRef__":true,"id":3524},"user":"jenslincke","tags":[]},"3524":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:32:56 GMT+0100 (CET)"},"3525":{"varMapping":{"__isSmartRef__":true,"id":3526},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":3527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3526":{"this":{"__isSmartRef__":true,"id":3216}},"3527":{"timestamp":{"__isSmartRef__":true,"id":3528},"user":"jenslincke","tags":[]},"3528":{"isSerializedDate":true,"string":"Sun Jan 26 2014 15:22:09 GMT+0100 (CET)"},"3529":{"varMapping":{"__isSmartRef__":true,"id":3530},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":3531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3530":{"this":{"__isSmartRef__":true,"id":3216}},"3531":{"timestamp":{"__isSmartRef__":true,"id":3532},"user":"jenslincke","tags":[]},"3532":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:54:04 GMT+0100 (CET)"},"3533":{"varMapping":{"__isSmartRef__":true,"id":3534},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3535},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3534":{"this":{"__isSmartRef__":true,"id":3216}},"3535":{"timestamp":{"__isSmartRef__":true,"id":3536},"user":"jenslincke","tags":[]},"3536":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:05:58 GMT+0100 (CET)"},"3537":{"varMapping":{"__isSmartRef__":true,"id":3538},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":3539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3538":{"this":{"__isSmartRef__":true,"id":3216}},"3539":{"timestamp":{"__isSmartRef__":true,"id":3540},"user":"jenslincke","tags":[]},"3540":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:35:44 GMT+0100 (CET)"},"3541":{"varMapping":{"__isSmartRef__":true,"id":3542},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":3543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3542":{"this":{"__isSmartRef__":true,"id":3216}},"3543":{"timestamp":{"__isSmartRef__":true,"id":3544},"user":"jenslincke","tags":[]},"3544":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:36:12 GMT+0100 (CET)"},"3545":{"varMapping":{"__isSmartRef__":true,"id":3546},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":3547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3546":{"this":{"__isSmartRef__":true,"id":3216}},"3547":{"timestamp":{"__isSmartRef__":true,"id":3548},"user":"jenslincke","tags":[]},"3548":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:09 GMT+0100 (CET)"},"3549":{"varMapping":{"__isSmartRef__":true,"id":3550},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":3551},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3550":{"this":{"__isSmartRef__":true,"id":3216}},"3551":{"timestamp":{"__isSmartRef__":true,"id":3552},"user":"jenslincke","tags":[]},"3552":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:15 GMT+0100 (CET)"},"3553":{"varMapping":{"__isSmartRef__":true,"id":3554},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":3555},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3554":{"this":{"__isSmartRef__":true,"id":3216}},"3555":{"timestamp":{"__isSmartRef__":true,"id":3556},"user":"jenslincke","tags":[]},"3556":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:55:26 GMT+0100 (CET)"},"3557":{"varMapping":{"__isSmartRef__":true,"id":3558},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":3559},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3558":{"this":{"__isSmartRef__":true,"id":3216}},"3559":{"timestamp":{"__isSmartRef__":true,"id":3560},"user":"jenslincke","tags":[]},"3560":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:25 GMT+0100 (CET)"},"3561":{"varMapping":{"__isSmartRef__":true,"id":3562},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":3563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3562":{"this":{"__isSmartRef__":true,"id":3216}},"3563":{"timestamp":{"__isSmartRef__":true,"id":3564},"user":"jenslincke","tags":[]},"3564":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:53:47 GMT+0100 (CET)"},"3565":{"varMapping":{"__isSmartRef__":true,"id":3566},"source":"function showNameReference(name) {\n\n if (this.owner.resetSourceHighlighting)\n this.owner.resetSourceHighlighting()\n\n if (name ==this.lastNameReference) {\n this.lastNameReference = null\n return\n }\n var morph = this.get(name)\n if (morph) morph.show().invoke(\"setBorderColor\", Color.yellow)\n\n this.lastNameReference = name;\n this.showReferenceTo(name)\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":3567},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3566":{"this":{"__isSmartRef__":true,"id":3216}},"3567":{"timestamp":{"__isSmartRef__":true,"id":3568},"user":"jenslincke","tags":[]},"3568":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:32:17 GMT+0100 (CET)"},"3569":{"submorphs":[{"__isSmartRef__":true,"id":3570},{"__isSmartRef__":true,"id":3594},{"__isSmartRef__":true,"id":3693},{"__isSmartRef__":true,"id":3715}],"scripts":[],"id":"E1C5E1F2-121C-45CB-BD5F-D7BC9BD26667","shape":{"__isSmartRef__":true,"id":3739},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3740},"eventHandler":{"__isSmartRef__":true,"id":3800},"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","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","5E21C7BB-A7E2-498E-858F-032DCC55A4FC","2072AEFD-449A-4F4E-B8A5-9A6C57DEBB4B","8013D903-1809-4244-AABF-4DF28A1844DB","00F3C15D-F47A-44A0-8AD1-817E6DA58255","6A96318B-D7CD-48E2-913D-29CB6897E3B7","B2263E54-BA2B-4C60-B8A1-92637C28EA08","64C5A21D-7106-40F1-A881-4B19EEF4534D","558820C1-7325-4652-A6CF-33B25DBDDE22","BCDFBF89-EC99-457D-A530-78EE6AA50603","BB62D9DB-5F5D-46D1-B13F-ECC2CFA93FFA","13370CD2-1232-4E30-9AB6-D43A7241AB79"],"partTests":{"__isSmartRef__":true,"id":3801},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":3806},{"__isSmartRef__":true,"id":3807},{"__isSmartRef__":true,"id":3808},{"__isSmartRef__":true,"id":3809},{"__isSmartRef__":true,"id":3810},{"__isSmartRef__":true,"id":3811},{"__isSmartRef__":true,"id":3812},{"__isSmartRef__":true,"id":3813}],"prevScroll":[0,0],"isEnergySimulationPart":true,"layout":{"__isSmartRef__":true,"id":3814},"$":{"__isSmartRef__":true,"id":3815},"name":"Fuel","attributeConnections":[{"__isSmartRef__":true,"id":3816}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"units":{"__isSmartRef__":true,"id":3818},"scriptAnalysis":{"__isSmartRef__":true,"id":3819},"lastNameReference":"Fuel","owner":{"__isSmartRef__":true,"id":689},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3822},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(386.6,-15.1)","_Position":"lively.pt(11.4,290.0)"},"3570":{"submorphs":[],"scripts":[],"id":"3F09C942-0538-43EB-9818-6A9B41A23650","shape":{"__isSmartRef__":true,"id":3571},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":3572},"textChunks":[{"__isSmartRef__":true,"id":3574}],"charsReplaced":"EnergySimulationPart","lastFindLoc":20,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":3576},{"__isSmartRef__":true,"id":3577}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"HeatingSystem","eventHandler":{"__isSmartRef__":true,"id":3578},"owner":{"__isSmartRef__":true,"id":3569},"derivationIds":[7027,"63B54D01-70F2-4A5D-8586-BE6EDD15DB66","C5E299A1-9E8A-477F-985B-DDC8528C798C","34C77E49-70E0-4238-BFC7-110384901543","21EE0BC1-029B-42D1-A2CC-381C601A5F55","17C73E30-F0FE-4832-A19D-A93FAC698D7D","567146D9-37F5-4BCC-AF7F-DB5A96EE8571","A112085C-FDC7-48D5-A582-CD39CA4E9117"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":3569},"isBeingDragged":false,"draggingEnabled":false,"_Rotation":0,"_Scale":0.9999999999999997,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3579},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.1,8.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(130.4,-10.2)"},"3571":{"fill":null,"_BorderWidth":0,"__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(180.8,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"3572":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":3573},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3573":{"isSerializedDate":true,"string":"Thu Mar 07 2013 01:25:14 GMT+0100 (CET)"},"3574":{"style":{"__isSmartRef__":true,"id":3575},"chunkOwner":{"__isSmartRef__":true,"id":3570},"_id":"_31681","storedString":"Fuel","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3575":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3576":{"sourceObj":{"__isSmartRef__":true,"id":3570},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3570},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3577":{"sourceObj":{"__isSmartRef__":true,"id":3570},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":3570},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3578":{"morph":{"__isSmartRef__":true,"id":3570},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3579":{"updateLabel":{"__isSmartRef__":true,"id":3580},"renameOwner":{"__isSmartRef__":true,"id":3583},"onFocus":{"__isSmartRef__":true,"id":3586}},"3580":{"varMapping":{"__isSmartRef__":true,"id":3581},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":3582},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3581":{"this":{"__isSmartRef__":true,"id":3570}},"3582":{},"3583":{"varMapping":{"__isSmartRef__":true,"id":3584},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3585},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3584":{"this":{"__isSmartRef__":true,"id":3570}},"3585":{},"3586":{"varMapping":{"__isSmartRef__":true,"id":3587},"source":"function onFocus(evt) {\n $super(evt)\n if (this.owner.showScriptAnalysis) this.owner.showScriptAnalysis()\n}","funcProperties":{"__isSmartRef__":true,"id":3592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3587":{"this":{"__isSmartRef__":true,"id":3570},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3588}},"3588":{"$super":{"__isSmartRef__":true,"id":3589}},"3589":{"varMapping":{"__isSmartRef__":true,"id":3590},"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":3591},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3590":{"obj":{"__isSmartRef__":true,"id":3570},"name":"onFocus"},"3591":{},"3592":{"timestamp":{"__isSmartRef__":true,"id":3593},"user":"jenslincke","tags":[]},"3593":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:45:12 GMT+0100 (CET)"},"3594":{"submorphs":[],"scripts":[],"id":"1DBAE7FD-6CE9-4772-86D5-8A663F1D9D95","shape":{"__isSmartRef__":true,"id":3595},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Monaco,monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"SimulationText","partsBinMetaInfo":{"__isSmartRef__":true,"id":3596},"textChunks":[{"__isSmartRef__":true,"id":3612},{"__isSmartRef__":true,"id":3614},{"__isSmartRef__":true,"id":3616},{"__isSmartRef__":true,"id":3618},{"__isSmartRef__":true,"id":3620},{"__isSmartRef__":true,"id":3622},{"__isSmartRef__":true,"id":3624},{"__isSmartRef__":true,"id":3626},{"__isSmartRef__":true,"id":3628}],"charsReplaced":" ","lastFindLoc":409,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3630},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","1BC17AC6-65D2-4DD8-906E-C419087FC3F7","6809C3A5-DCFA-4E76-9397-E4C5BA4A34C7","C528D4FD-5331-4D9A-9352-1088CF72DDDA","A3CD61D5-7936-402F-8EBA-3E2456AB5E0C","39BE0850-B4DE-4E8D-9EC7-7A6A5059775A","2035C52E-14AD-4493-A166-F79162AD66FB","D0F7C47B-437F-457E-929F-EA18E7790FA7","22F56005-4177-492C-8AAF-FF810C44931A","AAC02353-3C4E-47A1-8120-60A2F258771E","9FBBDAD3-5AE3-4342-A9DE-CF7593957E51","88B5A45D-F0EA-4372-952F-E5B93250C15E","782DCC77-008C-4653-BD28-DA4E24401AF9","D8C320FE-7916-4301-99FC-57DF6F7818E8","08F797B1-9E4E-44A7-82A8-94AD5055DD06","4A08CEEF-4759-4921-AF85-D276309CF091"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"magnets":[{"__isSmartRef__":true,"id":3631},{"__isSmartRef__":true,"id":3632},{"__isSmartRef__":true,"id":3633},{"__isSmartRef__":true,"id":3634},{"__isSmartRef__":true,"id":3635},{"__isSmartRef__":true,"id":3636},{"__isSmartRef__":true,"id":3637},{"__isSmartRef__":true,"id":3638}],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":3639},"draggingEnabled":false,"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":3569},"savedTextString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas\n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}","attributeConnections":[{"__isSmartRef__":true,"id":3640},{"__isSmartRef__":true,"id":3642}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":5,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"previousSelection":[241,315],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"if ($.Gas < 0) {\n problem(\"GasEmpty\")\n}","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3644},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"3595":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_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(199.7,60.9)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3596":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3597},{"__isSmartRef__":true,"id":3599},{"__isSmartRef__":true,"id":3601},{"__isSmartRef__":true,"id":3603},{"__isSmartRef__":true,"id":3605},{"__isSmartRef__":true,"id":3607},{"__isSmartRef__":true,"id":3609}],"lastModifiedDate":{"__isSmartRef__":true,"id":3611},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3597":{"date":{"__isSmartRef__":true,"id":3598},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"3598":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"3599":{"date":{"__isSmartRef__":true,"id":3600},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"3600":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"3601":{"date":{"__isSmartRef__":true,"id":3602},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3602":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"3603":{"date":{"__isSmartRef__":true,"id":3604},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3604":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"3605":{"date":{"__isSmartRef__":true,"id":3606},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"3606":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"3607":{"date":{"__isSmartRef__":true,"id":3608},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"3608":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"3609":{"date":{"__isSmartRef__":true,"id":3610},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"3610":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"3611":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"3612":{"style":{"__isSmartRef__":true,"id":3613},"chunkOwner":{"__isSmartRef__":true,"id":3594},"_id":"_17","storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3613":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"3614":{"_id":"_152","style":{"__isSmartRef__":true,"id":3615},"chunkOwner":{"__isSmartRef__":true,"id":3594},"storedString":" ($.Gas < ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3615":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3616":{"_id":"_153","style":{"__isSmartRef__":true,"id":3617},"chunkOwner":{"__isSmartRef__":true,"id":3594},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3617":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3618":{"_id":"_154","style":{"__isSmartRef__":true,"id":3619},"chunkOwner":{"__isSmartRef__":true,"id":3594},"storedString":") ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3619":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3620":{"_id":"_155","style":{"__isSmartRef__":true,"id":3621},"chunkOwner":{"__isSmartRef__":true,"id":3594},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3621":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"3622":{"_id":"_156","style":{"__isSmartRef__":true,"id":3623},"chunkOwner":{"__isSmartRef__":true,"id":3594},"storedString":"\n problem(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3623":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3624":{"_id":"_157","style":{"__isSmartRef__":true,"id":3625},"chunkOwner":{"__isSmartRef__":true,"id":3594},"storedString":"\"GasEmpty\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3625":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,128)"},"3626":{"_id":"_158","style":{"__isSmartRef__":true,"id":3627},"chunkOwner":{"__isSmartRef__":true,"id":3594},"storedString":")\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3627":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3628":{"_id":"_159","style":{"__isSmartRef__":true,"id":3629},"chunkOwner":{"__isSmartRef__":true,"id":3594},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3629":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"3630":{"morph":{"__isSmartRef__":true,"id":3594},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3631":{"morph":{"__isSmartRef__":true,"id":3594},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"3632":{"morph":{"__isSmartRef__":true,"id":3594},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"3633":{"morph":{"__isSmartRef__":true,"id":3594},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"3634":{"morph":{"__isSmartRef__":true,"id":3594},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"3635":{"morph":{"__isSmartRef__":true,"id":3594},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"3636":{"morph":{"__isSmartRef__":true,"id":3594},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"3637":{"morph":{"__isSmartRef__":true,"id":3594},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"3638":{"morph":{"__isSmartRef__":true,"id":3594},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"3639":{"resizeWidth":true,"resizeHeight":true},"3640":{"sourceObj":{"__isSmartRef__":true,"id":3594},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":3569},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":3641},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3641":{"source":{"__isSmartRef__":true,"id":3594},"target":{"__isSmartRef__":true,"id":3569}},"3642":{"sourceObj":{"__isSmartRef__":true,"id":3594},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":3594},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":3643},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3643":{"source":{"__isSmartRef__":true,"id":3594},"target":{"__isSmartRef__":true,"id":3594}},"3644":{"boundEval":{"__isSmartRef__":true,"id":3645},"getDoitContext":{"__isSmartRef__":true,"id":3653},"installLayers":{"__isSmartRef__":true,"id":3661},"onLoad":{"__isSmartRef__":true,"id":3665},"highligtScriptNames":{"__isSmartRef__":true,"id":3669},"getAutoCompletion":{"__isSmartRef__":true,"id":3673},"reset":{"__isSmartRef__":true,"id":3681},"getLastWordRange":{"__isSmartRef__":true,"id":3685}},"3645":{"varMapping":{"__isSmartRef__":true,"id":3646},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3651},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3646":{"this":{"__isSmartRef__":true,"id":3594},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3647}},"3647":{"$super":{"__isSmartRef__":true,"id":3648}},"3648":{"varMapping":{"__isSmartRef__":true,"id":3649},"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":3650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3649":{"obj":{"__isSmartRef__":true,"id":3594},"name":"boundEval"},"3650":{},"3651":{"timestamp":{"__isSmartRef__":true,"id":3652},"user":"jenslincke","tags":[]},"3652":{"isSerializedDate":true,"string":"Tue Jan 28 2014 11:28:47 GMT+0100 (CET)"},"3653":{"varMapping":{"__isSmartRef__":true,"id":3654},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":3659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3654":{"this":{"__isSmartRef__":true,"id":3594},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3655}},"3655":{"$super":{"__isSmartRef__":true,"id":3656}},"3656":{"varMapping":{"__isSmartRef__":true,"id":3657},"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":3658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3657":{"obj":{"__isSmartRef__":true,"id":3594},"name":"getDoitContext"},"3658":{},"3659":{"timestamp":{"__isSmartRef__":true,"id":3660},"user":"jenslincke","tags":[]},"3660":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:42:09 GMT+0100 (CET)"},"3661":{"varMapping":{"__isSmartRef__":true,"id":3662},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":3663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3662":{"this":{"__isSmartRef__":true,"id":3594}},"3663":{"timestamp":{"__isSmartRef__":true,"id":3664},"user":"jenslincke","tags":[]},"3664":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:44 GMT+0100 (CET)"},"3665":{"varMapping":{"__isSmartRef__":true,"id":3666},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":3667},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3666":{"this":{"__isSmartRef__":true,"id":3594}},"3667":{"timestamp":{"__isSmartRef__":true,"id":3668},"user":"jenslincke","tags":[]},"3668":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:45 GMT+0100 (CET)"},"3669":{"varMapping":{"__isSmartRef__":true,"id":3670},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.showNameReference(\"'+name+'\")',\n context: this.owner}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":3671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3670":{"this":{"__isSmartRef__":true,"id":3594}},"3671":{"timestamp":{"__isSmartRef__":true,"id":3672},"user":"jenslincke","tags":[]},"3672":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:25:07 GMT+0100 (CET)"},"3673":{"varMapping":{"__isSmartRef__":true,"id":3674},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":3679},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3674":{"this":{"__isSmartRef__":true,"id":3594},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3675}},"3675":{"$super":{"__isSmartRef__":true,"id":3676}},"3676":{"varMapping":{"__isSmartRef__":true,"id":3677},"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":3678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3677":{"obj":{"__isSmartRef__":true,"id":3594},"name":"getAutoCompletion"},"3678":{},"3679":{"timestamp":{"__isSmartRef__":true,"id":3680},"user":"jenslincke","tags":[]},"3680":{"isSerializedDate":true,"string":"Wed Jan 29 2014 00:33:17 GMT+0100 (CET)"},"3681":{"varMapping":{"__isSmartRef__":true,"id":3682},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":3683},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3682":{"this":{"__isSmartRef__":true,"id":3594}},"3683":{"timestamp":{"__isSmartRef__":true,"id":3684},"user":"jenslincke","tags":[]},"3684":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:58:01 GMT+0100 (CET)"},"3685":{"varMapping":{"__isSmartRef__":true,"id":3686},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3686":{"this":{"__isSmartRef__":true,"id":3594},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3687}},"3687":{"$super":{"__isSmartRef__":true,"id":3688}},"3688":{"varMapping":{"__isSmartRef__":true,"id":3689},"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":3690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3689":{"obj":{"__isSmartRef__":true,"id":3594},"name":"getLastWordRange"},"3690":{},"3691":{"timestamp":{"__isSmartRef__":true,"id":3692},"user":"jenslincke","tags":[]},"3692":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:59:58 GMT+0100 (CET)"},"3693":{"submorphs":[],"scripts":[],"id":"96C7E439-A530-4678-A9F3-A3D805F0AD6C","shape":{"__isSmartRef__":true,"id":3694},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":3695},"textChunks":[{"__isSmartRef__":true,"id":3711}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3713},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","DDEC9403-6C57-4923-ABE3-1737E6362120","07D195A1-33DA-4A4D-B3EA-B51C03BACF39"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":3569},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":3714},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,145.9)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"3694":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"_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(191.8,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3695":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3696},{"__isSmartRef__":true,"id":3698},{"__isSmartRef__":true,"id":3700},{"__isSmartRef__":true,"id":3702},{"__isSmartRef__":true,"id":3704},{"__isSmartRef__":true,"id":3706},{"__isSmartRef__":true,"id":3708}],"lastModifiedDate":{"__isSmartRef__":true,"id":3710},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3696":{"date":{"__isSmartRef__":true,"id":3697},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"3697":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"3698":{"date":{"__isSmartRef__":true,"id":3699},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"3699":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"3700":{"date":{"__isSmartRef__":true,"id":3701},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3701":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"3702":{"date":{"__isSmartRef__":true,"id":3703},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3703":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"3704":{"date":{"__isSmartRef__":true,"id":3705},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"3705":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"3706":{"date":{"__isSmartRef__":true,"id":3707},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"3707":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"3708":{"date":{"__isSmartRef__":true,"id":3709},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"3709":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"3710":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"3711":{"style":{"__isSmartRef__":true,"id":3712},"chunkOwner":{"__isSmartRef__":true,"id":3693},"_id":"_2926","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3712":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3713":{"morph":{"__isSmartRef__":true,"id":3693},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3714":{"moveVertical":true,"resizeWidth":true},"3715":{"submorphs":[],"scripts":[],"id":"EC7B53D7-39F6-42EC-B7CB-B1948021DA32","shape":{"__isSmartRef__":true,"id":3716},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":3717},"textChunks":[{"__isSmartRef__":true,"id":3733}],"charsReplaced":"false","lastFindLoc":28,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3735},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","1A5DC502-21A9-4B18-8878-654818F4C282","88E27517-6524-49AD-AF69-936DADF77DDD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":3569},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":3736}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 10\nMax: 5 [kW]","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":3738},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"3716":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(185.3,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3717":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3718},{"__isSmartRef__":true,"id":3720},{"__isSmartRef__":true,"id":3722},{"__isSmartRef__":true,"id":3724},{"__isSmartRef__":true,"id":3726},{"__isSmartRef__":true,"id":3728},{"__isSmartRef__":true,"id":3730}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":3732},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3718":{"date":{"__isSmartRef__":true,"id":3719},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"3719":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"3720":{"date":{"__isSmartRef__":true,"id":3721},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"3721":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"3722":{"date":{"__isSmartRef__":true,"id":3723},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3723":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"3724":{"date":{"__isSmartRef__":true,"id":3725},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3725":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"3726":{"date":{"__isSmartRef__":true,"id":3727},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"3727":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"3728":{"date":{"__isSmartRef__":true,"id":3729},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"3729":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"3730":{"date":{"__isSmartRef__":true,"id":3731},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"3731":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"3732":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"3733":{"style":{"__isSmartRef__":true,"id":3734},"chunkOwner":{"__isSmartRef__":true,"id":3715},"_id":"_2004","storedString":"Gas: 36000 [kWs]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3734":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3735":{"morph":{"__isSmartRef__":true,"id":3715},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3736":{"sourceObj":{"__isSmartRef__":true,"id":3715},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":3569},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":3737},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3737":{"source":{"__isSmartRef__":true,"id":3715},"target":{"__isSmartRef__":true,"id":3569}},"3738":{"resizeWidth":true},"3739":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(213.6,163.7)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"3740":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":3741},{"__isSmartRef__":true,"id":3743},{"__isSmartRef__":true,"id":3745},{"__isSmartRef__":true,"id":3747},{"__isSmartRef__":true,"id":3749},{"__isSmartRef__":true,"id":3751},{"__isSmartRef__":true,"id":3753},{"__isSmartRef__":true,"id":3755},{"__isSmartRef__":true,"id":3757},{"__isSmartRef__":true,"id":3759},{"__isSmartRef__":true,"id":3761},{"__isSmartRef__":true,"id":3763},{"__isSmartRef__":true,"id":3765},{"__isSmartRef__":true,"id":3767},{"__isSmartRef__":true,"id":3769},{"__isSmartRef__":true,"id":3771},{"__isSmartRef__":true,"id":3773},{"__isSmartRef__":true,"id":3775},{"__isSmartRef__":true,"id":3777},{"__isSmartRef__":true,"id":3779},{"__isSmartRef__":true,"id":3781},{"__isSmartRef__":true,"id":3783},{"__isSmartRef__":true,"id":3785},{"__isSmartRef__":true,"id":3787},{"__isSmartRef__":true,"id":3789},{"__isSmartRef__":true,"id":3791},{"__isSmartRef__":true,"id":3793},{"__isSmartRef__":true,"id":3795},{"__isSmartRef__":true,"id":3797}],"lastModifiedDate":{"__isSmartRef__":true,"id":3799},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3741":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":3742}},"3742":{"isSerializedDate":true,"string":"Fri Jun 21 2013 00:16:24 GMT+0200 (CEST)"},"3743":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":3744}},"3744":{"isSerializedDate":true,"string":"Thu May 30 2013 09:18:06 GMT+0200 (CEST)"},"3745":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":3746}},"3746":{"isSerializedDate":true,"string":"Wed Jan 23 2013 12:57:18 GMT+0100 (CET)"},"3747":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":3748}},"3748":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"3749":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":3750}},"3750":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"3751":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":3752}},"3752":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"3753":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":3754}},"3754":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"3755":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":3756}},"3756":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"3757":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":3758}},"3758":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"3759":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":3760}},"3760":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:35:08 GMT+0200 (CEST)"},"3761":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":3762}},"3762":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:35:51 GMT+0100 (CET)"},"3763":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":3764}},"3764":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:42:31 GMT+0100 (CET)"},"3765":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":3766}},"3766":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:47:05 GMT+0100 (CET)"},"3767":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":3768}},"3768":{"isSerializedDate":true,"string":"Thu May 30 2013 00:36:50 GMT+0200 (CEST)"},"3769":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":3770}},"3770":{"isSerializedDate":true,"string":"Tue Jun 18 2013 20:49:27 GMT+0200 (CEST)"},"3771":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":3772}},"3772":{"isSerializedDate":true,"string":"Tue Jul 30 2013 08:20:51 GMT+0200 (CEST)"},"3773":{"date":{"__isSmartRef__":true,"id":3774},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"3774":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:02:28 GMT+0100 (CET)"},"3775":{"date":{"__isSmartRef__":true,"id":3776},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"3776":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:10:08 GMT+0100 (CET)"},"3777":{"date":{"__isSmartRef__":true,"id":3778},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"3778":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:24:55 GMT+0100 (CET)"},"3779":{"date":{"__isSmartRef__":true,"id":3780},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"3780":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:29:33 GMT+0100 (CET)"},"3781":{"date":{"__isSmartRef__":true,"id":3782},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"3782":{"isSerializedDate":true,"string":"Wed Jan 22 2014 21:07:26 GMT+0100 (CET)"},"3783":{"date":{"__isSmartRef__":true,"id":3784},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"3784":{"isSerializedDate":true,"string":"Wed Jan 22 2014 22:23:13 GMT+0100 (CET)"},"3785":{"date":{"__isSmartRef__":true,"id":3786},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"3786":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:58:48 GMT+0100 (CET)"},"3787":{"date":{"__isSmartRef__":true,"id":3788},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"3788":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:59:27 GMT+0100 (CET)"},"3789":{"date":{"__isSmartRef__":true,"id":3790},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"3790":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:03:44 GMT+0100 (CET)"},"3791":{"date":{"__isSmartRef__":true,"id":3792},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"3792":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:24:12 GMT+0100 (CET)"},"3793":{"date":{"__isSmartRef__":true,"id":3794},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"3794":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:26:15 GMT+0100 (CET)"},"3795":{"date":{"__isSmartRef__":true,"id":3796},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"3796":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:35:38 GMT+0100 (CET)"},"3797":{"date":{"__isSmartRef__":true,"id":3798},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"3798":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:54:51 GMT+0100 (CET)"},"3799":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:15 GMT+0100 (CET)"},"3800":{"morph":{"__isSmartRef__":true,"id":3569},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3801":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3802}},"3802":{"test01IsMorph":{"__isSmartRef__":true,"id":3803}},"3803":{"varMapping":{"__isSmartRef__":true,"id":3804},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3804":{"this":{"__isSmartRef__":true,"id":3801}},"3805":{},"3806":{"morph":{"__isSmartRef__":true,"id":3569},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"3807":{"morph":{"__isSmartRef__":true,"id":3569},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"3808":{"morph":{"__isSmartRef__":true,"id":3569},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"3809":{"morph":{"__isSmartRef__":true,"id":3569},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"3810":{"morph":{"__isSmartRef__":true,"id":3569},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"3811":{"morph":{"__isSmartRef__":true,"id":3569},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"3812":{"morph":{"__isSmartRef__":true,"id":3569},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"3813":{"morph":{"__isSmartRef__":true,"id":3569},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"3814":{"adjustForNewBounds":true},"3815":{"Gas":36000},"3816":{"sourceObj":{"__isSmartRef__":true,"id":3569},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":3570},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":3817},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3817":{"source":{"__isSmartRef__":true,"id":3569},"target":{"__isSmartRef__":true,"id":3570}},"3818":{"Gas":"kWs"},"3819":{"referencedBy":{"__isSmartRef__":true,"id":3820},"references":{"__isSmartRef__":true,"id":3821}},"3820":{},"3821":{},"3822":{"migrateFrom":{"__isSmartRef__":true,"id":3823},"parsePropeties":{"__isSmartRef__":true,"id":3827},"printProperties":{"__isSmartRef__":true,"id":3831},"parseSimulationSource":{"__isSmartRef__":true,"id":3835},"simulateStep":{"__isSmartRef__":true,"id":3839},"showError":{"__isSmartRef__":true,"id":3842},"throwSimulationProblem":{"__isSmartRef__":true,"id":3846},"updateUI":{"__isSmartRef__":true,"id":3850},"resetStatus":{"__isSmartRef__":true,"id":3854},"simulateOneStep":{"__isSmartRef__":true,"id":3858},"reset":{"__isSmartRef__":true,"id":3862},"resetScriptAnalysis":{"__isSmartRef__":true,"id":3866},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":3870},"logReference":{"__isSmartRef__":true,"id":3874},"showScriptAnalysis":{"__isSmartRef__":true,"id":3878},"showReferenceTo":{"__isSmartRef__":true,"id":3882},"resetSourceHighlighting":{"__isSmartRef__":true,"id":3886},"showNameReference":{"__isSmartRef__":true,"id":3890}},"3823":{"varMapping":{"__isSmartRef__":true,"id":3824},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n \n}","funcProperties":{"__isSmartRef__":true,"id":3825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3824":{"this":{"__isSmartRef__":true,"id":3569}},"3825":{"timestamp":{"__isSmartRef__":true,"id":3826},"user":"jenslincke","tags":[]},"3826":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:59 GMT+0100 (CET)"},"3827":{"varMapping":{"__isSmartRef__":true,"id":3828},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":3829},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3828":{"this":{"__isSmartRef__":true,"id":3569}},"3829":{"timestamp":{"__isSmartRef__":true,"id":3830},"user":"jenslincke","tags":[]},"3830":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:03 GMT+0100 (CET)"},"3831":{"varMapping":{"__isSmartRef__":true,"id":3832},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":3833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3832":{"this":{"__isSmartRef__":true,"id":3569}},"3833":{"timestamp":{"__isSmartRef__":true,"id":3834},"user":"jenslincke","tags":[]},"3834":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:34:48 GMT+0100 (CET)"},"3835":{"varMapping":{"__isSmartRef__":true,"id":3836},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":3837},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3836":{"this":{"__isSmartRef__":true,"id":3569}},"3837":{"timestamp":{"__isSmartRef__":true,"id":3838},"user":"jenslincke","tags":[]},"3838":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:12:57 GMT+0100 (CET)"},"3839":{"varMapping":{"__isSmartRef__":true,"id":3840},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\nif ($.Gas < 0) {\n problem(\"GasEmpty\")\n}\n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":3841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3840":{"this":{"__isSmartRef__":true,"id":3569}},"3841":{},"3842":{"varMapping":{"__isSmartRef__":true,"id":3843},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3843":{"this":{"__isSmartRef__":true,"id":3569}},"3844":{"timestamp":{"__isSmartRef__":true,"id":3845},"user":"jenslincke","tags":[]},"3845":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:11:23 GMT+0100 (CET)"},"3846":{"varMapping":{"__isSmartRef__":true,"id":3847},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":3848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3847":{"this":{"__isSmartRef__":true,"id":3569}},"3848":{"timestamp":{"__isSmartRef__":true,"id":3849},"user":"jenslincke","tags":[]},"3849":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:32:56 GMT+0100 (CET)"},"3850":{"varMapping":{"__isSmartRef__":true,"id":3851},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":3852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3851":{"this":{"__isSmartRef__":true,"id":3569}},"3852":{"timestamp":{"__isSmartRef__":true,"id":3853},"user":"jenslincke","tags":[]},"3853":{"isSerializedDate":true,"string":"Sun Jan 26 2014 15:22:09 GMT+0100 (CET)"},"3854":{"varMapping":{"__isSmartRef__":true,"id":3855},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":3856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3855":{"this":{"__isSmartRef__":true,"id":3569}},"3856":{"timestamp":{"__isSmartRef__":true,"id":3857},"user":"jenslincke","tags":[]},"3857":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:54:04 GMT+0100 (CET)"},"3858":{"varMapping":{"__isSmartRef__":true,"id":3859},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3859":{"this":{"__isSmartRef__":true,"id":3569}},"3860":{"timestamp":{"__isSmartRef__":true,"id":3861},"user":"jenslincke","tags":[]},"3861":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:05:58 GMT+0100 (CET)"},"3862":{"varMapping":{"__isSmartRef__":true,"id":3863},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":3864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3863":{"this":{"__isSmartRef__":true,"id":3569}},"3864":{"timestamp":{"__isSmartRef__":true,"id":3865},"user":"jenslincke","tags":[]},"3865":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:35:44 GMT+0100 (CET)"},"3866":{"varMapping":{"__isSmartRef__":true,"id":3867},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":3868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3867":{"this":{"__isSmartRef__":true,"id":3569}},"3868":{"timestamp":{"__isSmartRef__":true,"id":3869},"user":"jenslincke","tags":[]},"3869":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:36:12 GMT+0100 (CET)"},"3870":{"varMapping":{"__isSmartRef__":true,"id":3871},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":3872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3871":{"this":{"__isSmartRef__":true,"id":3569}},"3872":{"timestamp":{"__isSmartRef__":true,"id":3873},"user":"jenslincke","tags":[]},"3873":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:09 GMT+0100 (CET)"},"3874":{"varMapping":{"__isSmartRef__":true,"id":3875},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":3876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3875":{"this":{"__isSmartRef__":true,"id":3569}},"3876":{"timestamp":{"__isSmartRef__":true,"id":3877},"user":"jenslincke","tags":[]},"3877":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:15 GMT+0100 (CET)"},"3878":{"varMapping":{"__isSmartRef__":true,"id":3879},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":3880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3879":{"this":{"__isSmartRef__":true,"id":3569}},"3880":{"timestamp":{"__isSmartRef__":true,"id":3881},"user":"jenslincke","tags":[]},"3881":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:55:26 GMT+0100 (CET)"},"3882":{"varMapping":{"__isSmartRef__":true,"id":3883},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":3884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3883":{"this":{"__isSmartRef__":true,"id":3569}},"3884":{"timestamp":{"__isSmartRef__":true,"id":3885},"user":"jenslincke","tags":[]},"3885":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:25 GMT+0100 (CET)"},"3886":{"varMapping":{"__isSmartRef__":true,"id":3887},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":3888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3887":{"this":{"__isSmartRef__":true,"id":3569}},"3888":{"timestamp":{"__isSmartRef__":true,"id":3889},"user":"jenslincke","tags":[]},"3889":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:53:47 GMT+0100 (CET)"},"3890":{"varMapping":{"__isSmartRef__":true,"id":3891},"source":"function showNameReference(name) {\n\n if (this.owner.resetSourceHighlighting)\n this.owner.resetSourceHighlighting()\n\n if (name ==this.lastNameReference) {\n this.lastNameReference = null\n return\n }\n var morph = this.get(name)\n if (morph) morph.show().invoke(\"setBorderColor\", Color.yellow)\n\n this.lastNameReference = name;\n this.showReferenceTo(name)\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":3892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3891":{"this":{"__isSmartRef__":true,"id":3569}},"3892":{"timestamp":{"__isSmartRef__":true,"id":3893},"user":"jenslincke","tags":[]},"3893":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:32:17 GMT+0100 (CET)"},"3894":{"submorphs":[{"__isSmartRef__":true,"id":3895},{"__isSmartRef__":true,"id":3919},{"__isSmartRef__":true,"id":4136},{"__isSmartRef__":true,"id":4158}],"scripts":[],"id":"76237FFE-DAAA-4059-B790-7A5912261C0B","shape":{"__isSmartRef__":true,"id":4182},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4183},"eventHandler":{"__isSmartRef__":true,"id":4243},"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","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","5E21C7BB-A7E2-498E-858F-032DCC55A4FC","2072AEFD-449A-4F4E-B8A5-9A6C57DEBB4B","8013D903-1809-4244-AABF-4DF28A1844DB","00F3C15D-F47A-44A0-8AD1-817E6DA58255","6A96318B-D7CD-48E2-913D-29CB6897E3B7","B2263E54-BA2B-4C60-B8A1-92637C28EA08","64C5A21D-7106-40F1-A881-4B19EEF4534D","558820C1-7325-4652-A6CF-33B25DBDDE22","BCDFBF89-EC99-457D-A530-78EE6AA50603","BB62D9DB-5F5D-46D1-B13F-ECC2CFA93FFA","13370CD2-1232-4E30-9AB6-D43A7241AB79"],"partTests":{"__isSmartRef__":true,"id":4244},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":4249},{"__isSmartRef__":true,"id":4250},{"__isSmartRef__":true,"id":4251},{"__isSmartRef__":true,"id":4252},{"__isSmartRef__":true,"id":4253},{"__isSmartRef__":true,"id":4254},{"__isSmartRef__":true,"id":4255},{"__isSmartRef__":true,"id":4256}],"prevScroll":[0,0],"isEnergySimulationPart":true,"layout":{"__isSmartRef__":true,"id":4257},"$":{"__isSmartRef__":true,"id":4258},"name":"ThermalPowerStation","attributeConnections":[{"__isSmartRef__":true,"id":4259}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"units":{"__isSmartRef__":true,"id":4261},"scriptAnalysis":{"__isSmartRef__":true,"id":4262},"lastNameReference":null,"owner":{"__isSmartRef__":true,"id":689},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4265},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(386.6,-15.1)","_Position":"lively.pt(316.2,361.2)"},"3895":{"submorphs":[],"scripts":[],"id":"017FF6B2-9B30-41D4-BBAC-29499D475588","shape":{"__isSmartRef__":true,"id":3896},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":3897},"textChunks":[{"__isSmartRef__":true,"id":3899}],"charsReplaced":"EnergySimulationPart","lastFindLoc":20,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":3901},{"__isSmartRef__":true,"id":3902}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"HeatingSystem","eventHandler":{"__isSmartRef__":true,"id":3903},"owner":{"__isSmartRef__":true,"id":3894},"derivationIds":[7027,"63B54D01-70F2-4A5D-8586-BE6EDD15DB66","C5E299A1-9E8A-477F-985B-DDC8528C798C","34C77E49-70E0-4238-BFC7-110384901543","21EE0BC1-029B-42D1-A2CC-381C601A5F55","17C73E30-F0FE-4832-A19D-A93FAC698D7D","567146D9-37F5-4BCC-AF7F-DB5A96EE8571","A112085C-FDC7-48D5-A582-CD39CA4E9117"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":3894},"isBeingDragged":false,"draggingEnabled":false,"_Rotation":0,"_Scale":0.9999999999999997,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3904},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.1,8.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(130.4,-10.2)"},"3896":{"fill":null,"_BorderWidth":0,"__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(180.8,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"3897":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":3898},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3898":{"isSerializedDate":true,"string":"Thu Mar 07 2013 01:25:14 GMT+0100 (CET)"},"3899":{"style":{"__isSmartRef__":true,"id":3900},"chunkOwner":{"__isSmartRef__":true,"id":3895},"_id":"_31701","storedString":"ThermalPowerStation","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3900":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3901":{"sourceObj":{"__isSmartRef__":true,"id":3895},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3895},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3902":{"sourceObj":{"__isSmartRef__":true,"id":3895},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":3895},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3903":{"morph":{"__isSmartRef__":true,"id":3895},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3904":{"updateLabel":{"__isSmartRef__":true,"id":3905},"renameOwner":{"__isSmartRef__":true,"id":3908},"onFocus":{"__isSmartRef__":true,"id":3911}},"3905":{"varMapping":{"__isSmartRef__":true,"id":3906},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":3907},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3906":{"this":{"__isSmartRef__":true,"id":3895}},"3907":{},"3908":{"varMapping":{"__isSmartRef__":true,"id":3909},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3910},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3909":{"this":{"__isSmartRef__":true,"id":3895}},"3910":{},"3911":{"varMapping":{"__isSmartRef__":true,"id":3912},"source":"function onFocus(evt) {\n $super(evt)\n if (this.owner.showScriptAnalysis) this.owner.showScriptAnalysis()\n}","funcProperties":{"__isSmartRef__":true,"id":3917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3912":{"this":{"__isSmartRef__":true,"id":3895},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3913}},"3913":{"$super":{"__isSmartRef__":true,"id":3914}},"3914":{"varMapping":{"__isSmartRef__":true,"id":3915},"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":3916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3915":{"obj":{"__isSmartRef__":true,"id":3895},"name":"onFocus"},"3916":{},"3917":{"timestamp":{"__isSmartRef__":true,"id":3918},"user":"jenslincke","tags":[]},"3918":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:45:12 GMT+0100 (CET)"},"3919":{"submorphs":[],"scripts":[],"id":"331503DF-0639-4380-A8B5-CD3BE6D2C1D5","shape":{"__isSmartRef__":true,"id":3920},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Monaco,monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"SimulationText","partsBinMetaInfo":{"__isSmartRef__":true,"id":3921},"textChunks":[{"__isSmartRef__":true,"id":3937},{"__isSmartRef__":true,"id":3939},{"__isSmartRef__":true,"id":3941},{"__isSmartRef__":true,"id":3943},{"__isSmartRef__":true,"id":3945},{"__isSmartRef__":true,"id":3947},{"__isSmartRef__":true,"id":3949},{"__isSmartRef__":true,"id":3951},{"__isSmartRef__":true,"id":3953},{"__isSmartRef__":true,"id":3955},{"__isSmartRef__":true,"id":3957},{"__isSmartRef__":true,"id":3959},{"__isSmartRef__":true,"id":3961},{"__isSmartRef__":true,"id":3963},{"__isSmartRef__":true,"id":3965},{"__isSmartRef__":true,"id":3967},{"__isSmartRef__":true,"id":3969},{"__isSmartRef__":true,"id":3971},{"__isSmartRef__":true,"id":3973},{"__isSmartRef__":true,"id":3975},{"__isSmartRef__":true,"id":3977},{"__isSmartRef__":true,"id":3979},{"__isSmartRef__":true,"id":3981},{"__isSmartRef__":true,"id":3983},{"__isSmartRef__":true,"id":3985},{"__isSmartRef__":true,"id":3987},{"__isSmartRef__":true,"id":3989},{"__isSmartRef__":true,"id":3991},{"__isSmartRef__":true,"id":3993},{"__isSmartRef__":true,"id":3995},{"__isSmartRef__":true,"id":3997},{"__isSmartRef__":true,"id":3999},{"__isSmartRef__":true,"id":4001},{"__isSmartRef__":true,"id":4003},{"__isSmartRef__":true,"id":4005},{"__isSmartRef__":true,"id":4007},{"__isSmartRef__":true,"id":4009},{"__isSmartRef__":true,"id":4011},{"__isSmartRef__":true,"id":4013},{"__isSmartRef__":true,"id":4015},{"__isSmartRef__":true,"id":4017},{"__isSmartRef__":true,"id":4019},{"__isSmartRef__":true,"id":4021},{"__isSmartRef__":true,"id":4023},{"__isSmartRef__":true,"id":4025},{"__isSmartRef__":true,"id":4027},{"__isSmartRef__":true,"id":4029},{"__isSmartRef__":true,"id":4031},{"__isSmartRef__":true,"id":4033},{"__isSmartRef__":true,"id":4035},{"__isSmartRef__":true,"id":4037},{"__isSmartRef__":true,"id":4039},{"__isSmartRef__":true,"id":4041},{"__isSmartRef__":true,"id":4043},{"__isSmartRef__":true,"id":4045},{"__isSmartRef__":true,"id":4047},{"__isSmartRef__":true,"id":4049},{"__isSmartRef__":true,"id":4051},{"__isSmartRef__":true,"id":4053},{"__isSmartRef__":true,"id":4055},{"__isSmartRef__":true,"id":4057},{"__isSmartRef__":true,"id":4059},{"__isSmartRef__":true,"id":4061},{"__isSmartRef__":true,"id":4063},{"__isSmartRef__":true,"id":4065},{"__isSmartRef__":true,"id":4067},{"__isSmartRef__":true,"id":4069},{"__isSmartRef__":true,"id":4071}],"charsReplaced":"","lastFindLoc":479,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4073},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","1BC17AC6-65D2-4DD8-906E-C419087FC3F7","6809C3A5-DCFA-4E76-9397-E4C5BA4A34C7","C528D4FD-5331-4D9A-9352-1088CF72DDDA","A3CD61D5-7936-402F-8EBA-3E2456AB5E0C","39BE0850-B4DE-4E8D-9EC7-7A6A5059775A","2035C52E-14AD-4493-A166-F79162AD66FB","D0F7C47B-437F-457E-929F-EA18E7790FA7","22F56005-4177-492C-8AAF-FF810C44931A","AAC02353-3C4E-47A1-8120-60A2F258771E","9FBBDAD3-5AE3-4342-A9DE-CF7593957E51","88B5A45D-F0EA-4372-952F-E5B93250C15E","782DCC77-008C-4653-BD28-DA4E24401AF9","D8C320FE-7916-4301-99FC-57DF6F7818E8","08F797B1-9E4E-44A7-82A8-94AD5055DD06","4A08CEEF-4759-4921-AF85-D276309CF091"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"magnets":[{"__isSmartRef__":true,"id":4074},{"__isSmartRef__":true,"id":4075},{"__isSmartRef__":true,"id":4076},{"__isSmartRef__":true,"id":4077},{"__isSmartRef__":true,"id":4078},{"__isSmartRef__":true,"id":4079},{"__isSmartRef__":true,"id":4080},{"__isSmartRef__":true,"id":4081}],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":4082},"draggingEnabled":false,"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":3894},"savedTextString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas\n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}","attributeConnections":[{"__isSmartRef__":true,"id":4083},{"__isSmartRef__":true,"id":4085}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":67,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"_Rotation":0,"_Scale":1,"previousSelection":[492,492],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt\n && (#Battery.$.Energy < 0.9 * #Battery.$.Max )) {\n var gas = $.Max * dt \n #Fuel.$.Gas -= gas\n $.Heat += 1.0 * gas\n}\nvar delta = $.Heat / $.Factor * dt\nif ($.Heat > 2) {\n $.Heat -= delta\n if(#HeatStorage.$.Energy < #HeatStorage.$.Max) {\n #HeatStorage.$.Energy += 0.5 * delta\n }\n if (#Battery.$.Energy < #Battery.$.Max ) {\n #Battery.$.Energy += 0.4 * delta\n }\n} \n\nlively.ast.JSSyntaxHighlighting","priorSelectionRange":[490,510],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4087},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"3920":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_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(527.1,279.8)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3921":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3922},{"__isSmartRef__":true,"id":3924},{"__isSmartRef__":true,"id":3926},{"__isSmartRef__":true,"id":3928},{"__isSmartRef__":true,"id":3930},{"__isSmartRef__":true,"id":3932},{"__isSmartRef__":true,"id":3934}],"lastModifiedDate":{"__isSmartRef__":true,"id":3936},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3922":{"date":{"__isSmartRef__":true,"id":3923},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"3923":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"3924":{"date":{"__isSmartRef__":true,"id":3925},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"3925":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"3926":{"date":{"__isSmartRef__":true,"id":3927},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3927":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"3928":{"date":{"__isSmartRef__":true,"id":3929},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3929":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"3930":{"date":{"__isSmartRef__":true,"id":3931},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"3931":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"3932":{"date":{"__isSmartRef__":true,"id":3933},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"3933":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"3934":{"date":{"__isSmartRef__":true,"id":3935},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"3935":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"3936":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"3937":{"style":{"__isSmartRef__":true,"id":3938},"chunkOwner":{"__isSmartRef__":true,"id":3919},"_id":"_19","storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3938":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"3939":{"_id":"_192","style":{"__isSmartRef__":true,"id":3940},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":" full = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3940":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3941":{"_id":"_2085","style":{"__isSmartRef__":true,"id":3942},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"$","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3942":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"3943":{"_id":"_2086","style":{"__isSmartRef__":true,"id":3944},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":".Max * ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3944":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3945":{"_id":"_2087","style":{"__isSmartRef__":true,"id":3946},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"$","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3946":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"3947":{"_id":"_2088","style":{"__isSmartRef__":true,"id":3948},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":".Factor\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3948":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3949":{"_id":"_193","style":{"__isSmartRef__":true,"id":3950},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3950":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"3951":{"_id":"_194","style":{"__isSmartRef__":true,"id":3952},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":" (","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3952":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3953":{"_id":"_2089","style":{"__isSmartRef__":true,"id":3954},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"$","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3954":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"3955":{"_id":"_2090","style":{"__isSmartRef__":true,"id":3956},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":".Heat < full && #Fuel.$.Gas > ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3956":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3957":{"_id":"_2091","style":{"__isSmartRef__":true,"id":3958},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"$","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3958":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"3959":{"_id":"_2092","style":{"__isSmartRef__":true,"id":3960},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":".Max * ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3960":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3961":{"_id":"_2093","style":{"__isSmartRef__":true,"id":3962},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"dt","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3962":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"3963":{"_id":"_2094","style":{"__isSmartRef__":true,"id":3964},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"\n && (#Battery.$.Energy < ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3964":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3965":{"_id":"_195","style":{"__isSmartRef__":true,"id":3966},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"0.9","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3966":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3967":{"_id":"_196","style":{"__isSmartRef__":true,"id":3968},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":" * #Battery.$.Max )) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3968":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3969":{"_id":"_197","style":{"__isSmartRef__":true,"id":3970},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3970":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"3971":{"_id":"_198","style":{"__isSmartRef__":true,"id":3972},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3972":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3973":{"_id":"_199","style":{"__isSmartRef__":true,"id":3974},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3974":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"3975":{"_id":"_200","style":{"__isSmartRef__":true,"id":3976},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":" gas = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3976":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3977":{"_id":"_2095","style":{"__isSmartRef__":true,"id":3978},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"$","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3978":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"3979":{"_id":"_2096","style":{"__isSmartRef__":true,"id":3980},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":".Max * ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3980":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3981":{"_id":"_2097","style":{"__isSmartRef__":true,"id":3982},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"dt","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3982":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"3983":{"_id":"_240","style":{"__isSmartRef__":true,"id":3984},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":" \n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3984":{"__serializedExpressions__":["color","backgroundColor"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)","backgroundColor":"Color.rgba(204,204,0,0.4)"},"3985":{"_id":"_241","style":{"__isSmartRef__":true,"id":3986},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":" #Fuel.$.Gas -= gas\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3986":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3987":{"_id":"_2098","style":{"__isSmartRef__":true,"id":3988},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"$","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3988":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"3989":{"_id":"_2099","style":{"__isSmartRef__":true,"id":3990},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":".Heat += ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3990":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3991":{"_id":"_201","style":{"__isSmartRef__":true,"id":3992},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"1.0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3992":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"3993":{"_id":"_202","style":{"__isSmartRef__":true,"id":3994},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":" * gas\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3994":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3995":{"_id":"_203","style":{"__isSmartRef__":true,"id":3996},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3996":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"3997":{"_id":"_204","style":{"__isSmartRef__":true,"id":3998},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3998":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"3999":{"_id":"_205","style":{"__isSmartRef__":true,"id":4000},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4000":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"4001":{"_id":"_206","style":{"__isSmartRef__":true,"id":4002},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":" delta = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4002":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4003":{"_id":"_2100","style":{"__isSmartRef__":true,"id":4004},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"$","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4004":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"4005":{"_id":"_2101","style":{"__isSmartRef__":true,"id":4006},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":".Heat / ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4006":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4007":{"_id":"_2102","style":{"__isSmartRef__":true,"id":4008},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"$","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4008":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"4009":{"_id":"_2103","style":{"__isSmartRef__":true,"id":4010},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":".Factor * ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4010":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4011":{"_id":"_2104","style":{"__isSmartRef__":true,"id":4012},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"dt","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4012":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"4013":{"_id":"_2105","style":{"__isSmartRef__":true,"id":4014},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4014":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4015":{"_id":"_207","style":{"__isSmartRef__":true,"id":4016},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4016":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"4017":{"_id":"_208","style":{"__isSmartRef__":true,"id":4018},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":" (","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4018":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4019":{"_id":"_2106","style":{"__isSmartRef__":true,"id":4020},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"$","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4020":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"4021":{"_id":"_2107","style":{"__isSmartRef__":true,"id":4022},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":".Heat > ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4022":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4023":{"_id":"_209","style":{"__isSmartRef__":true,"id":4024},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"2","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4024":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"4025":{"_id":"_210","style":{"__isSmartRef__":true,"id":4026},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":") ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4026":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4027":{"_id":"_211","style":{"__isSmartRef__":true,"id":4028},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4028":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"4029":{"_id":"_212","style":{"__isSmartRef__":true,"id":4030},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4030":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4031":{"_id":"_2108","style":{"__isSmartRef__":true,"id":4032},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"$","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4032":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"4033":{"_id":"_2109","style":{"__isSmartRef__":true,"id":4034},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":".Heat -= delta\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4034":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4035":{"_id":"_213","style":{"__isSmartRef__":true,"id":4036},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4036":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"4037":{"_id":"_214","style":{"__isSmartRef__":true,"id":4038},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"(#HeatStorage.$.Energy < #HeatStorage.$.Max) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4038":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4039":{"_id":"_215","style":{"__isSmartRef__":true,"id":4040},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4040":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"4041":{"_id":"_216","style":{"__isSmartRef__":true,"id":4042},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"\n #HeatStorage.$.Energy += ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4042":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4043":{"_id":"_217","style":{"__isSmartRef__":true,"id":4044},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"0.5","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4044":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"4045":{"_id":"_218","style":{"__isSmartRef__":true,"id":4046},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":" * delta\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4046":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4047":{"_id":"_219","style":{"__isSmartRef__":true,"id":4048},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4048":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"4049":{"_id":"_220","style":{"__isSmartRef__":true,"id":4050},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4050":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4051":{"_id":"_221","style":{"__isSmartRef__":true,"id":4052},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4052":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"4053":{"_id":"_222","style":{"__isSmartRef__":true,"id":4054},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":" (#Battery.$.Energy < #Battery.$.Max ) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4054":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4055":{"_id":"_223","style":{"__isSmartRef__":true,"id":4056},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4056":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"4057":{"_id":"_224","style":{"__isSmartRef__":true,"id":4058},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"\n #Battery.$.Energy += ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4058":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4059":{"_id":"_225","style":{"__isSmartRef__":true,"id":4060},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"0.4","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4060":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"4061":{"_id":"_226","style":{"__isSmartRef__":true,"id":4062},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":" * delta\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4062":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4063":{"_id":"_227","style":{"__isSmartRef__":true,"id":4064},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4064":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"4065":{"_id":"_228","style":{"__isSmartRef__":true,"id":4066},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4066":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4067":{"_id":"_229","style":{"__isSmartRef__":true,"id":4068},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4068":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"4069":{"_id":"_230","style":{"__isSmartRef__":true,"id":4070},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":" \n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4070":{"__serializedExpressions__":["color","backgroundColor"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)","backgroundColor":"Color.rgba(204,204,0,0.4)"},"4071":{"_id":"_292","style":{"__isSmartRef__":true,"id":4072},"chunkOwner":{"__isSmartRef__":true,"id":3919},"storedString":"\nlively.ast.JSSyntaxHighlighting","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4072":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"4073":{"morph":{"__isSmartRef__":true,"id":3919},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4074":{"morph":{"__isSmartRef__":true,"id":3919},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"4075":{"morph":{"__isSmartRef__":true,"id":3919},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"4076":{"morph":{"__isSmartRef__":true,"id":3919},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"4077":{"morph":{"__isSmartRef__":true,"id":3919},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"4078":{"morph":{"__isSmartRef__":true,"id":3919},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"4079":{"morph":{"__isSmartRef__":true,"id":3919},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"4080":{"morph":{"__isSmartRef__":true,"id":3919},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"4081":{"morph":{"__isSmartRef__":true,"id":3919},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"4082":{"resizeWidth":true,"resizeHeight":true},"4083":{"sourceObj":{"__isSmartRef__":true,"id":3919},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":3894},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":4084},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4084":{"source":{"__isSmartRef__":true,"id":3919},"target":{"__isSmartRef__":true,"id":3894}},"4085":{"sourceObj":{"__isSmartRef__":true,"id":3919},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":3919},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":4086},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4086":{"source":{"__isSmartRef__":true,"id":3919},"target":{"__isSmartRef__":true,"id":3919}},"4087":{"boundEval":{"__isSmartRef__":true,"id":4088},"getDoitContext":{"__isSmartRef__":true,"id":4096},"installLayers":{"__isSmartRef__":true,"id":4104},"onLoad":{"__isSmartRef__":true,"id":4108},"highligtScriptNames":{"__isSmartRef__":true,"id":4112},"getAutoCompletion":{"__isSmartRef__":true,"id":4116},"reset":{"__isSmartRef__":true,"id":4124},"getLastWordRange":{"__isSmartRef__":true,"id":4128}},"4088":{"varMapping":{"__isSmartRef__":true,"id":4089},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4089":{"this":{"__isSmartRef__":true,"id":3919},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4090}},"4090":{"$super":{"__isSmartRef__":true,"id":4091}},"4091":{"varMapping":{"__isSmartRef__":true,"id":4092},"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":4093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4092":{"obj":{"__isSmartRef__":true,"id":3919},"name":"boundEval"},"4093":{},"4094":{"timestamp":{"__isSmartRef__":true,"id":4095},"user":"jenslincke","tags":[]},"4095":{"isSerializedDate":true,"string":"Tue Jan 28 2014 11:28:47 GMT+0100 (CET)"},"4096":{"varMapping":{"__isSmartRef__":true,"id":4097},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":4102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4097":{"this":{"__isSmartRef__":true,"id":3919},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4098}},"4098":{"$super":{"__isSmartRef__":true,"id":4099}},"4099":{"varMapping":{"__isSmartRef__":true,"id":4100},"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":4101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4100":{"obj":{"__isSmartRef__":true,"id":3919},"name":"getDoitContext"},"4101":{},"4102":{"timestamp":{"__isSmartRef__":true,"id":4103},"user":"jenslincke","tags":[]},"4103":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:42:09 GMT+0100 (CET)"},"4104":{"varMapping":{"__isSmartRef__":true,"id":4105},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":4106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4105":{"this":{"__isSmartRef__":true,"id":3919}},"4106":{"timestamp":{"__isSmartRef__":true,"id":4107},"user":"jenslincke","tags":[]},"4107":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:44 GMT+0100 (CET)"},"4108":{"varMapping":{"__isSmartRef__":true,"id":4109},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":4110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4109":{"this":{"__isSmartRef__":true,"id":3919}},"4110":{"timestamp":{"__isSmartRef__":true,"id":4111},"user":"jenslincke","tags":[]},"4111":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:45 GMT+0100 (CET)"},"4112":{"varMapping":{"__isSmartRef__":true,"id":4113},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.showNameReference(\"'+name+'\")',\n context: this.owner}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":4114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4113":{"this":{"__isSmartRef__":true,"id":3919}},"4114":{"timestamp":{"__isSmartRef__":true,"id":4115},"user":"jenslincke","tags":[]},"4115":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:25:07 GMT+0100 (CET)"},"4116":{"varMapping":{"__isSmartRef__":true,"id":4117},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":4122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4117":{"this":{"__isSmartRef__":true,"id":3919},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4118}},"4118":{"$super":{"__isSmartRef__":true,"id":4119}},"4119":{"varMapping":{"__isSmartRef__":true,"id":4120},"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":4121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4120":{"obj":{"__isSmartRef__":true,"id":3919},"name":"getAutoCompletion"},"4121":{},"4122":{"timestamp":{"__isSmartRef__":true,"id":4123},"user":"jenslincke","tags":[]},"4123":{"isSerializedDate":true,"string":"Wed Jan 29 2014 00:33:17 GMT+0100 (CET)"},"4124":{"varMapping":{"__isSmartRef__":true,"id":4125},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":4126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4125":{"this":{"__isSmartRef__":true,"id":3919}},"4126":{"timestamp":{"__isSmartRef__":true,"id":4127},"user":"jenslincke","tags":[]},"4127":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:58:01 GMT+0100 (CET)"},"4128":{"varMapping":{"__isSmartRef__":true,"id":4129},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4129":{"this":{"__isSmartRef__":true,"id":3919},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4130}},"4130":{"$super":{"__isSmartRef__":true,"id":4131}},"4131":{"varMapping":{"__isSmartRef__":true,"id":4132},"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":4133},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4132":{"obj":{"__isSmartRef__":true,"id":3919},"name":"getLastWordRange"},"4133":{},"4134":{"timestamp":{"__isSmartRef__":true,"id":4135},"user":"jenslincke","tags":[]},"4135":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:59:58 GMT+0100 (CET)"},"4136":{"submorphs":[],"scripts":[],"id":"9E9FA170-BF58-486D-A598-0281BFB85276","shape":{"__isSmartRef__":true,"id":4137},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":4138},"textChunks":[{"__isSmartRef__":true,"id":4154}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4156},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","DDEC9403-6C57-4923-ABE3-1737E6362120","07D195A1-33DA-4A4D-B3EA-B51C03BACF39"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":3894},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":4157},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,364.8)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"4137":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"_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(519.2,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"4138":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4139},{"__isSmartRef__":true,"id":4141},{"__isSmartRef__":true,"id":4143},{"__isSmartRef__":true,"id":4145},{"__isSmartRef__":true,"id":4147},{"__isSmartRef__":true,"id":4149},{"__isSmartRef__":true,"id":4151}],"lastModifiedDate":{"__isSmartRef__":true,"id":4153},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4139":{"date":{"__isSmartRef__":true,"id":4140},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"4140":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"4141":{"date":{"__isSmartRef__":true,"id":4142},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"4142":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"4143":{"date":{"__isSmartRef__":true,"id":4144},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"4144":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"4145":{"date":{"__isSmartRef__":true,"id":4146},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"4146":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"4147":{"date":{"__isSmartRef__":true,"id":4148},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"4148":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"4149":{"date":{"__isSmartRef__":true,"id":4150},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"4150":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"4151":{"date":{"__isSmartRef__":true,"id":4152},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"4152":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"4153":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"4154":{"style":{"__isSmartRef__":true,"id":4155},"chunkOwner":{"__isSmartRef__":true,"id":4136},"_id":"_1997","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4155":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4156":{"morph":{"__isSmartRef__":true,"id":4136},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4157":{"moveVertical":true,"resizeWidth":true},"4158":{"submorphs":[],"scripts":[],"id":"4DF8FE51-CBDB-4171-9276-63FB0B0F36EA","shape":{"__isSmartRef__":true,"id":4159},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":4160},"textChunks":[{"__isSmartRef__":true,"id":4176}],"charsReplaced":"false","lastFindLoc":28,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4178},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","1A5DC502-21A9-4B18-8878-654818F4C282","88E27517-6524-49AD-AF69-936DADF77DDD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":3894},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":4179}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Heat: 0 [kW/s]\nStopped: false\nFactor: 10\nMax: 5 [kW]","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":4181},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"4159":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(512.7,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"4160":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4161},{"__isSmartRef__":true,"id":4163},{"__isSmartRef__":true,"id":4165},{"__isSmartRef__":true,"id":4167},{"__isSmartRef__":true,"id":4169},{"__isSmartRef__":true,"id":4171},{"__isSmartRef__":true,"id":4173}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":4175},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4161":{"date":{"__isSmartRef__":true,"id":4162},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"4162":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"4163":{"date":{"__isSmartRef__":true,"id":4164},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"4164":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"4165":{"date":{"__isSmartRef__":true,"id":4166},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"4166":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"4167":{"date":{"__isSmartRef__":true,"id":4168},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"4168":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"4169":{"date":{"__isSmartRef__":true,"id":4170},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"4170":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"4171":{"date":{"__isSmartRef__":true,"id":4172},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"4172":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"4173":{"date":{"__isSmartRef__":true,"id":4174},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"4174":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"4175":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"4176":{"style":{"__isSmartRef__":true,"id":4177},"chunkOwner":{"__isSmartRef__":true,"id":4158},"_id":"_2006","storedString":"Heat: 0\nFactor: 10\nMax: 7.5\nStopped: false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4177":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4178":{"morph":{"__isSmartRef__":true,"id":4158},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4179":{"sourceObj":{"__isSmartRef__":true,"id":4158},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":3894},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":4180},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4180":{"source":{"__isSmartRef__":true,"id":4158},"target":{"__isSmartRef__":true,"id":3894}},"4181":{"resizeWidth":true},"4182":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(541.0,382.6)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"4183":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":4184},{"__isSmartRef__":true,"id":4186},{"__isSmartRef__":true,"id":4188},{"__isSmartRef__":true,"id":4190},{"__isSmartRef__":true,"id":4192},{"__isSmartRef__":true,"id":4194},{"__isSmartRef__":true,"id":4196},{"__isSmartRef__":true,"id":4198},{"__isSmartRef__":true,"id":4200},{"__isSmartRef__":true,"id":4202},{"__isSmartRef__":true,"id":4204},{"__isSmartRef__":true,"id":4206},{"__isSmartRef__":true,"id":4208},{"__isSmartRef__":true,"id":4210},{"__isSmartRef__":true,"id":4212},{"__isSmartRef__":true,"id":4214},{"__isSmartRef__":true,"id":4216},{"__isSmartRef__":true,"id":4218},{"__isSmartRef__":true,"id":4220},{"__isSmartRef__":true,"id":4222},{"__isSmartRef__":true,"id":4224},{"__isSmartRef__":true,"id":4226},{"__isSmartRef__":true,"id":4228},{"__isSmartRef__":true,"id":4230},{"__isSmartRef__":true,"id":4232},{"__isSmartRef__":true,"id":4234},{"__isSmartRef__":true,"id":4236},{"__isSmartRef__":true,"id":4238},{"__isSmartRef__":true,"id":4240}],"lastModifiedDate":{"__isSmartRef__":true,"id":4242},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4184":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":4185}},"4185":{"isSerializedDate":true,"string":"Fri Jun 21 2013 00:16:24 GMT+0200 (CEST)"},"4186":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":4187}},"4187":{"isSerializedDate":true,"string":"Thu May 30 2013 09:18:06 GMT+0200 (CEST)"},"4188":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":4189}},"4189":{"isSerializedDate":true,"string":"Wed Jan 23 2013 12:57:18 GMT+0100 (CET)"},"4190":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":4191}},"4191":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"4192":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":4193}},"4193":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"4194":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":4195}},"4195":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"4196":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":4197}},"4197":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"4198":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":4199}},"4199":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"4200":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":4201}},"4201":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"4202":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":4203}},"4203":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:35:08 GMT+0200 (CEST)"},"4204":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":4205}},"4205":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:35:51 GMT+0100 (CET)"},"4206":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":4207}},"4207":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:42:31 GMT+0100 (CET)"},"4208":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":4209}},"4209":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:47:05 GMT+0100 (CET)"},"4210":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":4211}},"4211":{"isSerializedDate":true,"string":"Thu May 30 2013 00:36:50 GMT+0200 (CEST)"},"4212":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":4213}},"4213":{"isSerializedDate":true,"string":"Tue Jun 18 2013 20:49:27 GMT+0200 (CEST)"},"4214":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":4215}},"4215":{"isSerializedDate":true,"string":"Tue Jul 30 2013 08:20:51 GMT+0200 (CEST)"},"4216":{"date":{"__isSmartRef__":true,"id":4217},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"4217":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:02:28 GMT+0100 (CET)"},"4218":{"date":{"__isSmartRef__":true,"id":4219},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"4219":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:10:08 GMT+0100 (CET)"},"4220":{"date":{"__isSmartRef__":true,"id":4221},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"4221":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:24:55 GMT+0100 (CET)"},"4222":{"date":{"__isSmartRef__":true,"id":4223},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"4223":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:29:33 GMT+0100 (CET)"},"4224":{"date":{"__isSmartRef__":true,"id":4225},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"4225":{"isSerializedDate":true,"string":"Wed Jan 22 2014 21:07:26 GMT+0100 (CET)"},"4226":{"date":{"__isSmartRef__":true,"id":4227},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"4227":{"isSerializedDate":true,"string":"Wed Jan 22 2014 22:23:13 GMT+0100 (CET)"},"4228":{"date":{"__isSmartRef__":true,"id":4229},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"4229":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:58:48 GMT+0100 (CET)"},"4230":{"date":{"__isSmartRef__":true,"id":4231},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"4231":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:59:27 GMT+0100 (CET)"},"4232":{"date":{"__isSmartRef__":true,"id":4233},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"4233":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:03:44 GMT+0100 (CET)"},"4234":{"date":{"__isSmartRef__":true,"id":4235},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"4235":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:24:12 GMT+0100 (CET)"},"4236":{"date":{"__isSmartRef__":true,"id":4237},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"4237":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:26:15 GMT+0100 (CET)"},"4238":{"date":{"__isSmartRef__":true,"id":4239},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"4239":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:35:38 GMT+0100 (CET)"},"4240":{"date":{"__isSmartRef__":true,"id":4241},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"4241":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:54:51 GMT+0100 (CET)"},"4242":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:15 GMT+0100 (CET)"},"4243":{"morph":{"__isSmartRef__":true,"id":3894},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4244":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4245}},"4245":{"test01IsMorph":{"__isSmartRef__":true,"id":4246}},"4246":{"varMapping":{"__isSmartRef__":true,"id":4247},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4247":{"this":{"__isSmartRef__":true,"id":4244}},"4248":{},"4249":{"morph":{"__isSmartRef__":true,"id":3894},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"4250":{"morph":{"__isSmartRef__":true,"id":3894},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"4251":{"morph":{"__isSmartRef__":true,"id":3894},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"4252":{"morph":{"__isSmartRef__":true,"id":3894},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"4253":{"morph":{"__isSmartRef__":true,"id":3894},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"4254":{"morph":{"__isSmartRef__":true,"id":3894},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"4255":{"morph":{"__isSmartRef__":true,"id":3894},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"4256":{"morph":{"__isSmartRef__":true,"id":3894},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"4257":{"adjustForNewBounds":true},"4258":{"Heat":0,"Factor":10,"Max":7.5,"Stopped":false},"4259":{"sourceObj":{"__isSmartRef__":true,"id":3894},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":3895},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":4260},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4260":{"source":{"__isSmartRef__":true,"id":3894},"target":{"__isSmartRef__":true,"id":3895}},"4261":{},"4262":{"referencedBy":{"__isSmartRef__":true,"id":4263},"references":{"__isSmartRef__":true,"id":4264}},"4263":{},"4264":{},"4265":{"migrateFrom":{"__isSmartRef__":true,"id":4266},"parsePropeties":{"__isSmartRef__":true,"id":4270},"printProperties":{"__isSmartRef__":true,"id":4274},"parseSimulationSource":{"__isSmartRef__":true,"id":4278},"simulateStep":{"__isSmartRef__":true,"id":4282},"showError":{"__isSmartRef__":true,"id":4285},"throwSimulationProblem":{"__isSmartRef__":true,"id":4289},"updateUI":{"__isSmartRef__":true,"id":4293},"resetStatus":{"__isSmartRef__":true,"id":4297},"simulateOneStep":{"__isSmartRef__":true,"id":4301},"reset":{"__isSmartRef__":true,"id":4305},"resetScriptAnalysis":{"__isSmartRef__":true,"id":4309},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":4313},"logReference":{"__isSmartRef__":true,"id":4317},"showScriptAnalysis":{"__isSmartRef__":true,"id":4321},"showReferenceTo":{"__isSmartRef__":true,"id":4325},"resetSourceHighlighting":{"__isSmartRef__":true,"id":4329},"showNameReference":{"__isSmartRef__":true,"id":4333}},"4266":{"varMapping":{"__isSmartRef__":true,"id":4267},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n \n}","funcProperties":{"__isSmartRef__":true,"id":4268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4267":{"this":{"__isSmartRef__":true,"id":3894}},"4268":{"timestamp":{"__isSmartRef__":true,"id":4269},"user":"jenslincke","tags":[]},"4269":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:59 GMT+0100 (CET)"},"4270":{"varMapping":{"__isSmartRef__":true,"id":4271},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":4272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4271":{"this":{"__isSmartRef__":true,"id":3894}},"4272":{"timestamp":{"__isSmartRef__":true,"id":4273},"user":"jenslincke","tags":[]},"4273":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:03 GMT+0100 (CET)"},"4274":{"varMapping":{"__isSmartRef__":true,"id":4275},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":4276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4275":{"this":{"__isSmartRef__":true,"id":3894}},"4276":{"timestamp":{"__isSmartRef__":true,"id":4277},"user":"jenslincke","tags":[]},"4277":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:34:48 GMT+0100 (CET)"},"4278":{"varMapping":{"__isSmartRef__":true,"id":4279},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":4280},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4279":{"this":{"__isSmartRef__":true,"id":3894}},"4280":{"timestamp":{"__isSmartRef__":true,"id":4281},"user":"jenslincke","tags":[]},"4281":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:12:57 GMT+0100 (CET)"},"4282":{"varMapping":{"__isSmartRef__":true,"id":4283},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\nvar full = $.Max * $.Factor\nif ($.Heat < full && this.get('Fuel').$.Gas > $.Max * dt\n && (this.get('Battery').$.Energy < 0.9 * this.get('Battery').$.Max )) {\n var gas = $.Max * dt\n this.get('Fuel').$.Gas -= gas\n $.Heat += 1.0 * gas\n}\nvar delta = $.Heat / $.Factor * dt\nif ($.Heat > 2) {\n $.Heat -= delta\n if(this.get('HeatStorage').$.Energy < this.get('HeatStorage').$.Max) {\n this.get('HeatStorage').$.Energy += 0.5 * delta\n }\n if (this.get('Battery').$.Energy < this.get('Battery').$.Max ) {\n this.get('Battery').$.Energy += 0.4 * delta\n }\n} \n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":4284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4283":{"this":{"__isSmartRef__":true,"id":3894}},"4284":{},"4285":{"varMapping":{"__isSmartRef__":true,"id":4286},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4287},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4286":{"this":{"__isSmartRef__":true,"id":3894}},"4287":{"timestamp":{"__isSmartRef__":true,"id":4288},"user":"jenslincke","tags":[]},"4288":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:11:23 GMT+0100 (CET)"},"4289":{"varMapping":{"__isSmartRef__":true,"id":4290},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":4291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4290":{"this":{"__isSmartRef__":true,"id":3894}},"4291":{"timestamp":{"__isSmartRef__":true,"id":4292},"user":"jenslincke","tags":[]},"4292":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:32:56 GMT+0100 (CET)"},"4293":{"varMapping":{"__isSmartRef__":true,"id":4294},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":4295},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4294":{"this":{"__isSmartRef__":true,"id":3894}},"4295":{"timestamp":{"__isSmartRef__":true,"id":4296},"user":"jenslincke","tags":[]},"4296":{"isSerializedDate":true,"string":"Sun Jan 26 2014 15:22:09 GMT+0100 (CET)"},"4297":{"varMapping":{"__isSmartRef__":true,"id":4298},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":4299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4298":{"this":{"__isSmartRef__":true,"id":3894}},"4299":{"timestamp":{"__isSmartRef__":true,"id":4300},"user":"jenslincke","tags":[]},"4300":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:54:04 GMT+0100 (CET)"},"4301":{"varMapping":{"__isSmartRef__":true,"id":4302},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4302":{"this":{"__isSmartRef__":true,"id":3894}},"4303":{"timestamp":{"__isSmartRef__":true,"id":4304},"user":"jenslincke","tags":[]},"4304":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:05:58 GMT+0100 (CET)"},"4305":{"varMapping":{"__isSmartRef__":true,"id":4306},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":4307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4306":{"this":{"__isSmartRef__":true,"id":3894}},"4307":{"timestamp":{"__isSmartRef__":true,"id":4308},"user":"jenslincke","tags":[]},"4308":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:35:44 GMT+0100 (CET)"},"4309":{"varMapping":{"__isSmartRef__":true,"id":4310},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":4311},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4310":{"this":{"__isSmartRef__":true,"id":3894}},"4311":{"timestamp":{"__isSmartRef__":true,"id":4312},"user":"jenslincke","tags":[]},"4312":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:36:12 GMT+0100 (CET)"},"4313":{"varMapping":{"__isSmartRef__":true,"id":4314},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":4315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4314":{"this":{"__isSmartRef__":true,"id":3894}},"4315":{"timestamp":{"__isSmartRef__":true,"id":4316},"user":"jenslincke","tags":[]},"4316":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:09 GMT+0100 (CET)"},"4317":{"varMapping":{"__isSmartRef__":true,"id":4318},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":4319},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4318":{"this":{"__isSmartRef__":true,"id":3894}},"4319":{"timestamp":{"__isSmartRef__":true,"id":4320},"user":"jenslincke","tags":[]},"4320":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:15 GMT+0100 (CET)"},"4321":{"varMapping":{"__isSmartRef__":true,"id":4322},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":4323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4322":{"this":{"__isSmartRef__":true,"id":3894}},"4323":{"timestamp":{"__isSmartRef__":true,"id":4324},"user":"jenslincke","tags":[]},"4324":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:55:26 GMT+0100 (CET)"},"4325":{"varMapping":{"__isSmartRef__":true,"id":4326},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":4327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4326":{"this":{"__isSmartRef__":true,"id":3894}},"4327":{"timestamp":{"__isSmartRef__":true,"id":4328},"user":"jenslincke","tags":[]},"4328":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:25 GMT+0100 (CET)"},"4329":{"varMapping":{"__isSmartRef__":true,"id":4330},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":4331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4330":{"this":{"__isSmartRef__":true,"id":3894}},"4331":{"timestamp":{"__isSmartRef__":true,"id":4332},"user":"jenslincke","tags":[]},"4332":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:53:47 GMT+0100 (CET)"},"4333":{"varMapping":{"__isSmartRef__":true,"id":4334},"source":"function showNameReference(name) {\n\n if (this.owner.resetSourceHighlighting)\n this.owner.resetSourceHighlighting()\n\n if (name ==this.lastNameReference) {\n this.lastNameReference = null\n return\n }\n var morph = this.get(name)\n if (morph) morph.show().invoke(\"setBorderColor\", Color.yellow)\n\n this.lastNameReference = name;\n this.showReferenceTo(name)\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":4335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4334":{"this":{"__isSmartRef__":true,"id":3894}},"4335":{"timestamp":{"__isSmartRef__":true,"id":4336},"user":"jenslincke","tags":[]},"4336":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:32:17 GMT+0100 (CET)"},"4337":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(2215.9,1889.2)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"4338":{"partsSpaceName":"PartsBin/Jens/","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulation","changes":[{"__isSmartRef__":true,"id":4339},{"__isSmartRef__":true,"id":4341},{"__isSmartRef__":true,"id":4343},{"__isSmartRef__":true,"id":4345},{"__isSmartRef__":true,"id":4347},{"__isSmartRef__":true,"id":4349},{"__isSmartRef__":true,"id":4351},{"__isSmartRef__":true,"id":4353},{"__isSmartRef__":true,"id":4355},{"__isSmartRef__":true,"id":4357},{"__isSmartRef__":true,"id":4359},{"__isSmartRef__":true,"id":4361},{"__isSmartRef__":true,"id":4363},{"__isSmartRef__":true,"id":4365},{"__isSmartRef__":true,"id":4367},{"__isSmartRef__":true,"id":4369},{"__isSmartRef__":true,"id":4371},{"__isSmartRef__":true,"id":4373},{"__isSmartRef__":true,"id":4375},{"__isSmartRef__":true,"id":4377},{"__isSmartRef__":true,"id":4379}],"lastModifiedDate":{"__isSmartRef__":true,"id":4381},"revisionOnLoad":204760,"#startLetters":"addR","requiredModules":["lively.experimental.MorphAccessor","lively.experimental.Autocompletion","lively.experimental.MorphAccessor","lively.experimental.Autocompletion","lively.ast.IDESupport"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4339":{"date":{"__isSmartRef__":true,"id":4340},"author":"jenslincke","message":"no comment","id":"33EE3DAC-F868-43CF-9597-A716E6AEED92"},"4340":{"isSerializedDate":true,"string":"Thu Jan 23 2014 14:03:44 GMT+0100 (CET)"},"4341":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":4342}},"4342":{"isSerializedDate":true,"string":"Tue Jul 30 2013 08:20:51 GMT+0200 (CEST)"},"4343":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":4344}},"4344":{"isSerializedDate":true,"string":"Tue Jun 18 2013 20:49:27 GMT+0200 (CEST)"},"4345":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":4346}},"4346":{"isSerializedDate":true,"string":"Thu May 30 2013 00:36:50 GMT+0200 (CEST)"},"4347":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":4348}},"4348":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:47:05 GMT+0100 (CET)"},"4349":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":4350}},"4350":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:42:31 GMT+0100 (CET)"},"4351":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":4352}},"4352":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:35:51 GMT+0100 (CET)"},"4353":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":4354}},"4354":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:35:08 GMT+0200 (CEST)"},"4355":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":4356}},"4356":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"4357":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":4358}},"4358":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"4359":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":4360}},"4360":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"4361":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":4362}},"4362":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"4363":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":4364}},"4364":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"4365":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":4366}},"4366":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"4367":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":4368}},"4368":{"isSerializedDate":true,"string":"Wed Jan 23 2013 12:57:18 GMT+0100 (CET)"},"4369":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":4370}},"4370":{"isSerializedDate":true,"string":"Thu May 30 2013 09:18:06 GMT+0200 (CEST)"},"4371":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":4372}},"4372":{"isSerializedDate":true,"string":"Fri Jun 21 2013 00:16:24 GMT+0200 (CEST)"},"4373":{"date":{"__isSmartRef__":true,"id":4374},"author":"jenslincke","message":"no comment","id":"D38B829D-47C7-49C3-A9A0-F84055B86575"},"4374":{"isSerializedDate":true,"string":"Fri Jan 24 2014 21:27:03 GMT+0100 (CET)"},"4375":{"date":{"__isSmartRef__":true,"id":4376},"author":"jenslincke","message":"no comment","id":"C0486ADB-A96C-42BD-8E5F-620F67E985F2"},"4376":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:54:33 GMT+0100 (CET)"},"4377":{"date":{"__isSmartRef__":true,"id":4378},"author":"jenslincke","message":"no comment","id":"44C71D6F-8ACE-49DF-B8E7-7BF3381E090F"},"4378":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:56:58 GMT+0100 (CET)"},"4379":{"date":{"__isSmartRef__":true,"id":4380},"author":"jenslincke","message":"no comment","id":"953778E2-A8B2-4B33-B485-031691989E11"},"4380":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:32:56 GMT+0100 (CET)"},"4381":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:31:01 GMT+0100 (CET)"},"4382":{"morph":{"__isSmartRef__":true,"id":689},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4383":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4384}},"4384":{"test01IsMorph":{"__isSmartRef__":true,"id":4385}},"4385":{"varMapping":{"__isSmartRef__":true,"id":4386},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4386":{"this":{"__isSmartRef__":true,"id":4383}},"4387":{},"4388":{"onrestore":{"__isSmartRef__":true,"id":4389},"installLayers":{"__isSmartRef__":true,"id":4397},"simulateStep":{"__isSmartRef__":true,"id":4401},"log":{"__isSmartRef__":true,"id":4405},"clearLog":{"__isSmartRef__":true,"id":4409},"getSimParts":{"__isSmartRef__":true,"id":4413},"showAllProperties":{"__isSmartRef__":true,"id":4417},"initSimulation":{"__isSmartRef__":true,"id":4421},"simulateOneStep":{"__isSmartRef__":true,"id":4425},"resetStatus":{"__isSmartRef__":true,"id":4429},"reset":{"__isSmartRef__":true,"id":4433},"resetSourceHighlighting":{"__isSmartRef__":true,"id":4437}},"4389":{"varMapping":{"__isSmartRef__":true,"id":4390},"source":"function onrestore() {\n try {\n this.installLayers.bind(this).delay(1)\n } catch(e) {\n console.log(\"Error installing layers for object: \" + e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4390":{"this":{"__isSmartRef__":true,"id":689},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4391}},"4391":{"$super":{"__isSmartRef__":true,"id":4392}},"4392":{"varMapping":{"__isSmartRef__":true,"id":4393},"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":4394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4393":{"obj":{"__isSmartRef__":true,"id":689},"name":"onrestore"},"4394":{},"4395":{"timestamp":{"__isSmartRef__":true,"id":4396},"user":"jenslincke","tags":[]},"4396":{"isSerializedDate":true,"string":"Tue Feb 04 2014 22:54:52 GMT+0100 (CET)"},"4397":{"varMapping":{"__isSmartRef__":true,"id":4398},"source":"function installLayers() { \n\nError.subclass(\"MorphNameNotFoundError\", {\n name: \"MorphNameNotFoundError\",\n initialize: function(name, object) {\n this.object = object\n this.morphName = name\n this.message = \"\\\"\" + name + \"\\\" not found\"\n }\n});\n\ncop.create(\"ForceNameFoundLayer\").refineClass(lively.morphic.Morph, {\n get: function(name) {\n var result = cop.proceed(name)\n if (!result) throw new MorphNameNotFoundError(name)\n return result\n }\n})\n\nmodule(\"lively.ast.IDESupport\").load(true);\n\ncop.create(\"ScriptSyntaxHighlightingLayer\").refineClass(lively.ast.JSSyntaxHighlighter, {\n styleTextMorph: function(morph) {\n // console.log(\"start style \" + morph + \" \" + new Date())\n var r = cop.proceed(morph)\n if (morph.highligtScriptNames) {\n morph.highligtScriptNames()\n }\n // console.log(\"stop style \" + morph)\n return r\n }\n}).beGlobal();\n\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":4399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4398":{"this":{"__isSmartRef__":true,"id":689}},"4399":{"timestamp":{"__isSmartRef__":true,"id":4400},"user":"jenslincke","tags":[]},"4400":{"isSerializedDate":true,"string":"Tue Feb 04 2014 22:56:51 GMT+0100 (CET)"},"4401":{"varMapping":{"__isSmartRef__":true,"id":4402},"source":"function simulateStep() {\n this.clearLog()\n this.resetStatus()\n var parts = this.getSimParts()\n // cop.withLayers([ForceNameFoundLayer], function() {\n for(var i=0; i< this.simStepsAtOnce; i++) {\n parts.each(function(ea) {\n try {\n if (ea.$ && ea.$.Stopped) {return }\n ea.simulateStep(this.deltaTime)\n } catch(e) {\n this.log(\"Error simulating \" + ea );\n }\n }, this)\n }\n // }.bind(this))\n this.showAllProperties()\n}","funcProperties":{"__isSmartRef__":true,"id":4403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4402":{"this":{"__isSmartRef__":true,"id":689}},"4403":{"timestamp":{"__isSmartRef__":true,"id":4404},"user":"jenslincke","tags":[]},"4404":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:50:29 GMT+0100 (CET)"},"4405":{"varMapping":{"__isSmartRef__":true,"id":4406},"source":"function log(s) {\n this.get(\"Log\").textString += s + \"\\n\"\n this.get(\"Log\").scrollToBottom()\n}","funcProperties":{"__isSmartRef__":true,"id":4407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4406":{"this":{"__isSmartRef__":true,"id":689}},"4407":{"timestamp":{"__isSmartRef__":true,"id":4408},"user":"jenslincke","tags":[]},"4408":{"isSerializedDate":true,"string":"Wed Jan 22 2014 22:39:54 GMT+0100 (CET)"},"4409":{"varMapping":{"__isSmartRef__":true,"id":4410},"source":"function clearLog() {\n this.get(\"Log\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":4411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4410":{"this":{"__isSmartRef__":true,"id":689}},"4411":{"timestamp":{"__isSmartRef__":true,"id":4412},"user":"jenslincke","tags":[]},"4412":{"isSerializedDate":true,"string":"Wed Jan 22 2014 22:40:14 GMT+0100 (CET)"},"4413":{"varMapping":{"__isSmartRef__":true,"id":4414},"source":"function getSimParts() {\n return this.submorphs.select(function(ea) {\n return ea.isEnergySimulationPart\n })\n}","funcProperties":{"__isSmartRef__":true,"id":4415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4414":{"this":{"__isSmartRef__":true,"id":689}},"4415":{"timestamp":{"__isSmartRef__":true,"id":4416},"user":"jenslincke","tags":[]},"4416":{"isSerializedDate":true,"string":"Fri Jan 24 2014 21:15:21 GMT+0100 (CET)"},"4417":{"varMapping":{"__isSmartRef__":true,"id":4418},"source":"function showAllProperties() {\n this.getSimParts().each(function(ea) {\n ea.printProperties()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":4419},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4418":{"this":{"__isSmartRef__":true,"id":689}},"4419":{"timestamp":{"__isSmartRef__":true,"id":4420},"user":"jenslincke","tags":[]},"4420":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:46:27 GMT+0100 (CET)"},"4421":{"varMapping":{"__isSmartRef__":true,"id":4422},"source":"function initSimulation() {\n var simParts = this.getSimParts()\n simParts.each(function(ea) {\n ea.parsePropeties()\n })\n simParts.each(function(ea) {\n ea.parseSimulationSource()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":4423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4422":{"this":{"__isSmartRef__":true,"id":689}},"4423":{"timestamp":{"__isSmartRef__":true,"id":4424},"user":"jenslincke","tags":[]},"4424":{"isSerializedDate":true,"string":"Sat Jan 25 2014 23:11:49 GMT+0100 (CET)"},"4425":{"varMapping":{"__isSmartRef__":true,"id":4426},"source":"function simulateOneStep() {\n this.clearLog()\n this.getSimParts().each(function(ea) {\n if (ea.$ && ea.$.Stopped) { return };\n ea.simulateOneStep(this.deltaTime)\n }, this)\n this.showAllProperties()\n}","funcProperties":{"__isSmartRef__":true,"id":4427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4426":{"this":{"__isSmartRef__":true,"id":689}},"4427":{"timestamp":{"__isSmartRef__":true,"id":4428},"user":"jenslincke","tags":[]},"4428":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:05:35 GMT+0100 (CET)"},"4429":{"varMapping":{"__isSmartRef__":true,"id":4430},"source":"function resetStatus() {\n this.getSimParts().each(function(ea) {\n ea.resetStatus()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":4431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4430":{"this":{"__isSmartRef__":true,"id":689}},"4431":{"timestamp":{"__isSmartRef__":true,"id":4432},"user":"jenslincke","tags":[]},"4432":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:52:22 GMT+0100 (CET)"},"4433":{"varMapping":{"__isSmartRef__":true,"id":4434},"source":"function reset() {\n this.partsBinMetaInfo.addRequiredModule(\"lively.experimental.MorphAccessor\")\n this.partsBinMetaInfo.addRequiredModule(\"lively.experimental.Autocompletion\")\n this.partsBinMetaInfo.addRequiredModule(\"lively.ast.IDESupport\")\n\n}","funcProperties":{"__isSmartRef__":true,"id":4435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4434":{"this":{"__isSmartRef__":true,"id":689}},"4435":{"timestamp":{"__isSmartRef__":true,"id":4436},"user":"jenslincke","tags":[]},"4436":{"isSerializedDate":true,"string":"Tue Feb 04 2014 22:59:49 GMT+0100 (CET)"},"4437":{"varMapping":{"__isSmartRef__":true,"id":4438},"source":"function resetSourceHighlighting() {\n this.getSimParts().each(function(ea) {\n ea.resetSourceHighlighting()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":4439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4438":{"this":{"__isSmartRef__":true,"id":689}},"4439":{"timestamp":{"__isSmartRef__":true,"id":4440},"user":"jenslincke","tags":[]},"4440":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:55:10 GMT+0100 (CET)"},"4441":{"migrateFrom":{"__isSmartRef__":true,"id":4442},"parsePropeties":{"__isSmartRef__":true,"id":4446},"printProperties":{"__isSmartRef__":true,"id":4450},"parseSimulationSource":{"__isSmartRef__":true,"id":4454},"simulateStep":{"__isSmartRef__":true,"id":4458},"showError":{"__isSmartRef__":true,"id":4461},"throwSimulationProblem":{"__isSmartRef__":true,"id":4465},"updateUI":{"__isSmartRef__":true,"id":4469},"resetStatus":{"__isSmartRef__":true,"id":4473},"simulateOneStep":{"__isSmartRef__":true,"id":4477},"reset":{"__isSmartRef__":true,"id":4481},"resetScriptAnalysis":{"__isSmartRef__":true,"id":4485},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":4489},"logReference":{"__isSmartRef__":true,"id":4493},"showScriptAnalysis":{"__isSmartRef__":true,"id":4497},"showReferenceTo":{"__isSmartRef__":true,"id":4501},"resetSourceHighlighting":{"__isSmartRef__":true,"id":4505},"showNameReference":{"__isSmartRef__":true,"id":4509}},"4442":{"varMapping":{"__isSmartRef__":true,"id":4443},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n \n}","funcProperties":{"__isSmartRef__":true,"id":4444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4443":{"this":{"__isSmartRef__":true,"id":388}},"4444":{"timestamp":{"__isSmartRef__":true,"id":4445},"user":"jenslincke","tags":[]},"4445":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:59 GMT+0100 (CET)"},"4446":{"varMapping":{"__isSmartRef__":true,"id":4447},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":4448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4447":{"this":{"__isSmartRef__":true,"id":388}},"4448":{"timestamp":{"__isSmartRef__":true,"id":4449},"user":"jenslincke","tags":[]},"4449":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:03 GMT+0100 (CET)"},"4450":{"varMapping":{"__isSmartRef__":true,"id":4451},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":4452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4451":{"this":{"__isSmartRef__":true,"id":388}},"4452":{"timestamp":{"__isSmartRef__":true,"id":4453},"user":"jenslincke","tags":[]},"4453":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:34:48 GMT+0100 (CET)"},"4454":{"varMapping":{"__isSmartRef__":true,"id":4455},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":4456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4455":{"this":{"__isSmartRef__":true,"id":388}},"4456":{"timestamp":{"__isSmartRef__":true,"id":4457},"user":"jenslincke","tags":[]},"4457":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:12:57 GMT+0100 (CET)"},"4458":{"varMapping":{"__isSmartRef__":true,"id":4459},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\nvar full = $.Max * $.Factor\nif ($.Heat < full && this.get('Fuel').$.Gas > $.Max * dt &&\n this.get('HeatStorage').$.Energy < 0.3 * this.get('HeatStorage').$.Max) {\n var gas = $.Max * dt\n this.get('Fuel').$.Gas -= gas\n $.Heat += gas \n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && this.get('HeatStorage').$.Energy < this.get('HeatStorage').$.Max ) {\n $.Heat -= delta\n this.get('HeatStorage').$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}\n \n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":4460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4459":{"this":{"__isSmartRef__":true,"id":388}},"4460":{},"4461":{"varMapping":{"__isSmartRef__":true,"id":4462},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4463},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4462":{"this":{"__isSmartRef__":true,"id":388}},"4463":{"timestamp":{"__isSmartRef__":true,"id":4464},"user":"jenslincke","tags":[]},"4464":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:11:23 GMT+0100 (CET)"},"4465":{"varMapping":{"__isSmartRef__":true,"id":4466},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":4467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4466":{"this":{"__isSmartRef__":true,"id":388}},"4467":{"timestamp":{"__isSmartRef__":true,"id":4468},"user":"jenslincke","tags":[]},"4468":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:32:56 GMT+0100 (CET)"},"4469":{"varMapping":{"__isSmartRef__":true,"id":4470},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":4471},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4470":{"this":{"__isSmartRef__":true,"id":388}},"4471":{"timestamp":{"__isSmartRef__":true,"id":4472},"user":"jenslincke","tags":[]},"4472":{"isSerializedDate":true,"string":"Sun Jan 26 2014 15:22:09 GMT+0100 (CET)"},"4473":{"varMapping":{"__isSmartRef__":true,"id":4474},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":4475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4474":{"this":{"__isSmartRef__":true,"id":388}},"4475":{"timestamp":{"__isSmartRef__":true,"id":4476},"user":"jenslincke","tags":[]},"4476":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:54:04 GMT+0100 (CET)"},"4477":{"varMapping":{"__isSmartRef__":true,"id":4478},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4479},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4478":{"this":{"__isSmartRef__":true,"id":388}},"4479":{"timestamp":{"__isSmartRef__":true,"id":4480},"user":"jenslincke","tags":[]},"4480":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:05:58 GMT+0100 (CET)"},"4481":{"varMapping":{"__isSmartRef__":true,"id":4482},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":4483},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4482":{"this":{"__isSmartRef__":true,"id":388}},"4483":{"timestamp":{"__isSmartRef__":true,"id":4484},"user":"jenslincke","tags":[]},"4484":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:35:44 GMT+0100 (CET)"},"4485":{"varMapping":{"__isSmartRef__":true,"id":4486},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":4487},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4486":{"this":{"__isSmartRef__":true,"id":388}},"4487":{"timestamp":{"__isSmartRef__":true,"id":4488},"user":"jenslincke","tags":[]},"4488":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:36:12 GMT+0100 (CET)"},"4489":{"varMapping":{"__isSmartRef__":true,"id":4490},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":4491},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4490":{"this":{"__isSmartRef__":true,"id":388}},"4491":{"timestamp":{"__isSmartRef__":true,"id":4492},"user":"jenslincke","tags":[]},"4492":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:09 GMT+0100 (CET)"},"4493":{"varMapping":{"__isSmartRef__":true,"id":4494},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":4495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4494":{"this":{"__isSmartRef__":true,"id":388}},"4495":{"timestamp":{"__isSmartRef__":true,"id":4496},"user":"jenslincke","tags":[]},"4496":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:15 GMT+0100 (CET)"},"4497":{"varMapping":{"__isSmartRef__":true,"id":4498},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":4499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4498":{"this":{"__isSmartRef__":true,"id":388}},"4499":{"timestamp":{"__isSmartRef__":true,"id":4500},"user":"jenslincke","tags":[]},"4500":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:55:26 GMT+0100 (CET)"},"4501":{"varMapping":{"__isSmartRef__":true,"id":4502},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":4503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4502":{"this":{"__isSmartRef__":true,"id":388}},"4503":{"timestamp":{"__isSmartRef__":true,"id":4504},"user":"jenslincke","tags":[]},"4504":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:25 GMT+0100 (CET)"},"4505":{"varMapping":{"__isSmartRef__":true,"id":4506},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":4507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4506":{"this":{"__isSmartRef__":true,"id":388}},"4507":{"timestamp":{"__isSmartRef__":true,"id":4508},"user":"jenslincke","tags":[]},"4508":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:53:47 GMT+0100 (CET)"},"4509":{"varMapping":{"__isSmartRef__":true,"id":4510},"source":"function showNameReference(name) {\n\n if (this.owner.resetSourceHighlighting)\n this.owner.resetSourceHighlighting()\n\n if (name ==this.lastNameReference) {\n this.lastNameReference = null\n return\n }\n var morph = this.get(name)\n if (morph) morph.show().invoke(\"setBorderColor\", Color.yellow)\n\n this.lastNameReference = name;\n this.showReferenceTo(name)\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":4511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4510":{"this":{"__isSmartRef__":true,"id":388}},"4511":{"timestamp":{"__isSmartRef__":true,"id":4512},"user":"jenslincke","tags":[]},"4512":{"isSerializedDate":true,"string":"Wed Jan 29 2014 11:32:17 GMT+0100 (CET)"},"4513":{"submorphs":[{"__isSmartRef__":true,"id":4514},{"__isSmartRef__":true,"id":4538},{"__isSmartRef__":true,"id":4621},{"__isSmartRef__":true,"id":4627}],"scripts":[],"id":"BCDFBF89-EC99-457D-A530-78EE6AA50603","shape":{"__isSmartRef__":true,"id":4651},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4652},"eventHandler":{"__isSmartRef__":true,"id":4712},"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","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37","5E21C7BB-A7E2-498E-858F-032DCC55A4FC","2072AEFD-449A-4F4E-B8A5-9A6C57DEBB4B","8013D903-1809-4244-AABF-4DF28A1844DB","00F3C15D-F47A-44A0-8AD1-817E6DA58255","6A96318B-D7CD-48E2-913D-29CB6897E3B7","B2263E54-BA2B-4C60-B8A1-92637C28EA08","64C5A21D-7106-40F1-A881-4B19EEF4534D","558820C1-7325-4652-A6CF-33B25DBDDE22"],"partTests":{"__isSmartRef__":true,"id":4713},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":4718},{"__isSmartRef__":true,"id":4719},{"__isSmartRef__":true,"id":4720},{"__isSmartRef__":true,"id":4721},{"__isSmartRef__":true,"id":4722},{"__isSmartRef__":true,"id":4723},{"__isSmartRef__":true,"id":4724},{"__isSmartRef__":true,"id":4725}],"prevScroll":[0,0],"isEnergySimulationPart":true,"layout":{"__isSmartRef__":true,"id":4726},"$":{"__isSmartRef__":true,"id":4727},"owner":null,"units":{"__isSmartRef__":true,"id":4728},"_Rotation":0,"_Scale":1,"scriptAnalysis":{"__isSmartRef__":true,"id":4729},"name":"HeatingSystem","__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4732},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(386.6,-15.1)","_Position":"lively.pt(635.1,7.6)"},"4514":{"submorphs":[],"scripts":[],"id":"17C73E30-F0FE-4832-A19D-A93FAC698D7D","shape":{"__isSmartRef__":true,"id":4515},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":4516},"textChunks":[{"__isSmartRef__":true,"id":4518}],"charsReplaced":"EnergySimulationPart","lastFindLoc":20,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":4520},{"__isSmartRef__":true,"id":4521}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"HeatingSystem","eventHandler":{"__isSmartRef__":true,"id":4522},"owner":{"__isSmartRef__":true,"id":4513},"derivationIds":[7027,"63B54D01-70F2-4A5D-8586-BE6EDD15DB66","C5E299A1-9E8A-477F-985B-DDC8528C798C","34C77E49-70E0-4238-BFC7-110384901543","21EE0BC1-029B-42D1-A2CC-381C601A5F55"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":4513},"isBeingDragged":false,"draggingEnabled":false,"_Rotation":0,"_Scale":0.9999999999999997,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4523},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(102.2,8.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(118.9,-9.0)"},"4515":{"fill":null,"_BorderWidth":0,"__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(180.8,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"4516":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":4517},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4517":{"isSerializedDate":true,"string":"Thu Mar 07 2013 01:25:14 GMT+0100 (CET)"},"4518":{"style":{"__isSmartRef__":true,"id":4519},"chunkOwner":{"__isSmartRef__":true,"id":4514},"_id":"_11241","storedString":"HeatingSystem","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4519":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4520":{"sourceObj":{"__isSmartRef__":true,"id":4514},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4514},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4521":{"sourceObj":{"__isSmartRef__":true,"id":4514},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":4514},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4522":{"morph":{"__isSmartRef__":true,"id":4514},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4523":{"updateLabel":{"__isSmartRef__":true,"id":4524},"renameOwner":{"__isSmartRef__":true,"id":4527},"onFocus":{"__isSmartRef__":true,"id":4530}},"4524":{"varMapping":{"__isSmartRef__":true,"id":4525},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":4526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4525":{"this":{"__isSmartRef__":true,"id":4514}},"4526":{},"4527":{"varMapping":{"__isSmartRef__":true,"id":4528},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":4529},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4528":{"this":{"__isSmartRef__":true,"id":4514}},"4529":{},"4530":{"varMapping":{"__isSmartRef__":true,"id":4531},"source":"function onFocus(evt) {\n $super(evt)\n if (this.owner.showScriptAnalysis) this.owner.showScriptAnalysis()\n}","funcProperties":{"__isSmartRef__":true,"id":4536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4531":{"this":{"__isSmartRef__":true,"id":4514},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4532}},"4532":{"$super":{"__isSmartRef__":true,"id":4533}},"4533":{"varMapping":{"__isSmartRef__":true,"id":4534},"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":4535},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4534":{"obj":{"__isSmartRef__":true,"id":4514},"name":"onFocus"},"4535":{},"4536":{"timestamp":{"__isSmartRef__":true,"id":4537},"user":"jenslincke","tags":[]},"4537":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:45:12 GMT+0100 (CET)"},"4538":{"submorphs":[],"scripts":[],"id":"D8C320FE-7916-4301-99FC-57DF6F7818E8","shape":{"__isSmartRef__":true,"id":4539},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Monaco,monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"SimulationText","partsBinMetaInfo":{"__isSmartRef__":true,"id":4540},"textChunks":[{"__isSmartRef__":true,"id":4556}],"charsReplaced":"","lastFindLoc":430,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4558},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","1BC17AC6-65D2-4DD8-906E-C419087FC3F7","6809C3A5-DCFA-4E76-9397-E4C5BA4A34C7","C528D4FD-5331-4D9A-9352-1088CF72DDDA","A3CD61D5-7936-402F-8EBA-3E2456AB5E0C","39BE0850-B4DE-4E8D-9EC7-7A6A5059775A","2035C52E-14AD-4493-A166-F79162AD66FB","D0F7C47B-437F-457E-929F-EA18E7790FA7","22F56005-4177-492C-8AAF-FF810C44931A","AAC02353-3C4E-47A1-8120-60A2F258771E","9FBBDAD3-5AE3-4342-A9DE-CF7593957E51","88B5A45D-F0EA-4372-952F-E5B93250C15E","782DCC77-008C-4653-BD28-DA4E24401AF9"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"magnets":[{"__isSmartRef__":true,"id":4559},{"__isSmartRef__":true,"id":4560},{"__isSmartRef__":true,"id":4561},{"__isSmartRef__":true,"id":4562},{"__isSmartRef__":true,"id":4563},{"__isSmartRef__":true,"id":4564},{"__isSmartRef__":true,"id":4565},{"__isSmartRef__":true,"id":4566}],"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":4567},"draggingEnabled":false,"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":4513},"savedTextString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas\n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}","attributeConnections":[{"__isSmartRef__":true,"id":4568},{"__isSmartRef__":true,"id":4570}],"doNotSerialize":["$$savedTextString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":77,"_Rotation":0,"_Scale":1,"#startLetters":"emphasize","lastAutocompletionWord":null,"wordCompletionMorph":null,"previousSelection":[412,412],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas\n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}\n","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4572},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","withLayers":["Global.AutocompletionLayer"],"_Position":"lively.pt(10.6,91.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(343.9,-5.8)"},"4539":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_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(527.8,235.5)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"4540":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4541},{"__isSmartRef__":true,"id":4543},{"__isSmartRef__":true,"id":4545},{"__isSmartRef__":true,"id":4547},{"__isSmartRef__":true,"id":4549},{"__isSmartRef__":true,"id":4551},{"__isSmartRef__":true,"id":4553}],"lastModifiedDate":{"__isSmartRef__":true,"id":4555},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4541":{"date":{"__isSmartRef__":true,"id":4542},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"4542":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"4543":{"date":{"__isSmartRef__":true,"id":4544},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"4544":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"4545":{"date":{"__isSmartRef__":true,"id":4546},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"4546":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"4547":{"date":{"__isSmartRef__":true,"id":4548},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"4548":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"4549":{"date":{"__isSmartRef__":true,"id":4550},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"4550":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"4551":{"date":{"__isSmartRef__":true,"id":4552},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"4552":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"4553":{"date":{"__isSmartRef__":true,"id":4554},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"4554":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"4555":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"4556":{"style":{"__isSmartRef__":true,"id":4557},"chunkOwner":{"__isSmartRef__":true,"id":4538},"_id":"_10","storedString":"var full = $.Max * $.Factor\nif ($.Heat < full && #Fuel.$.Gas > $.Max * dt &&\n #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) {\n var gas = $.Max * dt\n #Fuel.$.Gas -= gas\n $.Heat += gas\n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) {\n $.Heat -= delta\n #HeatStorage.$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4557":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4558":{"morph":{"__isSmartRef__":true,"id":4538},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4559":{"morph":{"__isSmartRef__":true,"id":4538},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(703.3,404.0)"},"4560":{"morph":{"__isSmartRef__":true,"id":4538},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(802.0,404.0)"},"4561":{"morph":{"__isSmartRef__":true,"id":4538},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(900.6,404.0)"},"4562":{"morph":{"__isSmartRef__":true,"id":4538},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(900.6,444.7)"},"4563":{"morph":{"__isSmartRef__":true,"id":4538},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(900.6,485.4)"},"4564":{"morph":{"__isSmartRef__":true,"id":4538},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(802.0,485.4)"},"4565":{"morph":{"__isSmartRef__":true,"id":4538},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(703.3,485.4)"},"4566":{"morph":{"__isSmartRef__":true,"id":4538},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(703.3,444.7)"},"4567":{"resizeWidth":true,"resizeHeight":true},"4568":{"sourceObj":{"__isSmartRef__":true,"id":4538},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":4513},"targetMethodName":"parseSimulationSource","varMapping":{"__isSmartRef__":true,"id":4569},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4569":{"source":{"__isSmartRef__":true,"id":4538},"target":{"__isSmartRef__":true,"id":4513}},"4570":{"sourceObj":{"__isSmartRef__":true,"id":4538},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":4538},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":4571},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4571":{"source":{"__isSmartRef__":true,"id":4538},"target":{"__isSmartRef__":true,"id":4538}},"4572":{"boundEval":{"__isSmartRef__":true,"id":4573},"getDoitContext":{"__isSmartRef__":true,"id":4581},"installLayers":{"__isSmartRef__":true,"id":4589},"onLoad":{"__isSmartRef__":true,"id":4593},"highligtScriptNames":{"__isSmartRef__":true,"id":4597},"getAutoCompletion":{"__isSmartRef__":true,"id":4601},"reset":{"__isSmartRef__":true,"id":4609},"getLastWordRange":{"__isSmartRef__":true,"id":4613}},"4573":{"varMapping":{"__isSmartRef__":true,"id":4574},"source":"function boundEval(str) {\n // Some little (Tim calls it ugly) funny preprocessor Macros\n str = \"var $ = this.$; var dt=this.owner.deltaTime;\\n\" + str\n\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n // str = str.replace(/#([A-Za-z][A-Za-z0-9]*)/g, \"this.get('$1')\")\n // alertOK(\"eval \" + str)\n this.owner.resetStatus()\n try {\n return cop.withLayers([SpecialSyntaxWorkspaceLayer, ForceNameFoundLayer], function() {\n // TODO: $super somehow catches the error here...\n return this.constructor.prototype.boundEval.bind(this)(str)\n }.bind(this))\n } catch(e) {\n this.owner.showError(e)\n } finally {\n var sim = this.get(\"EnergySimulation\");\n if (sim) sim.showAllProperties()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4574":{"this":{"__isSmartRef__":true,"id":4538},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4575}},"4575":{"$super":{"__isSmartRef__":true,"id":4576}},"4576":{"varMapping":{"__isSmartRef__":true,"id":4577},"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":4578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4577":{"obj":{"__isSmartRef__":true,"id":4538},"name":"boundEval"},"4578":{},"4579":{"timestamp":{"__isSmartRef__":true,"id":4580},"user":"jenslincke","tags":[]},"4580":{"isSerializedDate":true,"string":"Tue Jan 28 2014 11:28:47 GMT+0100 (CET)"},"4581":{"varMapping":{"__isSmartRef__":true,"id":4582},"source":"function getDoitContext() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":4587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4582":{"this":{"__isSmartRef__":true,"id":4538},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4583}},"4583":{"$super":{"__isSmartRef__":true,"id":4584}},"4584":{"varMapping":{"__isSmartRef__":true,"id":4585},"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":4586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4585":{"obj":{"__isSmartRef__":true,"id":4538},"name":"getDoitContext"},"4586":{},"4587":{"timestamp":{"__isSmartRef__":true,"id":4588},"user":"jenslincke","tags":[]},"4588":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:42:09 GMT+0100 (CET)"},"4589":{"varMapping":{"__isSmartRef__":true,"id":4590},"source":"function installLayers() {\n\n// we use accessors here, so we don't have to bother with JavaScript syntax....\n\ncop.create(\"SpecialSyntaxWorkspaceLayer\")\n.refineClass(lively.morphic.Text, {\n get value() { return this.textString },\n set value(s) { return this.textString = s}\n})\n.refineClass(lively.morphic.List, {\n get value() { return this.getList() },\n set value(list) { return this.setList(list)}\n})\n.refineClass(lively.morphic.Image, {\n get value() { return this.getImageURL() },\n set value(url) { return this.setImageURL(url)}\n})\n\n}","funcProperties":{"__isSmartRef__":true,"id":4591},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4590":{"this":{"__isSmartRef__":true,"id":4538}},"4591":{"timestamp":{"__isSmartRef__":true,"id":4592},"user":"jenslincke","tags":[]},"4592":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:44 GMT+0100 (CET)"},"4593":{"varMapping":{"__isSmartRef__":true,"id":4594},"source":"function onLoad() {\n this.installLayers()\n}","funcProperties":{"__isSmartRef__":true,"id":4595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4594":{"this":{"__isSmartRef__":true,"id":4538}},"4595":{"timestamp":{"__isSmartRef__":true,"id":4596},"user":"jenslincke","tags":[]},"4596":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:41:45 GMT+0100 (CET)"},"4597":{"varMapping":{"__isSmartRef__":true,"id":4598},"source":"function highligtScriptNames(force) {\n\n // if (this.lastHighlightedCode == this.textString && !force) return\n // this.lastHighlightedCode = this.textString\n // delete this.lastHighlightedCode\n\n // var range = this.getSelectionRange()\n\n // clean up old autoformatte\n this.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformatHighlight) {\n ea.styleText({doit: ''})\n }\n })\n\n // this.emphasizeAll({color: Color.black})\n var src = this.textString\n var nameReg = /#([A-Za-z][A-Za-z0-9]*)(?:\\.\\$\\.([A-Za-z][A-Za-z0-9]*))?/g\n var m;\n var obj = this.getDoitContext()\n while(m = nameReg.exec(src)) {\n var name = m[1]\n var morph = obj.get(name)\n var c = morph ? CrayonColors.ocean : CrayonColors.tangerine;\n var from = nameReg.lastIndex - m[0].length, to = from + m[1].length + 1\n this.emphasize({color: c}, from, to)\n if (morph) {\n this.emphasize({doit: {\n isAutoformatHighlight: true,\n code: 'this.show()',\n context: morph}}, from + 1, to)\n if (morph.logReference) morph.logReference(obj)\n }\n\n if (morph && m[2]) {\n var c2 = morph.$ && (morph.$[m[2]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + m[1].length + 4,\n nameReg.lastIndex)\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + m[1].length + 1,\n nameReg.lastIndex - m[0].length + m[1].length + 4)\n\n }\n }\n var nameReg = /[^A-Za-z0-9.]\\$\\.([A-Za-z][A-Za-z0-9]*)/g\n while(m = nameReg.exec(src)) {\n //alert(m[1])\n var morph = obj\n if (morph && m[1]) {\n var c2 = morph.$ && (morph.$[m[1]] !== undefined)? CrayonColors.ocean : CrayonColors.tangerine;\n this.emphasize({color: c2},\n nameReg.lastIndex - m[0].length + 2,\n nameReg.lastIndex)\n\n // hide the $\n this.emphasize({color: Color.gray},\n nameReg.lastIndex - m[0].length + 0,\n nameReg.lastIndex - m[0].length + 3)\n\n }\n }\n\n // special variables...\n this.emphasizeRegex(/[^A-Za-z0-9.]dt[^A-Za-z0-9.]/g, {color: Color.green})\n\n\n // if (range) this.setSelectionRange(range[0], range[1])\n // return true // did we change it?\n}","funcProperties":{"__isSmartRef__":true,"id":4599},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4598":{"this":{"__isSmartRef__":true,"id":4538}},"4599":{"timestamp":{"__isSmartRef__":true,"id":4600},"user":"jenslincke","tags":[]},"4600":{"isSerializedDate":true,"string":"Tue Jan 28 2014 19:10:09 GMT+0100 (CET)"},"4601":{"varMapping":{"__isSmartRef__":true,"id":4602},"source":"function getAutoCompletion() {\n // this.getAutoCompletion()\n var names = [];\n var obj = this.getDoitContext()\n obj.owner.submorphs.each(function(ea) {\n names.push( \"#\" + ea.name)\n if (ea.$) {\n Properties.own(ea.$).each(function(prop) {\n names.push( \"#\" + ea.name + \".$.\" + prop)\n })\n }\n })\n if (obj.$) {\n Properties.own(obj.$).each(function(prop) {\n names.push( \"$.\" + prop)\n })\n }\n\n var ac = new AutoCompletion();\n ac.list = names\n ac.list.pushAll(ac.getMathFunctions())\n ac.addLocalSource(this.textString)\n return ac\n}","funcProperties":{"__isSmartRef__":true,"id":4607},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4602":{"this":{"__isSmartRef__":true,"id":4538},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4603}},"4603":{"$super":{"__isSmartRef__":true,"id":4604}},"4604":{"varMapping":{"__isSmartRef__":true,"id":4605},"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":4606},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4605":{"obj":{"__isSmartRef__":true,"id":4538},"name":"getAutoCompletion"},"4606":{},"4607":{"timestamp":{"__isSmartRef__":true,"id":4608},"user":"jenslincke","tags":[]},"4608":{"isSerializedDate":true,"string":"Wed Jan 29 2014 00:33:17 GMT+0100 (CET)"},"4609":{"varMapping":{"__isSmartRef__":true,"id":4610},"source":"function reset() {\n this.setWithLayers([AutocompletionLayer])\n}","funcProperties":{"__isSmartRef__":true,"id":4611},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4610":{"this":{"__isSmartRef__":true,"id":4538}},"4611":{"timestamp":{"__isSmartRef__":true,"id":4612},"user":"jenslincke","tags":[]},"4612":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:58:01 GMT+0100 (CET)"},"4613":{"varMapping":{"__isSmartRef__":true,"id":4614},"source":"function getLastWordRange(optCursorPos) {\n if (optCursorPos !== undefined) {\n var range = [optCursorPos, optCursorPos] \n } else {\n range = this.getSelectionRange() || this.priorSelectionRange;\n }\n var match = this.lastMatchBefore(/\\n| |(f) /g, range[0]- 1) // \n if (match)\n return [match.index + 1, range[0]]\n else {\n match = this.lastMatchBefore(/^[a-zA-Z0-9$.]+/g, range[0]- 1) // \n if (match) return [0, range[0]]\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4619},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4614":{"this":{"__isSmartRef__":true,"id":4538},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4615}},"4615":{"$super":{"__isSmartRef__":true,"id":4616}},"4616":{"varMapping":{"__isSmartRef__":true,"id":4617},"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":4618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4617":{"obj":{"__isSmartRef__":true,"id":4538},"name":"getLastWordRange"},"4618":{},"4619":{"timestamp":{"__isSmartRef__":true,"id":4620},"user":"jenslincke","tags":[]},"4620":{"isSerializedDate":true,"string":"Tue Jan 28 2014 23:59:58 GMT+0100 (CET)"},"4621":{"submorphs":[],"scripts":[],"id":"9A2E4F6C-543D-4EEB-94DB-F39C12DA01BE","shape":{"__isSmartRef__":true,"id":4622},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Status","partsBinMetaInfo":{"__isSmartRef__":true,"id":205},"textChunks":[{"__isSmartRef__":true,"id":4623}],"charsReplaced":" ","lastFindLoc":0,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4625},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":4513},"_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":4626},"draggingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(14.3,320.5)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(355.3,-8.6)","_TextColor":"Color.rgb(0,0,0)"},"4622":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(519.9,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"4623":{"style":{"__isSmartRef__":true,"id":4624},"chunkOwner":{"__isSmartRef__":true,"id":4621},"_id":"_13022","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4624":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4625":{"morph":{"__isSmartRef__":true,"id":4621},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4626":{"moveVertical":true,"resizeWidth":true},"4627":{"submorphs":[],"scripts":[],"id":"CADFFF2C-905C-49BD-9EEE-FDCCB89864CE","shape":{"__isSmartRef__":true,"id":4628},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"PropertiesText","partsBinMetaInfo":{"__isSmartRef__":true,"id":4629},"textChunks":[{"__isSmartRef__":true,"id":4645}],"charsReplaced":"false","lastFindLoc":28,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4647},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":4513},"isInputLine":false,"attributeConnections":[{"__isSmartRef__":true,"id":4648}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"savedTextString":"Heat: 0.0778 [kW/s]\nStopped: false\nFactor: 20\nMax: 5 [kW]","_WordBreak":"break-all","layout":{"__isSmartRef__":true,"id":4650},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.6,33.2)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(341.2,-14.2)"},"4628":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(513.4,56.7)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"4629":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4630},{"__isSmartRef__":true,"id":4632},{"__isSmartRef__":true,"id":4634},{"__isSmartRef__":true,"id":4636},{"__isSmartRef__":true,"id":4638},{"__isSmartRef__":true,"id":4640},{"__isSmartRef__":true,"id":4642}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":4644},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4630":{"date":{"__isSmartRef__":true,"id":4631},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"4631":{"isSerializedDate":true,"string":"Tue Mar 12 2013 17:31:56 GMT+0100 (CET)"},"4632":{"date":{"__isSmartRef__":true,"id":4633},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"4633":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"4634":{"date":{"__isSmartRef__":true,"id":4635},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"4635":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"4636":{"date":{"__isSmartRef__":true,"id":4637},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"4637":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"4638":{"date":{"__isSmartRef__":true,"id":4639},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"4639":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"4640":{"date":{"__isSmartRef__":true,"id":4641},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"4641":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"4642":{"date":{"__isSmartRef__":true,"id":4643},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"4643":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:36:22 GMT+0100 (CET)"},"4644":{"isSerializedDate":true,"string":"Tue Mar 12 2013 18:35:33 GMT+0100 (CET)"},"4645":{"style":{"__isSmartRef__":true,"id":4646},"chunkOwner":{"__isSmartRef__":true,"id":4627},"_id":"_13030","storedString":"Heat: 2.0469 [kW/s]\nStopped: false\nFactor: 20\nMax: 5 [kW]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4646":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4647":{"morph":{"__isSmartRef__":true,"id":4627},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4648":{"sourceObj":{"__isSmartRef__":true,"id":4627},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":4513},"targetMethodName":"parsePropeties","varMapping":{"__isSmartRef__":true,"id":4649},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4649":{"source":{"__isSmartRef__":true,"id":4627},"target":{"__isSmartRef__":true,"id":4513}},"4650":{"resizeWidth":true},"4651":{"_BorderWidth":4.284,"_ClipMode":"visible","_BorderRadius":14.180000000000001,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(541.7,338.3)","_BorderColor":"Color.rgb(187,187,187)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(1.0,1.0)"},"4652":{"partsSpaceName":"PartsBin/Jens","comment":"A plain simple rectangle","migrationLevel":4,"partName":"EnergySimulationPart","changes":[{"__isSmartRef__":true,"id":4653},{"__isSmartRef__":true,"id":4655},{"__isSmartRef__":true,"id":4657},{"__isSmartRef__":true,"id":4659},{"__isSmartRef__":true,"id":4661},{"__isSmartRef__":true,"id":4663},{"__isSmartRef__":true,"id":4665},{"__isSmartRef__":true,"id":4667},{"__isSmartRef__":true,"id":4669},{"__isSmartRef__":true,"id":4671},{"__isSmartRef__":true,"id":4673},{"__isSmartRef__":true,"id":4675},{"__isSmartRef__":true,"id":4677},{"__isSmartRef__":true,"id":4679},{"__isSmartRef__":true,"id":4681},{"__isSmartRef__":true,"id":4683},{"__isSmartRef__":true,"id":4685},{"__isSmartRef__":true,"id":4687},{"__isSmartRef__":true,"id":4689},{"__isSmartRef__":true,"id":4691},{"__isSmartRef__":true,"id":4693},{"__isSmartRef__":true,"id":4695},{"__isSmartRef__":true,"id":4697},{"__isSmartRef__":true,"id":4699},{"__isSmartRef__":true,"id":4701},{"__isSmartRef__":true,"id":4703},{"__isSmartRef__":true,"id":4705},{"__isSmartRef__":true,"id":4707},{"__isSmartRef__":true,"id":4709}],"lastModifiedDate":{"__isSmartRef__":true,"id":4711},"revisionOnLoad":204638,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4653":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":4654}},"4654":{"isSerializedDate":true,"string":"Fri Jun 21 2013 00:16:24 GMT+0200 (CEST)"},"4655":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":4656}},"4656":{"isSerializedDate":true,"string":"Thu May 30 2013 09:18:06 GMT+0200 (CEST)"},"4657":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":4658}},"4658":{"isSerializedDate":true,"string":"Wed Jan 23 2013 12:57:18 GMT+0100 (CET)"},"4659":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":4660}},"4660":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"4661":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":4662}},"4662":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"4663":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":4664}},"4664":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"4665":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":4666}},"4666":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"4667":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":4668}},"4668":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"4669":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":4670}},"4670":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"4671":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":4672}},"4672":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:35:08 GMT+0200 (CEST)"},"4673":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":4674}},"4674":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:35:51 GMT+0100 (CET)"},"4675":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":4676}},"4676":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:42:31 GMT+0100 (CET)"},"4677":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":4678}},"4678":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:47:05 GMT+0100 (CET)"},"4679":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":4680}},"4680":{"isSerializedDate":true,"string":"Thu May 30 2013 00:36:50 GMT+0200 (CEST)"},"4681":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":4682}},"4682":{"isSerializedDate":true,"string":"Tue Jun 18 2013 20:49:27 GMT+0200 (CEST)"},"4683":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":4684}},"4684":{"isSerializedDate":true,"string":"Tue Jul 30 2013 08:20:51 GMT+0200 (CEST)"},"4685":{"date":{"__isSmartRef__":true,"id":4686},"author":"jenslincke","message":"no comment","id":"DFD9B858-DED4-4045-975D-D7DDA7A77A31"},"4686":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:02:28 GMT+0100 (CET)"},"4687":{"date":{"__isSmartRef__":true,"id":4688},"author":"jenslincke","message":"no comment","id":"BAEA1E7E-B9FE-4406-8ECD-3A1940CF9EB5"},"4688":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:10:08 GMT+0100 (CET)"},"4689":{"date":{"__isSmartRef__":true,"id":4690},"author":"jenslincke","message":"no comment","id":"B200899F-0CF6-42D9-8833-B7FEE4B84D77"},"4690":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:24:55 GMT+0100 (CET)"},"4691":{"date":{"__isSmartRef__":true,"id":4692},"author":"jenslincke","message":"no comment","id":"ECE4F1AA-AD2F-4520-A109-EA618BDFE3E6"},"4692":{"isSerializedDate":true,"string":"Wed Jan 22 2014 18:29:33 GMT+0100 (CET)"},"4693":{"date":{"__isSmartRef__":true,"id":4694},"author":"jenslincke","message":"no comment","id":"DE87D1E0-38E7-4415-8B9B-BA2FAC6AC267"},"4694":{"isSerializedDate":true,"string":"Wed Jan 22 2014 21:07:26 GMT+0100 (CET)"},"4695":{"date":{"__isSmartRef__":true,"id":4696},"author":"jenslincke","message":"no comment","id":"59439CF0-C76A-4626-AC97-68FAAE29042B"},"4696":{"isSerializedDate":true,"string":"Wed Jan 22 2014 22:23:13 GMT+0100 (CET)"},"4697":{"date":{"__isSmartRef__":true,"id":4698},"author":"jenslincke","message":"no comment","id":"35CDB78C-90A1-41C3-8013-71983F1AB4C5"},"4698":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:58:48 GMT+0100 (CET)"},"4699":{"date":{"__isSmartRef__":true,"id":4700},"author":"jenslincke","message":"no comment","id":"FBF4AB71-8815-40E0-9950-17F00AEA5CD6"},"4700":{"isSerializedDate":true,"string":"Fri Jan 24 2014 18:59:27 GMT+0100 (CET)"},"4701":{"date":{"__isSmartRef__":true,"id":4702},"author":"jenslincke","message":"no comment","id":"1C88D515-B6FC-47AF-A607-D513648CB8F5"},"4702":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:03:44 GMT+0100 (CET)"},"4703":{"date":{"__isSmartRef__":true,"id":4704},"author":"jenslincke","message":"no comment","id":"8A344209-C8BE-4D3D-82F7-A110F79A9C92"},"4704":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:24:12 GMT+0100 (CET)"},"4705":{"date":{"__isSmartRef__":true,"id":4706},"author":"jenslincke","message":"no comment","id":"1EABBCC6-63F1-48E2-B495-348A658D7F57"},"4706":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:26:15 GMT+0100 (CET)"},"4707":{"date":{"__isSmartRef__":true,"id":4708},"author":"jenslincke","message":"no comment","id":"33BAD9C1-6A48-4D01-9821-7E17C8FF19F2"},"4708":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:35:38 GMT+0100 (CET)"},"4709":{"date":{"__isSmartRef__":true,"id":4710},"author":"jenslincke","message":"I love magic text","id":"816758E2-AEBC-4FFA-BB5D-699123958167"},"4710":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:54:51 GMT+0100 (CET)"},"4711":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:15 GMT+0100 (CET)"},"4712":{"morph":{"__isSmartRef__":true,"id":4513},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4713":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4714}},"4714":{"test01IsMorph":{"__isSmartRef__":true,"id":4715}},"4715":{"varMapping":{"__isSmartRef__":true,"id":4716},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4716":{"this":{"__isSmartRef__":true,"id":4713}},"4717":{},"4718":{"morph":{"__isSmartRef__":true,"id":4513},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(693.3,367.1)"},"4719":{"morph":{"__isSmartRef__":true,"id":4513},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(801.6,367.1)"},"4720":{"morph":{"__isSmartRef__":true,"id":4513},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(909.9,367.1)"},"4721":{"morph":{"__isSmartRef__":true,"id":4513},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(909.9,431.1)"},"4722":{"morph":{"__isSmartRef__":true,"id":4513},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(909.9,495.2)"},"4723":{"morph":{"__isSmartRef__":true,"id":4513},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(801.6,495.2)"},"4724":{"morph":{"__isSmartRef__":true,"id":4513},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(693.3,495.2)"},"4725":{"morph":{"__isSmartRef__":true,"id":4513},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(693.3,431.1)"},"4726":{"adjustForNewBounds":true},"4727":{"Heat":2.046857645914998,"Stopped":false,"Factor":20,"Max":5},"4728":{"Heat":"kW/s","Max":"kW"},"4729":{"referencedBy":{"__isSmartRef__":true,"id":4730},"references":{"__isSmartRef__":true,"id":4731}},"4730":{},"4731":{},"4732":{"migrateFrom":{"__isSmartRef__":true,"id":4733},"parsePropeties":{"__isSmartRef__":true,"id":4737},"printProperties":{"__isSmartRef__":true,"id":4741},"parseSimulationSource":{"__isSmartRef__":true,"id":4745},"simulateStep":{"__isSmartRef__":true,"id":4749},"showError":{"__isSmartRef__":true,"id":4752},"throwSimulationProblem":{"__isSmartRef__":true,"id":4756},"updateUI":{"__isSmartRef__":true,"id":4760},"resetStatus":{"__isSmartRef__":true,"id":4764},"simulateOneStep":{"__isSmartRef__":true,"id":4768},"reset":{"__isSmartRef__":true,"id":4772},"resetScriptAnalysis":{"__isSmartRef__":true,"id":4776},"ensureScriptAnalysis":{"__isSmartRef__":true,"id":4780},"logReference":{"__isSmartRef__":true,"id":4784},"showScriptAnalysis":{"__isSmartRef__":true,"id":4788},"showReferenceTo":{"__isSmartRef__":true,"id":4792},"resetSourceHighlighting":{"__isSmartRef__":true,"id":4796}},"4733":{"varMapping":{"__isSmartRef__":true,"id":4734},"source":"function migrateFrom(other) {\n this.$ = Object.clone(other.$)\n this.units = Object.clone(other.units)\n this.printProperties()\n if(other.get(\"SimulationText\"))\n this.get(\"SimulationText\").textString = other.get(\"SimulationText\").textString\n this.parseSimulationSource()\n this.setExtent(other.getExtent())\n this.name = other.name\n \n}","funcProperties":{"__isSmartRef__":true,"id":4735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4734":{"this":{"__isSmartRef__":true,"id":4513}},"4735":{"timestamp":{"__isSmartRef__":true,"id":4736},"user":"jenslincke","tags":[]},"4736":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:59 GMT+0100 (CET)"},"4737":{"varMapping":{"__isSmartRef__":true,"id":4738},"source":"function parsePropeties() {\n var obj = {}\n var units = {}\n this.resetStatus()\n try {\n\n this.get(\"PropertiesText\").textString.split(\"\\n\").each(function(line){\n var m = line.match(/([^:]*): *(.*)/)\n if (m) {\n var m2 = m[2].match(/(.*) \\[([^\\]]+)\\]/)\n if (m2) {\n units[m[1]] = m2[2]\n obj[m[1]] = JSON.parse(m2[1])\n } else {\n obj[m[1]] = JSON.parse(m[2])\n }\n }\n })\n } catch(e) {\n this.showError(e)\n }\n this.$ = obj\n this.units = units\n return obj\n}","funcProperties":{"__isSmartRef__":true,"id":4739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4738":{"this":{"__isSmartRef__":true,"id":4513}},"4739":{"timestamp":{"__isSmartRef__":true,"id":4740},"user":"jenslincke","tags":[]},"4740":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:32:03 GMT+0100 (CET)"},"4741":{"varMapping":{"__isSmartRef__":true,"id":4742},"source":"function printProperties() {\n var obj = this.$\n this.get(\"PropertiesText\").textString = Properties.own(obj).collect(function(ea) {\n var str = ea + \": \" + JSON.stringify(obj[ea] && obj[ea].roundTo ? obj[ea].roundTo(0.0001) : obj[ea])\n if (this.units && this.units[ea]) str += \" [\" +this.units[ea] +\"]\"\n return str\n }, this).join(\"\\n\")\n}","funcProperties":{"__isSmartRef__":true,"id":4743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4742":{"this":{"__isSmartRef__":true,"id":4513}},"4743":{"timestamp":{"__isSmartRef__":true,"id":4744},"user":"jenslincke","tags":[]},"4744":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:34:48 GMT+0100 (CET)"},"4745":{"varMapping":{"__isSmartRef__":true,"id":4746},"source":"function parseSimulationSource() {\n this.resetStatus()\n var str = this.get(\"SimulationText\").textString\n str = str.replace(/#([A-Za-z][A-Za-z0-9]*(?:#[A-Za-z0-9]*)*)(\\$)?(?!#)/g, \n function(m, $1, $2) {\n var s = \"this\"\n $1.split(\"#\").each(function(ea) { s += \".get('\" + ea+\"')\"})\n if ($2) s += \".value\"\n return s\n })\n\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").textString = \"\"\n\n try {\n str = \"function(dt) {\\n// AUTO GENERATED \\n try {\\n\"\n +\"var problem = this.throwSimulationProblem;\\n\"\n +\"var $ = this.$;\\n\"+ str + \"\\n\" +\n \"\\n} catch(e) {this.showError(e)}\" + \"}\"\n \n this.addScript(str, \"simulateStep\")\n \n } catch(e) {\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").textString = \"\" + e\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":4747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4746":{"this":{"__isSmartRef__":true,"id":4513}},"4747":{"timestamp":{"__isSmartRef__":true,"id":4748},"user":"jenslincke","tags":[]},"4748":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:12:57 GMT+0100 (CET)"},"4749":{"varMapping":{"__isSmartRef__":true,"id":4750},"source":"function (dt) {\n// AUTO GENERATED \n try {\nvar problem = this.throwSimulationProblem;\nvar $ = this.$;\nvar full = $.Max * $.Factor\nif ($.Heat < full && this.get('Fuel').$.Gas > $.Max * dt &&\n this.get('HeatStorage').$.Energy < 0.3 * this.get('HeatStorage').$.Max) {\n var gas = $.Max * dt\n this.get('Fuel').$.Gas -= gas\n $.Heat += gas\n}\n\nvar delta = ($.Heat / $.Factor) * dt\nif ($.Heat > 2 * $.Max && this.get('HeatStorage').$.Energy < this.get('HeatStorage').$.Max ) {\n $.Heat -= delta\n this.get('HeatStorage').$.Energy += 0.8 * delta\n} else {\n $.Heat -= 0.2 * delta\n}\n\n} catch(e) {this.showError(e)}}","funcProperties":{"__isSmartRef__":true,"id":4751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4750":{"this":{"__isSmartRef__":true,"id":4513}},"4751":{},"4752":{"varMapping":{"__isSmartRef__":true,"id":4753},"source":"function showError(e) {\n if (e.isSimulationProblem) {\n this.get(\"Status\").setFill(Color.blue)\n this.get(\"Status\").setTextColor(Color.white)\n this.get(\"Status\").textString = e.value\n } else {\n if(e.name == \"MorphNameNotFoundError\") {\n var regEx = new RegExp(\"#\"+e.morphName,\"g\")\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeRegex(regEx, {\n backgroundColor: Color.red\n })\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n \n }\n this.get(\"Status\").setFill(Color.red)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = e\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4753":{"this":{"__isSmartRef__":true,"id":4513}},"4754":{"timestamp":{"__isSmartRef__":true,"id":4755},"user":"jenslincke","tags":[]},"4755":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:11:23 GMT+0100 (CET)"},"4756":{"varMapping":{"__isSmartRef__":true,"id":4757},"source":"function throwSimulationProblem(s) {\n throw {isSimulationProblem: true, value: s}\n}","funcProperties":{"__isSmartRef__":true,"id":4758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4757":{"this":{"__isSmartRef__":true,"id":4513}},"4758":{"timestamp":{"__isSmartRef__":true,"id":4759},"user":"jenslincke","tags":[]},"4759":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:32:56 GMT+0100 (CET)"},"4760":{"varMapping":{"__isSmartRef__":true,"id":4761},"source":"function updateUI() {\n this.get(\"SimulationText\").align(\n this.get(\"SimulationText\").bounds().topLeft(),\n this.get(\"PropertiesText\").bounds().bottomLeft());\n \n \n}","funcProperties":{"__isSmartRef__":true,"id":4762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4761":{"this":{"__isSmartRef__":true,"id":4513}},"4762":{"timestamp":{"__isSmartRef__":true,"id":4763},"user":"jenslincke","tags":[]},"4763":{"isSerializedDate":true,"string":"Sun Jan 26 2014 15:22:09 GMT+0100 (CET)"},"4764":{"varMapping":{"__isSmartRef__":true,"id":4765},"source":"function resetStatus() {\n this.get(\"Status\").setFill(null)\n this.get(\"Status\").setTextColor(Color.black)\n this.get(\"Status\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":4766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4765":{"this":{"__isSmartRef__":true,"id":4513}},"4766":{"timestamp":{"__isSmartRef__":true,"id":4767},"user":"jenslincke","tags":[]},"4767":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:54:04 GMT+0100 (CET)"},"4768":{"varMapping":{"__isSmartRef__":true,"id":4769},"source":"function simulateOneStep(dt) {\n if (dt === undefined)\n dt = this.owner.deltaTime;\n try {\n cop.withLayers([ForceNameFoundLayer], function() {\n this.simulateStep(dt)\n }.bind(this))\n } catch(e) {\n this.showError(e)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4769":{"this":{"__isSmartRef__":true,"id":4513}},"4770":{"timestamp":{"__isSmartRef__":true,"id":4771},"user":"jenslincke","tags":[]},"4771":{"isSerializedDate":true,"string":"Tue Jan 28 2014 15:05:58 GMT+0100 (CET)"},"4772":{"varMapping":{"__isSmartRef__":true,"id":4773},"source":"function reset() {\n \n\n}","funcProperties":{"__isSmartRef__":true,"id":4774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4773":{"this":{"__isSmartRef__":true,"id":4513}},"4774":{"timestamp":{"__isSmartRef__":true,"id":4775},"user":"jenslincke","tags":[]},"4775":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:35:44 GMT+0100 (CET)"},"4776":{"varMapping":{"__isSmartRef__":true,"id":4777},"source":"function resetScriptAnalysis() {\n this.scriptAnalysis = {}\n}","funcProperties":{"__isSmartRef__":true,"id":4778},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4777":{"this":{"__isSmartRef__":true,"id":4513}},"4778":{"timestamp":{"__isSmartRef__":true,"id":4779},"user":"jenslincke","tags":[]},"4779":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:36:12 GMT+0100 (CET)"},"4780":{"varMapping":{"__isSmartRef__":true,"id":4781},"source":"function ensureScriptAnalysis(reset) {\n if (!this.scriptAnalysis || reset)\n this.scriptAnalysis = {\n referencedBy: {},\n }\n return this.scriptAnalysis\n}","funcProperties":{"__isSmartRef__":true,"id":4782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4781":{"this":{"__isSmartRef__":true,"id":4513}},"4782":{"timestamp":{"__isSmartRef__":true,"id":4783},"user":"jenslincke","tags":[]},"4783":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:09 GMT+0100 (CET)"},"4784":{"varMapping":{"__isSmartRef__":true,"id":4785},"source":"function logReference(other, last) {\n this.ensureScriptAnalysis().referencedBy[other.name] = last\n}","funcProperties":{"__isSmartRef__":true,"id":4786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4785":{"this":{"__isSmartRef__":true,"id":4513}},"4786":{"timestamp":{"__isSmartRef__":true,"id":4787},"user":"jenslincke","tags":[]},"4787":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:42:15 GMT+0100 (CET)"},"4788":{"varMapping":{"__isSmartRef__":true,"id":4789},"source":"function showScriptAnalysis() {\n if (this.owner.resetStatus) this.owner.resetSourceHighlighting()\n Properties.own(this.ensureScriptAnalysis().referencedBy).each(function(name) {\n var morph = this.get(name)\n if (morph && morph.showReferenceTo) morph.showReferenceTo(this.name) \n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":4790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4789":{"this":{"__isSmartRef__":true,"id":4513}},"4790":{"timestamp":{"__isSmartRef__":true,"id":4791},"user":"jenslincke","tags":[]},"4791":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:55:26 GMT+0100 (CET)"},"4792":{"varMapping":{"__isSmartRef__":true,"id":4793},"source":"function showReferenceTo(name) {\n // this.showReferenceTo(\"HeatStorage\")\n this.get(\"SimulationText\").emphasizeRegex(new RegExp(\"#\" + name, \"g\"),{\n backgroundColor: Color.yellow\n })\n}","funcProperties":{"__isSmartRef__":true,"id":4794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4793":{"this":{"__isSmartRef__":true,"id":4513}},"4794":{"timestamp":{"__isSmartRef__":true,"id":4795},"user":"jenslincke","tags":[]},"4795":{"isSerializedDate":true,"string":"Tue Jan 28 2014 17:53:25 GMT+0100 (CET)"},"4796":{"varMapping":{"__isSmartRef__":true,"id":4797},"source":"function resetSourceHighlighting() {\n var range = this.get(\"SimulationText\").getSelectionRange()\n this.get(\"SimulationText\").emphasizeAll({backgroundColor: null})\n if (range) this.get(\"SimulationText\").setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":4798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4797":{"this":{"__isSmartRef__":true,"id":4513}},"4798":{"timestamp":{"__isSmartRef__":true,"id":4799},"user":"jenslincke","tags":[]},"4799":{"isSerializedDate":true,"string":"Tue Jan 28 2014 18:53:47 GMT+0100 (CET)"},"4800":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"List","comment":"a list morph","changes":[{"__isSmartRef__":true,"id":4801},{"__isSmartRef__":true,"id":4803},{"__isSmartRef__":true,"id":4805},{"__isSmartRef__":true,"id":4807}],"lastModifiedDate":{"__isSmartRef__":true,"id":4809},"revisionOnLoad":203793,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4801":{"author":"robertkrahn","message":"no comment","id":"3D0531CA-D241-4692-89F0-2FCC7621B8DE","date":{"__isSmartRef__":true,"id":4802}},"4802":{"isSerializedDate":true,"string":"Wed Oct 02 2013 00:29:07 GMT+0200 (CEST)"},"4803":{"author":"robertkrahn","message":"new morphic lists","id":"ACF81045-E200-4DA6-B0C6-B9AB94590E84","date":{"__isSmartRef__":true,"id":4804}},"4804":{"isSerializedDate":true,"string":"Mon Sep 30 2013 23:32:00 GMT+0200 (CEST)"},"4805":{"author":"undefined","message":"Click on scrollbar does not grab list","id":"16AABF98-2E7D-4875-9E66-CF86EB74AF93","date":{"__isSmartRef__":true,"id":4806}},"4806":{"isSerializedDate":true,"string":"Thu Mar 29 2012 14:39:24 GMT+0200 (CEST)"},"4807":{"date":{"__isSmartRef__":true,"id":4808},"author":"jenslincke","message":"reverted back ","id":"BD398F7A-14E2-4981-A43A-366A5B2AF5CD"},"4808":{"isSerializedDate":true,"string":"Thu Jan 16 2014 19:07:45 GMT+0100 (CET)"},"4809":{"isSerializedDate":true,"string":"Thu Jan 16 2014 19:05:34 GMT+0100 (CET)"},"4810":{"morph":{"__isSmartRef__":true,"id":385},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4811":{"removeCurrent":{"__isSmartRef__":true,"id":4812}},"4812":{"varMapping":{"__isSmartRef__":true,"id":4813},"source":"function removeCurrent() {\n this.setList(this.getList().without(this.getSelectedItem()))\n}","funcProperties":{"__isSmartRef__":true,"id":4814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4813":{"this":{"__isSmartRef__":true,"id":385}},"4814":{"timestamp":{"__isSmartRef__":true,"id":4815},"user":"jenslincke","tags":[]},"4815":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:39:46 GMT+0100 (CET)"},"4816":{"submorphs":[{"__isSmartRef__":true,"id":4817}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4822},"eventHandler":{"__isSmartRef__":true,"id":4823},"_ClipMode":"visible","derivationIds":["EC7EBB28-54AE-4244-80ED-3E13650F82B7","9FD2DCE2-B997-4536-B2A5-90D7DD92B3E6","0D8CC908-BD1C-4062-BB03-3FCEB910483D"],"id":"FB8A2B3A-B30B-45D1-B92A-35D79DBCDA98","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":4817},"_PreviousBorderWidth":1,"isPressed":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":4824},{"__isSmartRef__":true,"id":4826}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"name":"Button1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1100},"pinSpecs":[{"__isSmartRef__":true,"id":4828}],"owner":{"__isSmartRef__":true,"id":7},"_Rotation":0,"_Scale":1,"prevScroll":[0,0],"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4829},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(12.3,100.2)","distanceToDragEvent":"lively.pt(40.3,-15.1)"},"4817":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4818},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":4819}],"eventHandler":{"__isSmartRef__":true,"id":4821},"_ClipMode":"hidden","derivationIds":["7884E73F-0D17-44B3-907F-44A5223F1F3D","444B63A6-D9E7-4AB2-AB57-4A9146C18BFF","08999E10-CCC3-4CAB-99BC-4EF500309EC4"],"id":"396F1E73-B8E8-4B92-A9A6-83A7EB13A565","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":4816},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"showsHalos":false,"eventsAreDisabled":true,"_PointerEvents":"none","__serializedExpressions__":["_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"4818":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.6,19.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"4819":{"style":{"__isSmartRef__":true,"id":4820},"chunkOwner":{"__isSmartRef__":true,"id":4817},"_id":"_194144","storedString":"remove","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4820":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4821":{"morph":{"__isSmartRef__":true,"id":4817},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4822":{"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(52.6,19.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"4823":{"morph":{"__isSmartRef__":true,"id":4816},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4824":{"sourceObj":{"__isSmartRef__":true,"id":4816},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4816},"targetMethodName":"doAction","varMapping":{"__isSmartRef__":true,"id":4825},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4825":{"source":{"__isSmartRef__":true,"id":4816},"target":{"__isSmartRef__":true,"id":4816}},"4826":{"sourceObj":{"__isSmartRef__":true,"id":4816},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":385},"targetMethodName":"removeCurrent","varMapping":{"__isSmartRef__":true,"id":4827},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4827":{"source":{"__isSmartRef__":true,"id":4816},"target":{"__isSmartRef__":true,"id":385}},"4828":{"pinName":"fire","modality":"output","type":"Boolean","accessor":"fire","location":1.5},"4829":{"doAction":{"__isSmartRef__":true,"id":4830}},"4830":{"varMapping":{"__isSmartRef__":true,"id":4831},"source":"function doAction() {\n \n}","funcProperties":{"__isSmartRef__":true,"id":4832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4831":{"this":{"__isSmartRef__":true,"id":4816}},"4832":{"user":"undefined","tags":[],"timestamp":{"__isSmartRef__":true,"id":4833}},"4833":{"isSerializedDate":true,"string":"Tue Dec 11 2012 22:14:29 GMT+0100 (CET)"},"4834":{"submorphs":[],"scripts":[],"id":"F18B475B-97B1-48BF-BFE1-77338E2AF7A2","shape":{"__isSmartRef__":true,"id":4835},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":10,"name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":205},"textChunks":[{"__isSmartRef__":true,"id":4836}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4838},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":7},"_Rotation":0,"_Scale":1,"priorSelectionRange":[6,6],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(11.3,52.8)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(93.8,-10.1)"},"4835":{"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(128.7,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"4836":{"style":{"__isSmartRef__":true,"id":4837},"morph":{"__isSmartRef__":true,"id":4834},"chunkOwner":{"__isSmartRef__":true,"id":4834},"storedString":"prototypes","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4837":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4838":{"morph":{"__isSmartRef__":true,"id":4834},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4839":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(227.8,172.1)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(252,252,252)","_Padding":"lively.rect(0,0,0,0)"},"4840":{"partsSpaceName":"PartsBin/Jens","comment":"A helper tool....","migrationLevel":4,"partName":"PartMigrator","changes":[{"__isSmartRef__":true,"id":4841},{"__isSmartRef__":true,"id":4843},{"__isSmartRef__":true,"id":4845},{"__isSmartRef__":true,"id":4847},{"__isSmartRef__":true,"id":4849},{"__isSmartRef__":true,"id":4851},{"__isSmartRef__":true,"id":4853},{"__isSmartRef__":true,"id":4855},{"__isSmartRef__":true,"id":4857},{"__isSmartRef__":true,"id":4859},{"__isSmartRef__":true,"id":4861},{"__isSmartRef__":true,"id":4863},{"__isSmartRef__":true,"id":4865},{"__isSmartRef__":true,"id":4867},{"__isSmartRef__":true,"id":4869},{"__isSmartRef__":true,"id":4871},{"__isSmartRef__":true,"id":4873},{"__isSmartRef__":true,"id":4875},{"__isSmartRef__":true,"id":4877}],"lastModifiedDate":{"__isSmartRef__":true,"id":4879},"revisionOnLoad":204580,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"4841":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","date":{"__isSmartRef__":true,"id":4842}},"4842":{"isSerializedDate":true,"string":"Fri Jun 21 2013 00:16:24 GMT+0200 (CEST)"},"4843":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","date":{"__isSmartRef__":true,"id":4844}},"4844":{"isSerializedDate":true,"string":"Thu May 30 2013 09:18:06 GMT+0200 (CEST)"},"4845":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","date":{"__isSmartRef__":true,"id":4846}},"4846":{"isSerializedDate":true,"string":"Wed Jan 23 2013 12:57:18 GMT+0100 (CET)"},"4847":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","date":{"__isSmartRef__":true,"id":4848}},"4848":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"4849":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","date":{"__isSmartRef__":true,"id":4850}},"4850":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"4851":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","date":{"__isSmartRef__":true,"id":4852}},"4852":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"4853":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","date":{"__isSmartRef__":true,"id":4854}},"4854":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"4855":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","date":{"__isSmartRef__":true,"id":4856}},"4856":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"4857":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","date":{"__isSmartRef__":true,"id":4858}},"4858":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"4859":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","date":{"__isSmartRef__":true,"id":4860}},"4860":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:35:08 GMT+0200 (CEST)"},"4861":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","date":{"__isSmartRef__":true,"id":4862}},"4862":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:35:51 GMT+0100 (CET)"},"4863":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","date":{"__isSmartRef__":true,"id":4864}},"4864":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:42:31 GMT+0100 (CET)"},"4865":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","date":{"__isSmartRef__":true,"id":4866}},"4866":{"isSerializedDate":true,"string":"Fri Jan 18 2013 16:47:05 GMT+0100 (CET)"},"4867":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","date":{"__isSmartRef__":true,"id":4868}},"4868":{"isSerializedDate":true,"string":"Thu May 30 2013 00:36:50 GMT+0200 (CEST)"},"4869":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","date":{"__isSmartRef__":true,"id":4870}},"4870":{"isSerializedDate":true,"string":"Tue Jun 18 2013 20:49:27 GMT+0200 (CEST)"},"4871":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","date":{"__isSmartRef__":true,"id":4872}},"4872":{"isSerializedDate":true,"string":"Tue Jul 30 2013 08:20:51 GMT+0200 (CEST)"},"4873":{"date":{"__isSmartRef__":true,"id":4874},"author":"jenslincke","message":"no comment","id":"8DB648C0-0CE9-44EC-AD31-919E59DF4F79"},"4874":{"isSerializedDate":true,"string":"Thu Jan 23 2014 14:03:27 GMT+0100 (CET)"},"4875":{"date":{"__isSmartRef__":true,"id":4876},"author":"jenslincke","message":"no comment","id":"7C6FF70C-74BB-4079-B661-0BEEAFF0DF41"},"4876":{"isSerializedDate":true,"string":"Fri Jan 24 2014 21:27:11 GMT+0100 (CET)"},"4877":{"date":{"__isSmartRef__":true,"id":4878},"author":"jenslincke","message":"no comment","id":"F33DB561-7E24-4EFC-8723-C09E0F619A37"},"4878":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:57:37 GMT+0100 (CET)"},"4879":{"isSerializedDate":true,"string":"Mon Jan 27 2014 16:56:29 GMT+0100 (CET)"},"4880":{"morph":{"__isSmartRef__":true,"id":7},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4881":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4882}},"4882":{"test01IsMorph":{"__isSmartRef__":true,"id":4883}},"4883":{"varMapping":{"__isSmartRef__":true,"id":4884},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4884":{"this":{"__isSmartRef__":true,"id":4881}},"4885":{},"4886":{"migrateAllConnectors":{"__isSmartRef__":true,"id":4887},"clearWorld":{"__isSmartRef__":true,"id":4891},"migrateParts":{"__isSmartRef__":true,"id":4895},"migratePart":{"__isSmartRef__":true,"id":4899},"log":{"__isSmartRef__":true,"id":4903},"getTarget":{"__isSmartRef__":true,"id":4907},"clearLog":{"__isSmartRef__":true,"id":4911},"replaceReferencesInTargetAndSubmorphs":{"__isSmartRef__":true,"id":4915},"setTarget":{"__isSmartRef__":true,"id":4919},"addPrototype":{"__isSmartRef__":true,"id":4923}},"4887":{"varMapping":{"__isSmartRef__":true,"id":4888},"source":"function migrateAllConnectors() {\n\n var target = this.owner;\n\n var connectors = target.submorphs.select(function(ea) {\n return ea.partsBinMetaInfo && ea.partsBinMetaInfo.partName == \"Connector\"\n });\n\n connectors.each(function(ea) {\n var p = ea.partsBinMetaInfo.getPartsSpace().getPartItemNamed(ea.partsBinMetaInfo.getName()).loadPart().part\n var owner = ea.owner\n owner.addMorphBack(p)\n try {\n if (p.migrateFrom) p.migrateFrom(ea)\n } catch(e) {\n show(p)\n this.log(\"ERROR in \" + p + \" migrateFrom:\" + e)\n }\n p.setPosition(ea.getPosition())\n p.setName(ea.name)\n ea.remove()\n }.bind(this))\n}","funcProperties":{"__isSmartRef__":true,"id":4889},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4888":{"this":{"__isSmartRef__":true,"id":7}},"4889":{"timestamp":{"__isSmartRef__":true,"id":4890},"user":"jenslincke","tags":[]},"4890":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:41:21 GMT+0100 (CET)"},"4891":{"varMapping":{"__isSmartRef__":true,"id":4892},"source":"function clearWorld() {\n $world.submorphs.select(function(ea) {\n return ea.isEpiMorph\n }).invoke(\"remove\")\n\n}","funcProperties":{"__isSmartRef__":true,"id":4893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4892":{"this":{"__isSmartRef__":true,"id":7}},"4893":{"timestamp":{"__isSmartRef__":true,"id":4894},"user":"jenslincke","tags":[]},"4894":{"isSerializedDate":true,"string":"Wed Jan 22 2014 16:52:31 GMT+0100 (CET)"},"4895":{"varMapping":{"__isSmartRef__":true,"id":4896},"source":"function migrateParts() {\n\n var target = this.getTarget();\n\n\n var partsToMigrate = [\"EnergySimulationPart\", \"Connector\"]\n var parts = target.submorphs.select(function(ea) {\n return ea.partsBinMetaInfo && partsToMigrate.include(ea.partsBinMetaInfo.partName)\n });\n\n parts.each(function(ea) {\n this.migratePart(ea)\n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":4897},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4896":{"this":{"__isSmartRef__":true,"id":7}},"4897":{"timestamp":{"__isSmartRef__":true,"id":4898},"user":"jenslincke","tags":[]},"4898":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:41:44 GMT+0100 (CET)"},"4899":{"varMapping":{"__isSmartRef__":true,"id":4900},"source":"function migratePart(morph) {\n // this.migratePart(this.get(\"MigrateTest\"))\n // morph = this.get(\"MigrateTest\")\n // newMorph = this.get(\"MigrateTest\")\n this.log(\"migrate \" + morph)\n var partName = morph.partsBinMetaInfo.getName();\n var protoMorph = this.get(\"PrototypeList\").getValues().detect(function(ea) {\n return ea.partsBinMetaInfo.partName == partName\n })\n\n if (protoMorph) {\n if (protoMorph === morph) return;\n var newMorph = protoMorph.duplicate()\n this.log(\"found protoype \" + protoMorph)\n } else {\n newMorph = morph.partsBinMetaInfo.getPartsSpace().getPartItemNamed(partName).loadPart(partName).part\n };\n var owner = morph.owner\n owner.addMorph(newMorph, morph)\n if (newMorph.migrateFrom) newMorph.migrateFrom(morph)\n newMorph.setPosition(morph.getPosition())\n newMorph.setName(morph.name)\n morph.remove()\n\n // TODO: deal with references to submorphs / subobjects\n // Open Problem: Mapping old objects to new objects\n // approach: a) use name, use position, use derivation id\n // This problem is shared by diffing / merging parts\n // we assume here that only the toppart gets references from the outside\n // we could call this the DEEP REFERENCE PROBLEM\n\n // instead a list this should be a mapping... TODO\n var innerMorphs = []\n morph.withAllSubmorphsDo(function(ea) {\n innerMorphs.push(ea)\n })\n\n this.replaceReferencesInTargetAndSubmorphs(morph, newMorph, innerMorphs)\n\n\n if (morph.attributeConnections) {\n var outConnections = morph.attributeConnections.reject(function(con) {\n return innerMorphs.include(con.targetObj) || con.dependedBy\n })\n morph.attributeConnections.invoke(\"disconnect\")\n outConnections.each(function(ea) {\n ea.sourceObj = newMorph\n this.log(\"migrate attribute connection \" + morph + \" to \" + ea )\n ea.connect()\n }.bind(this))\n }\n\n // TODO: deal with attribute connections in submorphs\n\n}","funcProperties":{"__isSmartRef__":true,"id":4901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4900":{"this":{"__isSmartRef__":true,"id":7}},"4901":{"timestamp":{"__isSmartRef__":true,"id":4902},"user":"jenslincke","tags":[]},"4902":{"isSerializedDate":true,"string":"Fri Jan 24 2014 20:01:40 GMT+0100 (CET)"},"4903":{"varMapping":{"__isSmartRef__":true,"id":4904},"source":"function log(s) {\n this.get(\"Log\").textString += s + \"\\n\"\n}","funcProperties":{"__isSmartRef__":true,"id":4905},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4904":{"this":{"__isSmartRef__":true,"id":7}},"4905":{"timestamp":{"__isSmartRef__":true,"id":4906},"user":"jenslincke","tags":[]},"4906":{"isSerializedDate":true,"string":"Wed Jan 22 2014 20:54:26 GMT+0100 (CET)"},"4907":{"varMapping":{"__isSmartRef__":true,"id":4908},"source":"function getTarget() {\n return this.target\n}","funcProperties":{"__isSmartRef__":true,"id":4909},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4908":{"this":{"__isSmartRef__":true,"id":7}},"4909":{"timestamp":{"__isSmartRef__":true,"id":4910},"user":"jenslincke","tags":[]},"4910":{"isSerializedDate":true,"string":"Fri Jan 24 2014 21:44:46 GMT+0100 (CET)"},"4911":{"varMapping":{"__isSmartRef__":true,"id":4912},"source":"function clearLog() {\n this.get(\"Log\").textString = \"\"\n}","funcProperties":{"__isSmartRef__":true,"id":4913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4912":{"this":{"__isSmartRef__":true,"id":7}},"4913":{"timestamp":{"__isSmartRef__":true,"id":4914},"user":"jenslincke","tags":[]},"4914":{"isSerializedDate":true,"string":"Wed Jan 22 2014 21:39:12 GMT+0100 (CET)"},"4915":{"varMapping":{"__isSmartRef__":true,"id":4916},"source":"function replaceReferencesInTargetAndSubmorphs(morph, newMorph, innerMorphs) {\n this.getTarget().withAllSubmorphsDo(function(ea) {\n Properties.own(ea)\n .reject(function(ea) { return [\"owner\"].include(ea)})\n .each(function(prop) {\n if (ea[prop] === morph) {\n try {\n this.log(\"update \" + prop + \" from \" + ea[prop]+\" to \" + newMorph)\n ea[prop] = newMorph\n } catch(e) {\n this.log(\"ERROR update \" + prop + \" to \" + newMorph)\n }\n }\n }.bind(this))\n if (ea.attributeConnections) {\n var inConnections = ea.attributeConnections.select(function(con) {\n return innerMorphs.include(con.targetObj) && !con.dependedBy\n })\n inConnections.each(function(ea) {\n this.log(\"migrate attribute connection target \" + ea.targetObj + \" to \" + ea )\n ea.targetObj = newMorph\n ea.connect()\n }.bind(this))\n }\n }.bind(this))\n\n}","funcProperties":{"__isSmartRef__":true,"id":4917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4916":{"this":{"__isSmartRef__":true,"id":7}},"4917":{"timestamp":{"__isSmartRef__":true,"id":4918},"user":"jenslincke","tags":[]},"4918":{"isSerializedDate":true,"string":"Wed Jan 22 2014 22:11:19 GMT+0100 (CET)"},"4919":{"varMapping":{"__isSmartRef__":true,"id":4920},"source":"function setTarget(target) {\n this.target = target\n this.get(\"TargetNameText\").textString = target.name\n}","funcProperties":{"__isSmartRef__":true,"id":4921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4920":{"this":{"__isSmartRef__":true,"id":7}},"4921":{"timestamp":{"__isSmartRef__":true,"id":4922},"user":"jenslincke","tags":[]},"4922":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:29:49 GMT+0100 (CET)"},"4923":{"varMapping":{"__isSmartRef__":true,"id":4924},"source":"function addPrototype(object) {\n // this.get(\"PrototypeList\").setList([])\n this.get(\"PrototypeList\").addItem({\n string: object.getPartsBinMetaInfo().partName,\n value: object,\n isListItem: true\n })\n \n}","funcProperties":{"__isSmartRef__":true,"id":4925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4924":{"this":{"__isSmartRef__":true,"id":7}},"4925":{"timestamp":{"__isSmartRef__":true,"id":4926},"user":"jenslincke","tags":[]},"4926":{"isSerializedDate":true,"string":"Fri Jan 24 2014 19:46:00 GMT+0100 (CET)"},"4927":{"submorphs":[{"__isSmartRef__":true,"id":4928},{"__isSmartRef__":true,"id":4975},{"__isSmartRef__":true,"id":5069},{"__isSmartRef__":true,"id":5073},{"__isSmartRef__":true,"id":5077}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5081},"derivationIds":[null,"86D29A35-1063-47AB-99AA-AA4A7E61A693","0AE61595-B0EC-41BB-B6DC-E59AE85BCE7A","D140973A-3EA2-41B5-B2D0-B2DE86F64D5C","7B559CB3-DB91-4027-90FB-7EB6D0A40AA7","7B0FDE0B-9571-407B-BB82-631FE14872C2","D71EA0A3-5662-40E0-A49F-122905E5ABDD","FC0A2F61-88F7-4823-AF53-40400FC729FD","08321F12-C671-4D4E-96F2-3C6F1045686F","AE2DFAC4-D869-42AC-B840-3CF34F82D3B1","04D7B8FC-588F-45F5-904E-C1C7AFCEEB69","3C73C8CD-F5DD-4EFF-B41F-5282FACFAC2B","77F84A78-5D91-44F8-AB44-50882B98FE57"],"id":"F0E45DCB-7D16-45BE-8790-4B01C2A76D12","eventHandler":{"__isSmartRef__":true,"id":5082},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":5083},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":4928},"reframeHandle":{"__isSmartRef__":true,"id":5069},"titleBar":{"__isSmartRef__":true,"id":4975},"collapsedTransform":{"__isSmartRef__":true,"id":5084},"expandedTransform":{"__isSmartRef__":true,"id":5085},"ignoreEventsOnExpand":false,"highlighted":false,"isBeingDragged":false,"showsHalos":false,"name":"SystemConsole","partsBinMetaInfo":{"__isSmartRef__":true,"id":5086},"moved":true,"isCopyMorphRef":true,"morphRefId":1,"#startLetters":"","helperMorphs":[{"__isSmartRef__":true,"id":5102}],"state":"expanded","cameForward":false,"rightReframeHandle":{"__isSmartRef__":true,"id":5077},"bottomReframeHandle":{"__isSmartRef__":true,"id":5073},"_Rotation":0,"_Scale":1.01,"_StyleClassNames":["Morph","Window"],"owner":{"__isSmartRef__":true,"id":0},"prevScroll":[0,0],"__serializedExpressions__":["_Position","contentOffset","collapsedExtent","expandedExtent","prevDragPos","expandedPosition","collapsedPosition","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5108},"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(2229.0,13.1)","contentOffset":"lively.pt(0.0,21.0)","collapsedExtent":"lively.pt(699.0,22.0)","expandedExtent":"lively.pt(699.0,221.0)","prevDragPos":"lively.pt(2548.1,22.0)","expandedPosition":"lively.pt(33.0,437.0)","collapsedPosition":"lively.pt(33.0,437.0)","distanceToDragEvent":"lively.pt(434.8,-17.4)"},"4928":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4929},"derivationIds":[null,"4E5E2B48-0B47-4B2D-BC78-14E1BDBE0B57","1E8B0FF2-79E2-4C10-A156-4155F7653A1C","39B8534E-7236-4E9B-AE30-0E6BCBC6DF26","630E5BE3-7EEC-4C88-8285-FBC45C9F2DA9","E6CFAFE1-8BD8-4E27-AC2F-FEDD4D886BC5","DCB8C4E7-E368-477A-BAF9-A77655B6DD9C","4BD11753-BB6E-4350-804D-750082EC3AE8","D144FB1F-8A89-40DB-AABF-E3832EDD69CE","9569A8F7-B341-472E-A518-9F159CD2C1E9","E7DF3E53-4FF8-4094-AE45-8F3A24E75704","1DF9E6B2-9375-4C62-9274-CE4140C53D76","A9022E8C-DA20-409D-AA22-8EB5606FBCA4"],"id":"D1B314FE-A23F-4366-A343-F0670430FD21","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":4930}],"eventHandler":{"__isSmartRef__":true,"id":4932},"_ClipMode":"auto","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":true,"allowInput":true,"_FontFamily":"Arial, sans-serif","_FontSize":9,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":4927},"_MaxTextWidth":631,"_MinTextWidth":631,"_MaxTextHeight":null,"_MinTextHeight":null,"layout":{"__isSmartRef__":true,"id":4933},"syntaxHighlightingWhileTyping":false,"doNotSerialize":["undoState"],"lastSyntaxHighlightTime":1337722418791,"accessibleInInactiveWindow":true,"charsReplaced":"","lastFindLoc":129,"isBeingDragged":false,"showsHalos":false,"parseErrors":null,"name":"SystemConsoleMain","#startLetters":"cl","_WordBreak":"break-all","prevScroll":[0,0],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4934},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,21.0)"},"4929":{"_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(935.7,391.4)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(243,243,243)"},"4930":{"style":{"__isSmartRef__":true,"id":4931},"chunkOwner":{"__isSmartRef__":true,"id":4928},"_id":"_11","storedString":"\n22:57:29 cannot deal with fill [object Object]\n22:57:31 The world is now completely loaded.\n22:57:31 http://lively-kernel.org/repository/webwerkstatt/core/anonymous_module_5 loaded in 3663 ms\n22:57:31 http://lively-kernel.org/repository/webwerkstatt/core/lively/ast/IDESupport.js loaded in 2705 ms\n22:57:31 http://lively-kernel.org/repository/webwerkstatt/core/lively/ast/generated/Translator.js loaded in 87 ms\n22:57:31 http://lively-kernel.org/repository/webwerkstatt/core/lively/ast/generated/Nodes.js loaded in 204 ms\n22:57:31 http://lively-kernel.org/repository/webwerkstatt/core/lively/ast/LivelyJSParser.js loaded in 304 ms\n22:57:31 http://lively-kernel.org/repository/webwerkstatt/core/lively/ast/Parser.js loaded in 468 ms\n22:57:31 http://lively-kernel.org/repository/webwerkstatt/core/lively/ast/StaticAnalysis.js loaded in 566 ms\n22:57:31 http://lively-kernel.org/repository/webwerkstatt/core/lively/ast/IDESupport.js loaded in 3280 ms\n22:57:33 INSTALL D3 Error handler\n22:57:35 Module load check done. 106 modules loaded.\n22:58:31 Finished parsing in 0.072 s\n22:58:31 browse failed. Nothing found for lively.ast>>lively.ast.JSSyntaxHighlighter in http://lively-kernel.org/repository/webwerkstatt/core/lively/ast/IDESupport.js\n22:58:31 http://lively-kernel.org/repository/webwerkstatt/core/anonymous_module_6 loaded in 6 ms\n22:58:32 new url: http://lively-kernel.org/repository/webwerkstatt/core/lively/ast/\n22:59:25 http://lively-kernel.org/repository/webwerkstatt/core/anonymous_module_7 loaded in 9 ms\n22:59:26 http://lively-kernel.org/repository/webwerkstatt/core/anonymous_module_8 loaded in 8 ms\n22:59:27 http://lively-kernel.org/repository/webwerkstatt/core/anonymous_module_9 loaded in 8 ms\n22:59:28 http://lively-kernel.org/repository/webwerkstatt/core/anonymous_module_10 loaded in 8 ms\n22:59:35 http://lively-kernel.org/repository/webwerkstatt/core/anonymous_module_11 loaded in 8 ms\n22:59:49 http://lively-kernel.org/repository/webwerkstatt/core/anonymous_module_12 loaded in 8 ms\n22:59:53 http://lively-kernel.org/repository/webwerkstatt/core/anonymous_module_13 loaded in 8 ms\n23:00:05 Warning! Event cut already handled: .onCut. Overwriting with .onCutToClipboard!\n23:00:05 Warning! Event paste already handled: .onPaste. Overwriting with .onPasteFromClipboard!\n23:00:07 http://lively-kernel.org/repository/webwerkstatt/core/anonymous_module_14 loaded in 8 ms\n23:00:09 http://lively-kernel.org/repository/webwerkstatt/core/anonymous_module_15 loaded in 8 ms\n23:00:11 http://lively-kernel.org/repository/webwerkstatt/core/anonymous_module_16 loaded in 8 ms","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4931":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4932":{"morph":{"__isSmartRef__":true,"id":4928},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4933":{"resizeWidth":true,"resizeHeight":true},"4934":{"onrestore":{"__isSmartRef__":true,"id":4935},"reset":{"__isSmartRef__":true,"id":4943},"clear":{"__isSmartRef__":true,"id":4947},"log":{"__isSmartRef__":true,"id":4951},"addLine":{"__isSmartRef__":true,"id":4955},"error":{"__isSmartRef__":true,"id":4959},"warn":{"__isSmartRef__":true,"id":4963},"onLoadFromPartsBin":{"__isSmartRef__":true,"id":4967}},"4935":{"varMapping":{"__isSmartRef__":true,"id":4936},"source":"function onrestore() {\n this.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":4941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4936":{"this":{"__isSmartRef__":true,"id":4928},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4937}},"4937":{"$super":{"__isSmartRef__":true,"id":4938}},"4938":{"varMapping":{"__isSmartRef__":true,"id":4939},"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":4940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4939":{"obj":{"__isSmartRef__":true,"id":4928},"name":"onrestore"},"4940":{},"4941":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":4942}},"4942":{"isSerializedDate":true,"string":"Wed May 23 2012 22:52:02 GMT+0200 (CEST)"},"4943":{"varMapping":{"__isSmartRef__":true,"id":4944},"source":"function reset() {\n this.clear();\n if (!window.console.consumers.include(this)) {\n window.console.addConsumer(this);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4944":{"this":{"__isSmartRef__":true,"id":4928}},"4945":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":4946}},"4946":{"isSerializedDate":true,"string":"Tue May 22 2012 23:34:39 GMT+0200 (CEST)"},"4947":{"varMapping":{"__isSmartRef__":true,"id":4948},"source":"function clear() {\n this.setTextString('');\n}","funcProperties":{"__isSmartRef__":true,"id":4949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4948":{"this":{"__isSmartRef__":true,"id":4928}},"4949":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":4950}},"4950":{"isSerializedDate":true,"string":"Wed May 23 2012 00:42:20 GMT+0200 (CEST)"},"4951":{"varMapping":{"__isSmartRef__":true,"id":4952},"source":"function log(msg) {\n this.addLine(Strings.format.call(null, msg, Array.from(arguments).splice(1)), {color: Color.web.darkgray.darker()});\n}","funcProperties":{"__isSmartRef__":true,"id":4953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4952":{"this":{"__isSmartRef__":true,"id":4928}},"4953":{"user":"ohshima","tags":[],"timestamp":{"__isSmartRef__":true,"id":4954}},"4954":{"isSerializedDate":true,"string":"Wed Jul 10 2013 19:33:41 GMT+0200 (CEST)"},"4955":{"varMapping":{"__isSmartRef__":true,"id":4956},"source":"function addLine(msg, style) {\n var chunk = this.createChunk();\n chunk.textString = \"\\n\" + new Date().format(\"HH:MM:ss\") + \" \" + msg;\n chunk.styleText(style);\n if (this.getScrollableNode()) this.scrollToBottom();\n}","funcProperties":{"__isSmartRef__":true,"id":4957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4956":{"this":{"__isSmartRef__":true,"id":4928}},"4957":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":4958}},"4958":{"isSerializedDate":true,"string":"Wed May 23 2012 00:16:30 GMT+0200 (CEST)"},"4959":{"varMapping":{"__isSmartRef__":true,"id":4960},"source":"function error(msg) {\n this.addLine(msg, {color: Color.red});\n}","funcProperties":{"__isSmartRef__":true,"id":4961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4960":{"this":{"__isSmartRef__":true,"id":4928}},"4961":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":4962}},"4962":{"isSerializedDate":true,"string":"Wed May 23 2012 00:21:44 GMT+0200 (CEST)"},"4963":{"varMapping":{"__isSmartRef__":true,"id":4964},"source":"function warn(msg) {\n this.addLine(Strings.format.call(null, msg, Array.from(arguments).splice(1)), {color: Color.yellow.darker()});\n}","funcProperties":{"__isSmartRef__":true,"id":4965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4964":{"this":{"__isSmartRef__":true,"id":4928}},"4965":{"user":"ohshima","tags":[],"timestamp":{"__isSmartRef__":true,"id":4966}},"4966":{"isSerializedDate":true,"string":"Fri Jul 12 2013 19:13:45 GMT+0200 (CEST)"},"4967":{"varMapping":{"__isSmartRef__":true,"id":4968},"source":"function onLoadFromPartsBin() {\n $super();\n this.reset();\n console.log('System console started successfully.');\n}","funcProperties":{"__isSmartRef__":true,"id":4973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4968":{"this":{"__isSmartRef__":true,"id":4928},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4969}},"4969":{"$super":{"__isSmartRef__":true,"id":4970}},"4970":{"varMapping":{"__isSmartRef__":true,"id":4971},"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":4972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4971":{"obj":{"__isSmartRef__":true,"id":4928},"name":"onLoadFromPartsBin"},"4972":{},"4973":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":4974}},"4974":{"isSerializedDate":true,"string":"Wed May 23 2012 01:03:15 GMT+0200 (CEST)"},"4975":{"submorphs":[{"__isSmartRef__":true,"id":4976},{"__isSmartRef__":true,"id":4982},{"__isSmartRef__":true,"id":4995},{"__isSmartRef__":true,"id":5007},{"__isSmartRef__":true,"id":5020},{"__isSmartRef__":true,"id":5054}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5066},"eventHandler":{"__isSmartRef__":true,"id":5067},"_ClipMode":"visible","derivationIds":["76F18DA5-520E-44CA-ABC5-02415DC7B326","8A48DB59-5DA2-4F2F-9F16-DE53DB8DD581","6DF67AA9-B78F-433F-9651-02DF0FF3165B"],"id":"8C3EBA52-93AA-4A7E-BC3B-A66229B43BB2","__layered_droppingEnabled__":false,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5068},"windowMorph":{"__isSmartRef__":true,"id":4927},"label":{"__isSmartRef__":true,"id":4976},"closeButton":{"__isSmartRef__":true,"id":4982},"menuButton":{"__isSmartRef__":true,"id":4995},"collapseButton":{"__isSmartRef__":true,"id":5007},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":4927},"showsHalos":false,"prevScroll":[0,0],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"4976":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4977},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":4978}],"eventHandler":{"__isSmartRef__":true,"id":4980},"_ClipMode":"hidden","derivationIds":["8B8F92D2-D177-498B-A2BA-04033A58B013","3D22A7E8-70EF-4099-85DA-AD0C04F70736","2CAF3618-23FD-4541-BEB8-D1C8BD9170A9"],"id":"D4A7D71B-B65C-4648-942C-0C7E91A17A31","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"isLabel":true,"layout":{"__isSmartRef__":true,"id":4981},"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4975},"_StyleClassNames":["window-title"],"_TextStylingMode":true,"showsHalos":false,"prevScroll":[0,0],"__serializedExpressions__":["_TextColor","_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(20.0,3.0)","distanceToDragEvent":"lively.pt(404.6,-16.5)"},"4977":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(882.5,18.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"4978":{"style":{"__isSmartRef__":true,"id":4979},"chunkOwner":{"__isSmartRef__":true,"id":4976},"_id":"_20","storedString":"System Console","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4979":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4980":{"morph":{"__isSmartRef__":true,"id":4976},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4981":{"resizeWidth":true},"4982":{"submorphs":[{"__isSmartRef__":true,"id":4983}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4988},"eventHandler":{"__isSmartRef__":true,"id":4989},"_ClipMode":"visible","derivationIds":["A65991BD-FDAF-4014-875B-33E25997465F","48A886A3-D628-424E-86DD-C039A29F6D2B","A70332B7-A207-4016-8278-380069ADF08E"],"id":"B369EF14-79F8-45DB-BBD5-32B5BF60C223","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":4983},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":4975},"layout":{"__isSmartRef__":true,"id":4990},"_StyleClassNames":["close"],"attributeConnections":[{"__isSmartRef__":true,"id":4991},{"__isSmartRef__":true,"id":4993}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(921.5,3.0)"},"4983":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4984},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":4985}],"eventHandler":{"__isSmartRef__":true,"id":4987},"_ClipMode":"hidden","derivationIds":["F8234BB5-3D02-4DA3-B2EE-717595293C01","9D26EC30-F95F-4193-BA91-2354D97B0E78","881D3F46-91C3-4215-8B79-B3E75895EB6C"],"id":"E2DAD389-9F4E-4E2B-BE16-19F6BE754136","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":4982},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,-1.0)"},"4984":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"4985":{"style":{"__isSmartRef__":true,"id":4986},"chunkOwner":{"__isSmartRef__":true,"id":4983},"_id":"_5187","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4986":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4987":{"morph":{"__isSmartRef__":true,"id":4983},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4988":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"4989":{"morph":{"__isSmartRef__":true,"id":4982},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4990":{"moveHorizontal":true},"4991":{"sourceObj":{"__isSmartRef__":true,"id":4982},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":4927},"targetMethodName":"getCloseHelp","varMapping":{"__isSmartRef__":true,"id":4992},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4992":{"source":{"__isSmartRef__":true,"id":4982},"target":{"__isSmartRef__":true,"id":4927}},"4993":{"sourceObj":{"__isSmartRef__":true,"id":4982},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4927},"targetMethodName":"initiateShutdown","varMapping":{"__isSmartRef__":true,"id":4994},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"4994":{"source":{"__isSmartRef__":true,"id":4982},"target":{"__isSmartRef__":true,"id":4927}},"4995":{"submorphs":[{"__isSmartRef__":true,"id":4996}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5001},"eventHandler":{"__isSmartRef__":true,"id":5002},"_ClipMode":"visible","derivationIds":["BCB64BF8-8AD7-4420-88F2-ADD56F1A6D42","72111849-8584-4984-A9DB-6E8D0621A92C","02056E2D-F38D-4775-A484-919892D64AAE"],"id":"D85C0565-1A69-443E-83E3-68108D517B75","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":4996},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":4975},"attributeConnections":[{"__isSmartRef__":true,"id":5003},{"__isSmartRef__":true,"id":5005}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"isPressed":false,"_StyleClassNames":["Morph","Button","WindowControl"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"4996":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4997},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":4998}],"eventHandler":{"__isSmartRef__":true,"id":5000},"_ClipMode":"hidden","derivationIds":["A7A00620-E8E9-4E26-9177-A1E3B37D56F1","EBF5964E-10CC-45A5-931E-F7A3588BE93C","4F16C414-D8F6-4B9F-B802-94D50873EE38"],"id":"0311749C-2229-4374-9580-AD277C6A479F","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":4995},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,0.0)"},"4997":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"4998":{"style":{"__isSmartRef__":true,"id":4999},"chunkOwner":{"__isSmartRef__":true,"id":4996},"_id":"_5189","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4999":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5000":{"morph":{"__isSmartRef__":true,"id":4996},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5001":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"5002":{"morph":{"__isSmartRef__":true,"id":4995},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5003":{"sourceObj":{"__isSmartRef__":true,"id":4995},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":4927},"targetMethodName":"getMenuHelp","varMapping":{"__isSmartRef__":true,"id":5004},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5004":{"source":{"__isSmartRef__":true,"id":4995},"target":{"__isSmartRef__":true,"id":4927}},"5005":{"sourceObj":{"__isSmartRef__":true,"id":4995},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4927},"targetMethodName":"showTargetMorphMenu","varMapping":{"__isSmartRef__":true,"id":5006},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5006":{"source":{"__isSmartRef__":true,"id":4995},"target":{"__isSmartRef__":true,"id":4927}},"5007":{"submorphs":[{"__isSmartRef__":true,"id":5008}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5013},"eventHandler":{"__isSmartRef__":true,"id":5014},"_ClipMode":"visible","derivationIds":["502DA455-175B-435A-B6BC-DEE9945D31FE","A3AFE353-A017-4063-9D3C-45D58A894D38","4D94D3DE-6CA5-4E84-A0BC-35F4FF377237"],"id":"A87A3651-2B1D-4414-B28A-45F68F948669","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":5008},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":4975},"layout":{"__isSmartRef__":true,"id":5015},"attributeConnections":[{"__isSmartRef__":true,"id":5016},{"__isSmartRef__":true,"id":5018}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(902.5,3.0)"},"5008":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5009},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5010}],"eventHandler":{"__isSmartRef__":true,"id":5012},"_ClipMode":"hidden","derivationIds":["3C05BF51-B056-4FE7-BC27-DFCFD0C11F8A","39A96408-DF86-4693-AFFF-3076947ED762","ECB59632-BCC7-4B24-8976-6DFB616D0EF3"],"id":"C9AEA3BE-43FA-4583-8E38-A88ECF0D74FA","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5007},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,1.0)"},"5009":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"5010":{"style":{"__isSmartRef__":true,"id":5011},"chunkOwner":{"__isSmartRef__":true,"id":5008},"_id":"_5191","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5011":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5012":{"morph":{"__isSmartRef__":true,"id":5008},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5013":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"5014":{"morph":{"__isSmartRef__":true,"id":5007},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5015":{"moveHorizontal":true},"5016":{"sourceObj":{"__isSmartRef__":true,"id":5007},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":4927},"targetMethodName":"getCollapseHelp","varMapping":{"__isSmartRef__":true,"id":5017},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5017":{"source":{"__isSmartRef__":true,"id":5007},"target":{"__isSmartRef__":true,"id":4927}},"5018":{"sourceObj":{"__isSmartRef__":true,"id":5007},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4927},"targetMethodName":"toggleCollapse","varMapping":{"__isSmartRef__":true,"id":5019},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5019":{"source":{"__isSmartRef__":true,"id":5007},"target":{"__isSmartRef__":true,"id":4927}},"5020":{"submorphs":[{"__isSmartRef__":true,"id":5021}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5026},"derivationIds":[null,"8DBAB1EA-9B8A-429A-9AF9-53F09F775741","74172FB9-0F53-4367-B358-67ED54AA3EC4","B5F8DB94-C434-4DE1-A232-C6CC4860A0AC","F88B9127-BBF9-4A6E-BE6F-0A8AA54A0346","B41404F8-6498-4AB6-8B80-5963FB1DA5FE","C6C74662-FB39-49DA-BB00-335D30DD7FAA","9781481D-52F0-485B-B3AB-30CC23A5D4B7","BEFC68A4-FE00-40AD-9E05-7AEA4E488638","3C190310-77A0-4EE4-BE1D-4DE1878CC35C","1D80DDED-264F-4D04-AB68-BAC5AA5B72AF","D75FC5A9-6E85-4A26-A825-3CF1BEB37D5B","43C1750A-39FC-43D9-8DCC-6C4690345487"],"id":"B4CA84D3-9E8B-4C1F-9382-D5DD89A4FF5E","eventHandler":{"__isSmartRef__":true,"id":5027},"_ClipMode":"visible","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":5021},"_ToolTip":"toggles display of global status messages","extraButton":true,"active":true,"attributeConnections":[{"__isSmartRef__":true,"id":5028}],"doNotSerialize":["layer"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"name":"ErrorHandlerButton","layout":{"__isSmartRef__":true,"id":5030},"orderInTaskBar":3,"owner":{"__isSmartRef__":true,"id":4975},"#startLetters":"get","isPressed":false,"_Rotation":0,"_Scale":0.9900990099009901,"lighterFill":{"__isSmartRef__":true,"id":5031},"normalFillInactive":{"__isSmartRef__":true,"id":5032},"__serializedExpressions__":["_Position","distanceToDragEvent","normalFill"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5033},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(40.0,1.1)","distanceToDragEvent":"lively.pt(34.3,-13.6)","normalFill":"Color.rgb(0,204,0)"},"5021":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5022},"derivationIds":[null,"4D9DA40E-38E0-46B6-9BCD-FBFFFABF3F81","66ADC9F1-A8EA-4E50-9D41-C78C31582EE0","EB0C121E-EFED-4AA5-BC65-35B5BDE8389A","8EE13917-775C-4E2A-92DC-0D65D8634994","10705F98-8DA6-4AD6-A427-4DF70E03ABE9","9E607BD3-84F7-40C7-A0FB-9D3A8F06A8D0","666E1259-9A56-41E9-91AA-63690F56662A","44761EFD-0A94-4170-9B86-55D968D54317","376E992E-7618-4A15-8EB8-3D65D63E4839","EBFFC21E-3C15-4914-8F80-45CC095A96D0","DB635E2C-E17A-48AE-A07F-06FB8A706ED6","40542DC7-DD79-4E93-B421-3E20D7A80899"],"id":"E75F5935-16BC-46CF-8548-B9F0751A78D1","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5023}],"eventHandler":{"__isSmartRef__":true,"id":5025},"_ClipMode":"hidden","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5020},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"_MaxTextWidth":20,"_MinTextWidth":20,"_MaxTextHeight":null,"_MinTextHeight":null,"showsHalos":false,"eventsAreDisabled":true,"_PointerEvents":"none","doNotSerialize":["undoState"],"_WordBreak":"break-all","__serializedExpressions__":["_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"5022":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(20.0,18.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"5023":{"style":{"__isSmartRef__":true,"id":5024},"chunkOwner":{"__isSmartRef__":true,"id":5021},"storedString":"G","_id":"_4907","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5024":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5025":{"morph":{"__isSmartRef__":true,"id":5021},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5026":{"_BorderWidth":1,"_BorderRadius":5,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(20.0,18.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)","_Fill":"Color.rgb(0,204,0)"},"5027":{"morph":{"__isSmartRef__":true,"id":5020},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5028":{"sourceObj":{"__isSmartRef__":true,"id":5020},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5020},"targetMethodName":"onFire","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5029},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5029":{"source":{"__isSmartRef__":true,"id":5020},"target":{"__isSmartRef__":true,"id":5020}},"5030":{"resizeWidth":false,"resizeHeight":false,"moveHorizontal":false},"5031":{},"5032":{},"5033":{"onrestore":{"__isSmartRef__":true,"id":5034},"reset":{"__isSmartRef__":true,"id":5042},"onFire":{"__isSmartRef__":true,"id":5046},"createLayer":{"__isSmartRef__":true,"id":5050}},"5034":{"varMapping":{"__isSmartRef__":true,"id":5035},"source":"function onrestore() {\n this.reset();\n this.onFire();\n}","funcProperties":{"__isSmartRef__":true,"id":5040},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5035":{"this":{"__isSmartRef__":true,"id":5020},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5036}},"5036":{"$super":{"__isSmartRef__":true,"id":5037}},"5037":{"varMapping":{"__isSmartRef__":true,"id":5038},"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":5039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5038":{"obj":{"__isSmartRef__":true,"id":5020},"name":"onrestore"},"5039":{},"5040":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":5041}},"5041":{"isSerializedDate":true,"string":"Thu May 24 2012 19:08:39 GMT+0200 (CEST)"},"5042":{"varMapping":{"__isSmartRef__":true,"id":5043},"source":"function reset() {\n if (this.layer) this.layer.beNotGlobal();\n this.layer = null;\n this.setFill(this.normalFill = this.owner.menuButton.normalFill);\n this.doNotSerialize = ['layer'];\n}","funcProperties":{"__isSmartRef__":true,"id":5044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5043":{"this":{"__isSmartRef__":true,"id":5020}},"5044":{"user":"robertkrahn","tags":[],"timestamp":{"__isSmartRef__":true,"id":5045}},"5045":{"isSerializedDate":true,"string":"Wed Jun 06 2012 15:58:21 GMT+0200 (CEST)"},"5046":{"varMapping":{"__isSmartRef__":true,"id":5047},"source":"function onFire() {\n if (!this.layer) this.createLayer();\n if (this.layer.isGlobal()) {\n this.layer.beNotGlobal();\n } else {\n this.layer.beGlobal();\n }\n this.setFill(this.normalFill = (this.layer.isGlobal() ?\n Color.green : this.owner.menuButton.normalFill));\n}","funcProperties":{"__isSmartRef__":true,"id":5048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5047":{"this":{"__isSmartRef__":true,"id":5020}},"5048":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":5049}},"5049":{"isSerializedDate":true,"string":"Wed May 23 2012 02:08:29 GMT+0200 (CEST)"},"5050":{"varMapping":{"__isSmartRef__":true,"id":5051},"source":"function createLayer() {\n var main = this.get(\"SystemConsoleMain\");\n this.layer = cop.createLayer(\"GlobalStatus\").refineClass(lively.morphic.World, {\n setStatusMessage: function (msg, color) {\n main.addLine(msg, {color: color});\n }\n });\n}","funcProperties":{"__isSmartRef__":true,"id":5052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5051":{"this":{"__isSmartRef__":true,"id":5020}},"5052":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":5053}},"5053":{"isSerializedDate":true,"string":"Wed May 23 2012 02:06:13 GMT+0200 (CEST)"},"5054":{"submorphs":[{"__isSmartRef__":true,"id":5055}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5060},"derivationIds":[null,"ADC33688-68F4-4F07-BB55-2910235F3A5D","0B4877B5-7468-448D-85A4-B52DEC51384E","CDBD1F9D-B598-45D8-9B73-5DF9FCE358B6","6A412198-7AC2-4935-B396-5B73279BD8CA","07B28573-6267-4313-AC89-36B73BD961EA","4507B8AE-57F6-44F4-9F90-D5D04C49D724","CE9370C6-DB13-4DE3-9E04-9EA234BA94DE","B6CB1595-814A-4688-A370-4701670EAC2A","F2EF94ED-2B3E-4B41-A47F-B13BAE585ECA","217934D8-349C-4F26-B3CC-254D49DDFB39"],"id":"F2DDCA9C-2AA1-411A-8254-59A0949E4E72","eventHandler":{"__isSmartRef__":true,"id":5062},"_ClipMode":"visible","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":5055},"owner":{"__isSmartRef__":true,"id":4975},"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":5063}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"isPressed":false,"_Rotation":0,"_Scale":1,"_StyleClassNames":["Morph","Button","WindowControl"],"normalFill":{"__isSmartRef__":true,"id":5064},"lighterFill":{"__isSmartRef__":true,"id":5065},"prevScroll":[0,0],"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(20.0,0.9)","distanceToDragEvent":"lively.pt(30.5,-16.4)"},"5055":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5056},"derivationIds":[null,"E64FA17D-0B32-4CA4-9049-40F07154031A","82CCC5F4-5FCD-4B2B-BC4A-E628BA13E416","C1107766-61F9-4523-BF06-FF2A5BC53C03","46B8DE36-B448-4D66-BA40-0FEA6BA53EB6","EE80EF78-5817-482E-A968-D779F0124C4D","E8E0239B-6320-4729-A615-C50B5BB5FD37","8813AB8C-0CC2-4355-8024-C41BC03C740B","FC82D8EB-8F23-4045-B3FB-C13EE5BF26DB","64D437E5-AB51-4850-A745-0C1A2B60E721","0E6C9735-A0D6-4641-B408-7FDB9D0B20F4"],"id":"FD3246EA-7B0D-4BEB-BF71-1B6855E00DBE","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5057}],"eventHandler":{"__isSmartRef__":true,"id":5059},"_ClipMode":"hidden","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5054},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"showsHalos":false,"doNotSerialize":["undoState"],"_WordBreak":"break-all","_Rotation":0,"_Scale":1,"prevScroll":[0,0],"priorSelectionRange":null,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.9,2.0)","distanceToDragEvent":"lively.pt(33.6,-13.4)"},"5056":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"5057":{"style":{"__isSmartRef__":true,"id":5058},"chunkOwner":{"__isSmartRef__":true,"id":5055},"storedString":"C","_id":"_4904","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5058":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5059":{"morph":{"__isSmartRef__":true,"id":5055},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5060":{"_BorderWidth":0,"_StrokeOpacity":0,"_BorderRadius":5,"_Fill":{"__isSmartRef__":true,"id":5061},"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"5061":{},"5062":{"morph":{"__isSmartRef__":true,"id":5054},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5063":{"sourceObj":{"__isSmartRef__":true,"id":5054},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4928},"targetMethodName":"clear","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5064":{},"5065":{},"5066":{"_AppearanceStylingMode":true,"_BorderStylingMode":true,"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(941.5,22.0)","_Padding":"lively.rect(0,0,0,0)"},"5067":{"morph":{"__isSmartRef__":true,"id":4975},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5068":{"resizeWidth":true,"adjustForNewBounds":true},"5069":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5070},"_ClipMode":"visible","derivationIds":["338C587C-6A11-432C-AE46-84705E55F859","174C71C2-A872-489C-9EB4-B1DC897E0545"],"id":"CF6F3301-623C-4A43-8E22-8675DD2097E2","__layered_droppingEnabled__":true,"halosEnabled":true,"type":"corner","_StyleClassNames":["Morph","Box","ReframeHandle","reframe-handle corner"],"layout":{"__isSmartRef__":true,"id":5071},"owner":{"__isSmartRef__":true,"id":4927},"eventHandler":{"__isSmartRef__":true,"id":5072},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.ReframeHandle","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(927.5,403.0)"},"5070":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(14.0,14.0)","_Padding":"lively.rect(0,0,0,0)"},"5071":{"moveVertical":true,"moveHorizontal":true},"5072":{"morph":{"__isSmartRef__":true,"id":5069},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5073":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5074},"_ClipMode":"visible","derivationIds":["B002FD3B-4FFE-455B-811C-9D7EFE5A5215","41904F96-8B12-4A16-BCC4-7EC34999D799"],"id":"1539BD6B-7F4D-4490-AEBA-FAE8AF5F579C","__layered_droppingEnabled__":true,"halosEnabled":true,"type":"bottom","_StyleClassNames":["Morph","Box","ReframeHandle","reframe-handle bottom"],"layout":{"__isSmartRef__":true,"id":5075},"owner":{"__isSmartRef__":true,"id":4927},"eventHandler":{"__isSmartRef__":true,"id":5076},"showsHalos":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.ReframeHandle","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,413.0)"},"5074":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(927.5,4.0)","_Padding":"lively.rect(0,0,0,0)"},"5075":{"moveVertical":true},"5076":{"morph":{"__isSmartRef__":true,"id":5073},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5077":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5078},"_ClipMode":"visible","derivationIds":["7EF76810-825B-463B-937C-79C09890DC9D","7A97F0A1-C7D7-4145-90AA-B7FB0F4D9794"],"id":"0B183372-C830-42E2-8431-065E45399900","__layered_droppingEnabled__":true,"halosEnabled":true,"type":"right","_StyleClassNames":["Morph","Box","ReframeHandle","reframe-handle right"],"layout":{"__isSmartRef__":true,"id":5079},"owner":{"__isSmartRef__":true,"id":4927},"eventHandler":{"__isSmartRef__":true,"id":5080},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.ReframeHandle","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(937.5,0.0)"},"5078":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(4.0,403.0)","_Padding":"lively.rect(0,0,0,0)"},"5079":{"moveHorizontal":true},"5080":{"morph":{"__isSmartRef__":true,"id":5077},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5081":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"__serializedExpressions__":["_Padding","_Extent","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Padding":"lively.rect(0,0,0,0)","_Extent":"lively.pt(941.5,417.0)","_Position":"lively.pt(0.0,0.0)"},"5082":{"morph":{"__isSmartRef__":true,"id":4927},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5083":{"adjustForNewBounds":true},"5084":{"a":1.002003004005006,"b":0,"c":0,"d":1.002003004005006,"e":33,"f":437,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5085":{"a":1.002003004005006,"b":0,"c":0,"d":1.002003004005006,"e":33,"f":437,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5086":{"partName":"SystemConsole","requiredModules":[],"comment":"a simple transcript to display console and log messages","changes":[{"__isSmartRef__":true,"id":5087},{"__isSmartRef__":true,"id":5089},{"__isSmartRef__":true,"id":5091},{"__isSmartRef__":true,"id":5093},{"__isSmartRef__":true,"id":5095},{"__isSmartRef__":true,"id":5097},{"__isSmartRef__":true,"id":5099}],"migrationLevel":8,"partsSpaceName":"PartsBin/Tools","lastModifiedDate":{"__isSmartRef__":true,"id":5101},"revisionOnLoad":196935,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5087":{"author":"jenslincke","message":"reset title bar","id":"2DCEBBF0-4B51-43BC-813B-CC370208C14F","date":{"__isSmartRef__":true,"id":5088}},"5088":{"isSerializedDate":true,"string":"Thu Nov 29 2012 10:09:19 GMT+0100 (CET)"},"5089":{"author":"robertkrahn","message":"fixed serialization issue created because of storing \"layer\"","id":"FDC20E55-9300-462B-9768-5311975F67FC","date":{"__isSmartRef__":true,"id":5090}},"5090":{"isSerializedDate":true,"string":"Wed Jun 06 2012 15:59:25 GMT+0200 (CEST)"},"5091":{"author":"cschuster","message":"better restore after save","id":"53EDF516-61FF-4F63-9601-7C8A47FAD9F8","date":{"__isSmartRef__":true,"id":5092}},"5092":{"isSerializedDate":true,"string":"Wed May 23 2012 22:54:32 GMT+0200 (CEST)"},"5093":{"author":"cschuster","message":"better restore after save","id":"49DAE26A-5B6A-4D19-958C-48F1BC2AAFB7","date":{"__isSmartRef__":true,"id":5094}},"5094":{"isSerializedDate":true,"string":"Wed May 23 2012 22:53:13 GMT+0200 (CEST)"},"5095":{"author":"cschuster","message":"better version","id":"CB2E74BB-718C-4318-8642-604779EA98B4","date":{"__isSmartRef__":true,"id":5096}},"5096":{"isSerializedDate":true,"string":"Tue May 22 2012 23:45:39 GMT+0200 (CEST)"},"5097":{"author":"ohshima","message":"no comment","id":"EF653486-890D-4844-893C-26263A869130","date":{"__isSmartRef__":true,"id":5098}},"5098":{"isSerializedDate":true,"string":"Wed Jul 10 2013 19:34:38 GMT+0200 (CEST)"},"5099":{"author":"ohshima","message":"no comment","id":"59FA34EA-90D8-4BF4-9682-86B3C0C518D8","date":{"__isSmartRef__":true,"id":5100}},"5100":{"isSerializedDate":true,"string":"Fri Jul 12 2013 19:14:45 GMT+0200 (CEST)"},"5101":{"isSerializedDate":true,"string":"Fri Jul 12 2013 19:13:03 GMT+0200 (CEST)"},"5102":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5103},"derivationIds":[null,"60D9F599-2A8A-48B6-AE1B-23259CD039DA","B438E22E-581E-4F93-9768-30F932E10F7E","6648EC8E-79A1-45B7-8FC4-E4A812580161","096FD08B-3229-4112-A4A6-C9950D1A9443","44EE103C-3F1C-49E3-B9E9-347F729B0660","3B8BBC58-2ACD-466C-8E53-F26BE83121FF","CCA2C1AC-FB82-46D7-90EF-5A31AE9D7A8A","1F89F387-760B-41AF-82B2-A5517D4841D3","5275EC39-C363-4361-97D2-56B35EEC5B31"],"id":"F31108F8-717F-42D5-986B-7526FE86B8C3","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5104}],"eventHandler":{"__isSmartRef__":true,"id":5106},"_ClipMode":"hidden","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":5107},"_Align":"center","eventsAreIgnored":true,"owner":null,"_MaxTextWidth":555,"_MinTextWidth":555,"_MaxTextHeight":null,"_MinTextHeight":null,"attributeConnections":[],"doNotSerialize":["undoState"],"doNotCopyProperties":[],"showsHalos":false,"_Rotation":0,"_Scale":1,"_WordBreak":"break-all","__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(180,20,20)","_Position":"lively.pt(60.0,3.0)"},"5103":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(555.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"5104":{"style":{"__isSmartRef__":true,"id":5105},"chunkOwner":{"__isSmartRef__":true,"id":5102},"_id":"_4911","storedString":"System Console","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5105":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5106":{"morph":{"__isSmartRef__":true,"id":5102},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5107":{"resizeWidth":true},"5108":{"onLoadFromPartsBin":{"__isSmartRef__":true,"id":5109},"reset":{"__isSmartRef__":true,"id":5117},"onShutdown":{"__isSmartRef__":true,"id":5121}},"5109":{"varMapping":{"__isSmartRef__":true,"id":5110},"source":"function onLoadFromPartsBin() {\n $super();\n this.get(\"SystemConsoleMain\").onLoadFromPartsBin();\n}","funcProperties":{"__isSmartRef__":true,"id":5115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5110":{"this":{"__isSmartRef__":true,"id":4927},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5111}},"5111":{"$super":{"__isSmartRef__":true,"id":5112}},"5112":{"varMapping":{"__isSmartRef__":true,"id":5113},"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":5114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5113":{"obj":{"__isSmartRef__":true,"id":4927},"name":"onLoadFromPartsBin"},"5114":{},"5115":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":5116}},"5116":{"isSerializedDate":true,"string":"Wed May 23 2012 01:03:53 GMT+0200 (CEST)"},"5117":{"varMapping":{"__isSmartRef__":true,"id":5118},"source":"function reset() {\n this.get(\"ErrorHandlerButton\").reset();\n this.get(\"SystemConsoleMain\").clear();\n}","funcProperties":{"__isSmartRef__":true,"id":5119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5118":{"this":{"__isSmartRef__":true,"id":4927}},"5119":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":5120}},"5120":{"isSerializedDate":true,"string":"Wed May 23 2012 02:09:19 GMT+0200 (CEST)"},"5121":{"varMapping":{"__isSmartRef__":true,"id":5122},"source":"function onShutdown() {\n console.removeConsumer(this.get(\"SystemConsoleMain\"));\n}","funcProperties":{"__isSmartRef__":true,"id":5123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5122":{"this":{"__isSmartRef__":true,"id":4927}},"5123":{"user":"cschuster","tags":[],"timestamp":{"__isSmartRef__":true,"id":5124}},"5124":{"isSerializedDate":true,"string":"Thu May 24 2012 19:32:00 GMT+0200 (CEST)"},"5125":{"submorphs":[],"scripts":[],"id":226,"shape":{"__isSmartRef__":true,"id":5126},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":false,"registeredForMouseEvents":true,"_world":{"__isSmartRef__":true,"id":0},"carriesGrabbedMorphs":false,"eventHandler":{"__isSmartRef__":true,"id":5127},"_ClipMode":"visible","lastScrollTime":1391551204096,"prevScroll":[0,0],"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":0},"doNotSerialize":["$$scrollFocusMorph"],"doNotCopyProperties":["$$scrollFocusMorph"],"highlightConnection":null,"attributeConnections":[],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.HandMorph","__SourceModuleName__":"Global.lively.morphic.Events","withLayers":["Global.NoMagnetsLayer"],"_Position":"lively.pt(2301.4,1149.0)"},"5126":{"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(2.0,2.0)","_Fill":"Color.rgb(204,0,0)","_Padding":"lively.rect(0,0,0,0)"},"5127":{"morph":{"__isSmartRef__":true,"id":5125},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5128":{"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(6800.0,6900.0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"5129":{"name":"Local code","__LivelyClassName__":"ChangeSet","__SourceModuleName__":"Global.lively.ChangeSet"},"5130":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5131":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"savedWorldAsURL","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"visitNewPageAfterSaveAs","varMapping":{"__isSmartRef__":true,"id":5132},"updaterString":"function ($upd, v) {\n if (v && v.toString() !== URL.source.toString()) { $upd(v); }\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5132":{"source":{"__isSmartRef__":true,"id":0},"target":{"__isSmartRef__":true,"id":0}},"5133":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/demos/EnergySimulationScriptedDEMO.xhtml","search":"?forceInvalidateCache=1390992828548","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"5134":{"submorphs":[{"__isSmartRef__":true,"id":5135}],"scripts":[],"id":"6739B791-0DAD-4546-8A9B-F05CBE91B99A","shape":{"__isSmartRef__":true,"id":5146},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"LoadingMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":5147},"eventHandler":{"__isSmartRef__":true,"id":5247},"derivationIds":[127,"59692BC3-6C7B-4E23-B820-8699260EA722","486BB935-1313-4103-B2A8-642B19437478","18AFFD44-46CD-489E-B1D6-DED43E2B6B06","2608C892-2204-4981-9A87-8E749F8944AB","5535861F-4EA2-44AB-8A40-0538124E0AAC","16C292B3-86E8-4622-B516-27C48263B8CC","87731A20-D455-44D0-97E5-98A7CFD4E417","A17081E7-E597-47ED-BD32-6E4D206BD7D7","CFB4A44C-BFEA-4584-BCBA-AE2A56739200","76B3DD9B-8D01-42BA-A574-AB99D5F899BB","1EBC5512-8F54-4B24-998C-69A285EC8533","DD1165C7-6C1A-4361-A4AE-FCF6F31152FD","4D6D36E8-48F3-408A-B03C-202E4DC182BD","5F3B3E0F-BBC6-4DDA-BAA0-7EFC05FF2011","E0A6B33B-767A-4532-9021-892414520200","F5F5E2B1-5FF0-4E09-B323-AE88A3920B8D","0C7E832A-A741-430F-B295-8BC181D066FE","472AED3B-CB76-49BD-BF49-354A2D568F86","A7C52F65-D140-4791-880F-F7584C7BB570","3516412B-8B36-4E52-9416-6B7FB358BDC2","1840CACC-078C-4795-AD3F-E9D6F8D557A0","1FEDCA25-0131-46FA-840F-DC5F1B05C6CA","C620CED3-0AE9-4097-9AA7-2706A042F9C9","679A861B-40E0-4DB2-B22F-95B454C6978D","FEF39B3C-E634-4825-BAB8-2D44FE647B03","0C359AB4-E7FF-46F2-B050-E84944AAC865"],"isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":5248},"prevScroll":[0,0],"moved":true,"headRevision":146469,"_ClipMode":"visible","_Rotation":0,"_Scale":1,"isMetaTool":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5249},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(171.0,-13.0)"},"5135":{"submorphs":[{"__isSmartRef__":true,"id":5136}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5142},"id":"B13DE0D2-F119-4FEF-BD93-B85CDF93B29C","eventHandler":{"__isSmartRef__":true,"id":5143},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"ProgressIndicator","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":5144},"derivationIds":[520,"071F18BE-FF28-40F5-ACAD-1916E0D25C38","DF185A10-743D-45FC-B9C2-76E12D908BCF","BF125D2C-596A-4C1E-A5F8-DAE4801E9497","3CEE8CFF-B8F1-4B4B-A405-CB583080252A","D0652878-8F9C-4591-8A82-296898AACDB6","31441DDF-2220-43BE-A99F-69E1FEC68030","14A90039-0D3E-46DC-8445-D42B8E02EB42","681EF5DE-A344-4114-B2F3-B96CE3872524","C0381116-5116-4F33-B082-A411D0E4534E","24E9581E-B008-46EE-9CBC-D5190E100D98","C69D1041-2C5E-48FE-B04C-04E66450658A","4830945B-4FFF-4564-9424-34D7995DAE60","8602C233-B3E7-4682-9B0E-D7549761D934","B4E0E11F-2BED-462E-B708-89D63971856E","EE0144C2-D016-4390-8A67-4E7DEF171C83","F44DF6E4-5F27-440E-AB5F-3721C0A10CA6","73FC6648-DAAF-4673-8CF4-7DA219513F22","B78EB1B5-780C-45F7-B0A7-B988B52B1FF1","DFDB8CD1-72F7-40F4-849B-1F9B866277AB","66111105-B1FC-41F7-BF70-D45118C9E09F","02420416-1E35-4831-AABB-91CD0460CA1A","7C6B2EB2-4510-4A8E-BAFF-5CF0040DD7F5","0503F5A1-1732-4610-9A5A-920D658CA766","07C5AE03-36AD-4849-BACD-27D7D9A2CCF2","9FFF9D73-931C-404C-AA4B-5AC2E7C53504","B1D109CF-D403-4B0A-988D-50F79586DAC1"],"owner":{"__isSmartRef__":true,"id":5134},"isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":5145},"prevScroll":[0,0],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(113.5,81.0)","distanceToDragEvent":"lively.pt(39.0,-11.0)"},"5136":{"submorphs":[],"scripts":[],"id":"0324BE1F-4D4F-47A1-8D8E-1DB05FA4D5DA","shape":{"__isSmartRef__":true,"id":5137},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":257,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"loadedMorphName","partsBinMetaInfo":{"__isSmartRef__":true,"id":5138},"textChunks":[{"__isSmartRef__":true,"id":5139}],"charsReplaced":"MorphName","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":5141},"_ClipMode":"visible","derivationIds":[355,"023045B3-2D6B-4425-89FB-F4806D527BE0","DC0C2365-868C-41AE-8369-51C31E91493E","C6D9D314-86A1-4015-970B-F6787F535E1A","6AA4552E-2E85-447E-9033-99D5AA1A94BC","D94BE49C-8A3E-4F1F-BF28-FEDD9B40D213","AA8F0470-654C-4AA2-8135-4607F5429AC5","E0BAABCC-FFB2-4EDF-BAE5-C63CC99B6A97","1A86AE17-73AE-442E-AB36-DD90C6DFC8BC","EF750075-E964-4CD3-B6A4-161511E1D058","CED69CBF-FFA5-45E7-B333-FBACE4F278AC","E56978C1-7424-4C10-8168-11FD3237B540","D5AB2532-A4DC-42D6-AF17-99CBBCEAA848","245866CB-598A-4172-A3A0-A06D4D26C6AD","43B0F12E-5793-43AA-80E1-496774E0EBA6","1B776A8C-0413-475F-8EBD-120BBD91D2BB","F84F2C9A-8003-4E81-833A-83F48C92F3B8","3124B389-9FA4-4348-BC5D-0DFF9C59CD1B","1A1BCBAC-D7CC-4BAE-B8C2-7C693F7327A1","1CB201BA-5E0B-4771-821A-139FA2AEFBC2","195520FA-4816-47A4-B0F5-BA890AFD9DF9","0D15F28A-24C9-46B7-89C5-6D2354728AC1","316FE9D3-62EC-4FD6-9B0F-FFA622B79575","739F3743-9BE1-48C8-813D-C0BFB0DCACA6","01877B3B-7DA7-4222-B011-7B5F4E501862","B8FE7DEE-9568-4BE6-BA12-EA674BA79E08","08EA4866-65F7-416E-810F-77F2E719663A"],"_WhiteSpaceHandling":"pre-wrap","owner":{"__isSmartRef__":true,"id":5135},"_MinTextWidth":257,"_MinTextHeight":null,"previousSelection":[6,6],"_Align":"center","isBeingDragged":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-109.0,38.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(179.0,-11.0)"},"5137":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__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(257.0,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"5138":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5139":{"style":{"__isSmartRef__":true,"id":5140},"chunkOwner":{"__isSmartRef__":true,"id":5136},"storedString":"loading part","_id":"_4371","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5140":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5141":{"morph":{"__isSmartRef__":true,"id":5136},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5142":{"_ImageURL":"data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAkKAAAALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA==","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"_ClipMode":"visible","_BorderWidth":0,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(31.0,31.0)","_Padding":"lively.rect(0,0,0,0)"},"5143":{"morph":{"__isSmartRef__":true,"id":5135},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5144":{"partName":"ProgressIndicator","requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Widgets/","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5145":{"centeredHorizontal":true,"centeredVertical":true},"5146":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":8.515,"_Opacity":0.8146,"_BorderStyle":"solid","__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(266.0,223.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"5147":{"partsSpaceName":"PartsBin/iPadWidgets","comment":"This is a placeholder to indicate that a morph is being loaded. It will be replaced by the morph as soon as the requested morph finished loading.","migrationLevel":4,"partName":"LoadingMorph","changes":[{"__isSmartRef__":true,"id":5148},{"__isSmartRef__":true,"id":5150},{"__isSmartRef__":true,"id":5152},{"__isSmartRef__":true,"id":5154},{"__isSmartRef__":true,"id":5156},{"__isSmartRef__":true,"id":5158},{"__isSmartRef__":true,"id":5160},{"__isSmartRef__":true,"id":5162},{"__isSmartRef__":true,"id":5164},{"__isSmartRef__":true,"id":5166},{"__isSmartRef__":true,"id":5168},{"__isSmartRef__":true,"id":5170},{"__isSmartRef__":true,"id":5172},{"__isSmartRef__":true,"id":5174},{"__isSmartRef__":true,"id":5176},{"__isSmartRef__":true,"id":5178},{"__isSmartRef__":true,"id":5180},{"__isSmartRef__":true,"id":5182},{"__isSmartRef__":true,"id":5184},{"__isSmartRef__":true,"id":5186},{"__isSmartRef__":true,"id":5188},{"__isSmartRef__":true,"id":5190},{"__isSmartRef__":true,"id":5192},{"__isSmartRef__":true,"id":5194},{"__isSmartRef__":true,"id":5196},{"__isSmartRef__":true,"id":5198},{"__isSmartRef__":true,"id":5200},{"__isSmartRef__":true,"id":5202},{"__isSmartRef__":true,"id":5204},{"__isSmartRef__":true,"id":5206},{"__isSmartRef__":true,"id":5208},{"__isSmartRef__":true,"id":5210},{"__isSmartRef__":true,"id":5212},{"__isSmartRef__":true,"id":5214},{"__isSmartRef__":true,"id":5216},{"__isSmartRef__":true,"id":5218},{"__isSmartRef__":true,"id":5220},{"__isSmartRef__":true,"id":5222},{"__isSmartRef__":true,"id":5224},{"__isSmartRef__":true,"id":5226},{"__isSmartRef__":true,"id":5228},{"__isSmartRef__":true,"id":5230},{"__isSmartRef__":true,"id":5232},{"__isSmartRef__":true,"id":5234},{"__isSmartRef__":true,"id":5236},{"__isSmartRef__":true,"id":5238},{"__isSmartRef__":true,"id":5240},{"__isSmartRef__":true,"id":5242},{"__isSmartRef__":true,"id":5244}],"lastModifiedDate":{"__isSmartRef__":true,"id":5246},"revisionOnLoad":194364,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5148":{"date":{"__isSmartRef__":true,"id":5149},"author":"sstamm","message":"","id":"1C1391AE-5722-4707-BE52-F0094FC56829"},"5149":{"isSerializedDate":true,"string":"Wed Feb 22 2012 14:02:04 GMT+0100 (CET)"},"5150":{"date":{"__isSmartRef__":true,"id":5151},"author":"sstamm","message":"","id":"663F147A-9084-4AC3-81A7-1E7BA6547F08"},"5151":{"isSerializedDate":true,"string":"Wed Feb 22 2012 12:43:10 GMT+0100 (CET)"},"5152":{"date":{"__isSmartRef__":true,"id":5153},"author":"sstamm","message":"","id":"F72B746E-B170-4EFB-9074-5E8770640B8A"},"5153":{"isSerializedDate":true,"string":"Wed Feb 22 2012 12:36:14 GMT+0100 (CET)"},"5154":{"date":{"__isSmartRef__":true,"id":5155},"author":"sstamm","message":"","id":"568D2EFD-C535-43AE-8944-6D8B967129F5"},"5155":{"isSerializedDate":true,"string":"Wed Feb 22 2012 12:23:04 GMT+0100 (CET)"},"5156":{"date":{"__isSmartRef__":true,"id":5157},"author":"sstamm","message":"","id":"AB2484A6-0707-4E13-845E-F0A5F48BBA3D"},"5157":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:59:45 GMT+0100 (CET)"},"5158":{"date":{"__isSmartRef__":true,"id":5159},"author":"sstamm","message":"","id":"97D20633-F76C-46A5-A32A-FFE9BC83CAB3"},"5159":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:59:10 GMT+0100 (CET)"},"5160":{"date":{"__isSmartRef__":true,"id":5161},"author":"sstamm","message":"","id":"8A697DF5-9A45-4A84-B709-9719BF55083E"},"5161":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:56:54 GMT+0100 (CET)"},"5162":{"date":{"__isSmartRef__":true,"id":5163},"author":"sstamm","message":"","id":"F2157D66-1571-4B9A-B325-6FA96488260F"},"5163":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:51:05 GMT+0100 (CET)"},"5164":{"date":{"__isSmartRef__":true,"id":5165},"author":"sstamm","message":"","id":"E5E808CA-06AB-47DC-A9C9-CA7967591545"},"5165":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:47:19 GMT+0100 (CET)"},"5166":{"date":{"__isSmartRef__":true,"id":5167},"author":"sstamm","message":"","id":"009DC4E0-23CA-485A-A796-801AA0F75049"},"5167":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:46:25 GMT+0100 (CET)"},"5168":{"date":{"__isSmartRef__":true,"id":5169},"author":"sstamm","message":"","id":"C0CE1397-6E2E-4E8C-AEFF-9017E24BB7E4"},"5169":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:45:05 GMT+0100 (CET)"},"5170":{"date":{"__isSmartRef__":true,"id":5171},"author":"sstamm","message":"","id":"FFE16986-548D-4AC2-A627-CF6416282BC4"},"5171":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:37:15 GMT+0100 (CET)"},"5172":{"date":{"__isSmartRef__":true,"id":5173},"author":"sstamm","message":"","id":"57213D63-7147-4057-ADC9-30994443B066"},"5173":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:35:29 GMT+0100 (CET)"},"5174":{"date":{"__isSmartRef__":true,"id":5175},"author":"sstamm","message":"","id":"75A31364-B380-4312-BB5B-F8F2DA1CE824"},"5175":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:31:52 GMT+0100 (CET)"},"5176":{"date":{"__isSmartRef__":true,"id":5177},"author":"sstamm","message":"","id":"5AA50B7E-7D33-44C4-807B-BF1ABA31D530"},"5177":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:14:10 GMT+0100 (CET)"},"5178":{"date":{"__isSmartRef__":true,"id":5179},"author":"sstamm","message":"","id":"BCDCC505-534C-45E5-9BB2-5238959A5AD0"},"5179":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:02:56 GMT+0100 (CET)"},"5180":{"date":{"__isSmartRef__":true,"id":5181},"author":"sstamm","message":"","id":"890D14F4-E89D-4E05-BFB9-875D6AB6C765"},"5181":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:01:50 GMT+0100 (CET)"},"5182":{"date":{"__isSmartRef__":true,"id":5183},"author":"sstamm","message":"","id":"B6FE0805-0D24-4267-8238-8B332352617E"},"5183":{"isSerializedDate":true,"string":"Wed Feb 22 2012 10:55:44 GMT+0100 (CET)"},"5184":{"date":{"__isSmartRef__":true,"id":5185},"author":"sstamm","message":"callbacks are working","id":"9348260A-3B55-4659-BC85-440BFBD98EA4"},"5185":{"isSerializedDate":true,"string":"Fri Feb 10 2012 09:45:55 GMT+0100 (CET)"},"5186":{"date":{"__isSmartRef__":true,"id":5187},"author":"sstamm","message":"made it more opaque","id":"1B84264C-2822-407F-A58F-19217BCD2762"},"5187":{"isSerializedDate":true,"string":"Wed Feb 08 2012 11:41:50 GMT+0100 (CET)"},"5188":{"date":{"__isSmartRef__":true,"id":5189},"author":"sstamm","message":"","id":"0FB41D7D-2A52-4782-814B-A66C24FCE569"},"5189":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:13:49 GMT+0100 (CET)"},"5190":{"date":{"__isSmartRef__":true,"id":5191},"author":"sstamm","message":"","id":"A0C2D7C1-04AF-493A-A7D7-70750F7D3E2F"},"5191":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:22:07 GMT+0100 (CET)"},"5192":{"date":{"__isSmartRef__":true,"id":5193},"author":"sstamm","message":"trollolol","id":"F6CFAD78-AC72-4DE2-9F38-79776C2E9462"},"5193":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:55:14 GMT+0100 (CET)"},"5194":{"date":{"__isSmartRef__":true,"id":5195},"author":"sstamm","message":"should be centered now","id":"EE366B4D-C272-477F-8C28-4EAE5A7EC7CB"},"5195":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:54:35 GMT+0100 (CET)"},"5196":{"date":{"__isSmartRef__":true,"id":5197},"author":"sstamm","message":"initial commit","id":"8920D925-DD16-4667-B8C7-FB74D78C2424"},"5197":{"isSerializedDate":true,"string":"Thu Feb 02 2012 13:26:01 GMT+0100 (CET)"},"5198":{"date":{"__isSmartRef__":true,"id":5199},"author":"sstamm","message":"changed text morph name","id":"80E88A3C-5AF3-48F2-A600-710877630997"},"5199":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:04:01 GMT+0100 (CET)"},"5200":{"date":{"__isSmartRef__":true,"id":5201},"author":"sstamm","message":"added loading script","id":"EE9B8F4D-1F03-4232-82E6-794046974F8F"},"5201":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:28:30 GMT+0100 (CET)"},"5202":{"date":{"__isSmartRef__":true,"id":5203},"author":"sstamm","message":"added disconnection","id":"11F19267-924E-4087-99ED-998245576BD2"},"5203":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:32:58 GMT+0100 (CET)"},"5204":{"date":{"__isSmartRef__":true,"id":5205},"author":"sstamm","message":"removed connections before deletion","id":"35A88218-6864-4D52-83A2-BFF7B9A6907C"},"5205":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:41:00 GMT+0100 (CET)"},"5206":{"date":{"__isSmartRef__":true,"id":5207},"author":"sstamm","message":"now able to load parts by name and category as well as per partItem","id":"F36A5782-461D-4813-95F8-0207990A261C"},"5207":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:24:30 GMT+0100 (CET)"},"5208":{"date":{"__isSmartRef__":true,"id":5209},"author":"sstamm","message":"now with round corners","id":"F42C39CB-CC37-467D-BF10-D362241F047E"},"5209":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:26:23 GMT+0100 (CET)"},"5210":{"date":{"__isSmartRef__":true,"id":5211},"author":"sstamm","message":"loadingMorph is sync now","id":"12ACFFC9-BA53-4A2A-ABD4-894A5ECE1145"},"5211":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:48:04 GMT+0100 (CET)"},"5212":{"date":{"__isSmartRef__":true,"id":5213},"author":"sstamm","message":"display the loadingMorph in new thread","id":"2BA51E30-F02B-4AF0-B3BE-52DD4ED522CC"},"5213":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:53:49 GMT+0100 (CET)"},"5214":{"date":{"__isSmartRef__":true,"id":5215},"author":"sstamm","message":"","id":"DF0AE4EA-1B08-4556-8BBE-E6488F23B8A3"},"5215":{"isSerializedDate":true,"string":"Thu Feb 02 2012 16:49:48 GMT+0100 (CET)"},"5216":{"date":{"__isSmartRef__":true,"id":5217},"author":"sstamm","message":"","id":"220821B3-C589-41C9-A324-8E7E6D9D6CEB"},"5217":{"isSerializedDate":true,"string":"Thu Feb 02 2012 16:58:43 GMT+0100 (CET)"},"5218":{"date":{"__isSmartRef__":true,"id":5219},"author":"sstamm","message":"","id":"DEBFACE2-7EC5-4A86-AD46-5A0A88A73707"},"5219":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:04:28 GMT+0100 (CET)"},"5220":{"date":{"__isSmartRef__":true,"id":5221},"author":"sstamm","message":"load request in new thread if loading should be async","id":"18282D28-D6D4-48C9-A508-6E3244449BD8"},"5221":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:10:27 GMT+0100 (CET)"},"5222":{"date":{"__isSmartRef__":true,"id":5223},"author":"sstamm","message":"added benchmarking output","id":"249CFF90-DDF5-4A83-9759-0289E96D7D58"},"5223":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:31:50 GMT+0100 (CET)"},"5224":{"date":{"__isSmartRef__":true,"id":5225},"author":"sstamm","message":"","id":"882082E1-29B6-418D-9B8B-672729D60619"},"5225":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:38:26 GMT+0100 (CET)"},"5226":{"date":{"__isSmartRef__":true,"id":5227},"author":"sstamm","message":"","id":"5179AEF9-E19F-4B0C-BBD8-556C5687988A"},"5227":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:44:11 GMT+0100 (CET)"},"5228":{"date":{"__isSmartRef__":true,"id":5229},"author":"sstamm","message":"","id":"1159C5B4-724E-4124-9D7B-5CD5DC4A8EE3"},"5229":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:48:14 GMT+0100 (CET)"},"5230":{"date":{"__isSmartRef__":true,"id":5231},"author":"sstamm","message":"","id":"2A718D1F-1036-41D6-999A-336F2B14E65D"},"5231":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:49:47 GMT+0100 (CET)"},"5232":{"date":{"__isSmartRef__":true,"id":5233},"author":"sstamm","message":"","id":"EB6BDD0C-7EEC-4124-B77F-2F106A601538"},"5233":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:59:48 GMT+0100 (CET)"},"5234":{"date":{"__isSmartRef__":true,"id":5235},"author":"sstamm","message":"","id":"63EC8D07-AB6A-450A-BB84-9B4D37E03647"},"5235":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:02:33 GMT+0100 (CET)"},"5236":{"date":{"__isSmartRef__":true,"id":5237},"author":"sstamm","message":"","id":"19CE12E4-5AA5-48DC-B1D1-B0EB0EDF1CB9"},"5237":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:03:42 GMT+0100 (CET)"},"5238":{"date":{"__isSmartRef__":true,"id":5239},"author":"sstamm","message":"first attempt to introduce callback functions to part loading","id":"22BD0B95-8948-411A-A56E-AD7CBE445F1D"},"5239":{"isSerializedDate":true,"string":"Thu Feb 09 2012 20:20:11 GMT+0100 (CET)"},"5240":{"date":{"__isSmartRef__":true,"id":5241},"author":"sstamm","message":"","id":"A216DFD2-9D1F-4E62-A22F-6B5472823E1B"},"5241":{"isSerializedDate":true,"string":"Fri Mar 16 2012 15:37:34 GMT+0100 (CET)"},"5242":{"date":{"__isSmartRef__":true,"id":5243},"author":"sstamm","message":"","id":"464E723A-08DC-433C-AA5C-CEC850DBAF0B"},"5243":{"isSerializedDate":true,"string":"Fri Mar 16 2012 15:42:29 GMT+0100 (CET)"},"5244":{"date":{"__isSmartRef__":true,"id":5245},"author":"jenslincke","message":"make it a meta tool","id":"8406E1E5-C48F-4F03-AC17-81AABDE9235E"},"5245":{"isSerializedDate":true,"string":"Fri Mar 22 2013 14:56:05 GMT+0100 (CET)"},"5246":{"isSerializedDate":true,"string":"Fri Mar 22 2013 14:54:35 GMT+0100 (CET)"},"5247":{"morph":{"__isSmartRef__":true,"id":5134},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5248":{"adjustForNewBounds":true},"5249":{"loadPart":{"__isSmartRef__":true,"id":5250},"loadFinished":{"__isSmartRef__":true,"id":5254},"loadPartByName":{"__isSmartRef__":true,"id":5258}},"5250":{"varMapping":{"__isSmartRef__":true,"id":5251},"source":"function loadPart(partItem, isAsync) {\n this.partItem = partItem;\n \n this.openInWorld();\n if(partItem.part) {\n this.setExtent(partItem.part.getExtent());\n }\n this.align(this.bounds().center(), $world.visibleBounds().center());\n \n \n if(typeof isAsync === \"function\") {\n this.callback = isAsync;\n }\n\n connect(partItem, 'part', this, \"loadFinished\");\n\n partItem.loadPart(isAsync);\n\n return partItem.part;\n\n}","funcProperties":{"__isSmartRef__":true,"id":5252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5251":{"this":{"__isSmartRef__":true,"id":5134}},"5252":{"timestamp":{"__isSmartRef__":true,"id":5253},"user":"sstamm","tags":[]},"5253":{"isSerializedDate":true,"string":"Fri Mar 16 2012 15:42:18 GMT+0100 (CET)"},"5254":{"varMapping":{"__isSmartRef__":true,"id":5255},"source":"function loadFinished(part) {\n if(this.owner === $world.firstHand()) {\n $world.firstHand().removeAllMorphs();\n } else {\n this.owner.addMorph(part);\n part.align(part.bounds().center(), this.bounds().center());\n this.remove();\n }\n disconnect(this.partItem, 'part', this, \"loadFinished\");\n if(this.callback) {\n this.callback(part);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5255":{"this":{"__isSmartRef__":true,"id":5134}},"5256":{"timestamp":{"__isSmartRef__":true,"id":5257},"user":"sstamm","tags":[]},"5257":{"isSerializedDate":true,"string":"Wed Feb 22 2012 14:01:53 GMT+0100 (CET)"},"5258":{"varMapping":{"__isSmartRef__":true,"id":5259},"source":"function loadPartByName(partName, optPartsSpaceName, isAsync) {\n var partItem = lively.PartsBin.getPartItem(partName, optPartsSpaceName);\n return this.loadPart(partItem, isAsync);\n}","funcProperties":{"__isSmartRef__":true,"id":5260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5259":{"this":{"__isSmartRef__":true,"id":5134}},"5260":{"timestamp":{"__isSmartRef__":true,"id":5261},"user":"sstamm","tags":[]},"5261":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:03:18 GMT+0100 (CET)"},"5262":{"isSerializedDate":true,"string":"Tue Feb 04 2014 22:56:05 GMT+0100 (CET)"},"5263":{"rules":[{"__isSmartRef__":true,"id":5264},{"__isSmartRef__":true,"id":5266}],"originMorph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.StyleSheet","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"5264":{"declarations":[{"__isSmartRef__":true,"id":5265}],"styleSheet":{"__isSmartRef__":true,"id":5263},"selector":".Window","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"5265":{"values":["none"],"rule":{"__isSmartRef__":true,"id":5264},"property":"box-shadow","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"5266":{"declarations":[{"__isSmartRef__":true,"id":5267}],"styleSheet":{"__isSmartRef__":true,"id":5263},"selector":".Window.highlighted","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"5267":{"values":["none"],"rule":{"__isSmartRef__":true,"id":5266},"property":"box-shadow","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"5268":{"clipboardData":{"__isSmartRef__":true,"id":5269},"cancelBubble":false,"returnValue":false,"defaultPrevented":true,"timeStamp":1390820467435,"cancelable":true,"bubbles":true,"eventPhase":0,"currentTarget":null,"type":"paste","hasLivelyPatch":true,"isMouseEvent":false,"isKeyboardEvent":false,"world":{"__isSmartRef__":true,"id":0},"hand":{"__isSmartRef__":true,"id":5125},"isStopped":true,"__serializedExpressions__":["mousePoint"],"mousePoint":"lively.pt(0.0,0.0)"},"5269":{"items":{"__isSmartRef__":true,"id":5270},"files":{"__isSmartRef__":true,"id":5271},"types":null,"effectAllowed":"uninitialized","dropEffect":"none"},"5270":{"length":0},"5271":{"length":0},"isSimplifiedRegistry":true}}]]>