{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1},{"__isSmartRef__":true,"id":41},{"__isSmartRef__":true,"id":768},{"__isSmartRef__":true,"id":772},{"__isSmartRef__":true,"id":776}],"scripts":[],"shape":{"__isSmartRef__":true,"id":780},"_ClipMode":"visible","derivationIds":["0D8B71C9-B15F-4DCF-A1DC-34FDA66C92B2","A3D50918-3B6E-444D-B70E-C78D6CE5C3BC","72E04C21-B98D-49E6-A426-16481712DE33"],"id":"95F4F289-A3FF-4CA0-8588-2CF9969E2BE1","droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":781},"closeButton":{"__isSmartRef__":true,"id":8},"collapseButton":{"__isSmartRef__":true,"id":18},"menuButton":{"__isSmartRef__":true,"id":28},"reframeHandle":{"__isSmartRef__":true,"id":768},"rightReframeHandle":{"__isSmartRef__":true,"id":776},"bottomReframeHandle":{"__isSmartRef__":true,"id":772},"titleBar":{"__isSmartRef__":true,"id":1},"collapsedTransform":{"__isSmartRef__":true,"id":782},"expandedTransform":{"__isSmartRef__":true,"id":783},"ignoreEventsOnExpand":false,"_PreviousBorderWidth":0,"targetMorph":{"__isSmartRef__":true,"id":41},"eventHandler":{"__isSmartRef__":true,"id":784},"partsBinMetaInfo":{"__isSmartRef__":true,"id":739},"name":"CircuitsDemo","_StyleClassNames":["Morph","Window"],"showsHalos":false,"_Rotation":0,"_Scale":1,"helperMorphs":[{"__isSmartRef__":true,"id":768},{"__isSmartRef__":true,"id":772},{"__isSmartRef__":true,"id":776}],"state":"expanded","__serializedExpressions__":["collapsedExtent","expandedExtent","_Position","contentOffset","distanceToDragEvent","expandedPosition","collapsedPosition"],"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withoutLayers":["Global.lively.morphic.GrabbingLayer"],"collapsedExtent":"lively.pt(147.0,22.0)","expandedExtent":"lively.pt(1114.0,838.0)","_Position":"lively.pt(0.0,0.0)","contentOffset":"lively.pt(3.0,22.0)","distanceToDragEvent":"lively.pt(744.0,137.0)","expandedPosition":"lively.pt(165.0,152.0)","collapsedPosition":"lively.pt(44.0,218.0)"},"1":{"submorphs":[{"__isSmartRef__":true,"id":2},{"__isSmartRef__":true,"id":8},{"__isSmartRef__":true,"id":18},{"__isSmartRef__":true,"id":28}],"scripts":[],"shape":{"__isSmartRef__":true,"id":38},"_ClipMode":"visible","derivationIds":["3A3C5347-C6AD-4B1D-8807-B57091AEDC52","37C960A8-AD93-47C4-8A6C-AC2AFB224CA2","C613C217-EFA1-4101-9EDE-E694EEDCFC2E"],"id":"204D471E-2965-4F2B-8764-E961AE915A88","droppingEnabled":false,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":39},"windowMorph":{"__isSmartRef__":true,"id":0},"buttons":[{"__isSmartRef__":true,"id":8},{"__isSmartRef__":true,"id":18},{"__isSmartRef__":true,"id":28}],"label":{"__isSmartRef__":true,"id":2},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":0},"eventHandler":{"__isSmartRef__":true,"id":40},"showsHalos":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"2":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4}],"_ClipMode":"hidden","derivationIds":["5A5D6A05-2BD8-4378-AFD1-6393347250E6","B2507232-9FAA-40FE-8D27-DF09A951149C","28703736-3F8B-4705-87F8-B9C131FCB515"],"id":"072D5453-C3E7-4E7B-BF76-17A5F0434F57","_InputAllowed":false,"_HandStyle":"default","allowInput":false,"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"fixedWidth":true,"fixedHeight":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"isLabel":true,"eventsAreIgnored":true,"layout":{"__isSmartRef__":true,"id":6},"owner":{"__isSmartRef__":true,"id":1},"_StyleClassNames":["Morph","Text","window-title"],"_TextStylingMode":true,"eventHandler":{"__isSmartRef__":true,"id":7},"showsHalos":false,"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(3.0,3.0)"},"3":{"_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(1022.0,16.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"4":{"style":{"__isSmartRef__":true,"id":5},"chunkOwner":{"__isSmartRef__":true,"id":2},"_id":"_21043","storedString":"Circuits","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6":{"resizeWidth":true},"7":{"morph":{"__isSmartRef__":true,"id":2},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8":{"submorphs":[{"__isSmartRef__":true,"id":9}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14},"_ClipMode":"visible","derivationIds":["596CBD28-DFCC-415D-BD5A-4F5AEF57EC59","4F7B885A-4BA5-4524-A36F-D351A961629C","85EA2ADC-9417-49FC-A052-D67CDD98F39D"],"id":"02A7CF5C-A6CD-4192-964F-761A444CF85D","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":9},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":1},"_StyleClassNames":["Morph","Button","WindowControl","close"],"attributeConnections":[{"__isSmartRef__":true,"id":15}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":17},"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(1094.0,3.0)"},"9":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11}],"_ClipMode":"hidden","derivationIds":["D2D9C955-2DDC-4F66-9BBC-DF3D8E219AE1","DC62D881-75E0-425D-BCAE-0BF40990537D","81995498-D035-415E-A99B-A3FEEDE6E414"],"id":"D68BEDDE-7DDC-4D4A-B70D-D648CB00ED04","_InputAllowed":false,"_HandStyle":"default","allowInput":false,"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"fixedWidth":true,"fixedHeight":true,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":8},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"eventsAreDisabled":true,"_PointerEvents":"none","eventHandler":{"__isSmartRef__":true,"id":13},"__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)"},"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(15.0,19.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"11":{"style":{"__isSmartRef__":true,"id":12},"chunkOwner":{"__isSmartRef__":true,"id":9},"_id":"_20894","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12":{"__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,"_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)"},"15":{"sourceObj":{"__isSmartRef__":true,"id":8},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"initiateShutdown","varMapping":{"__isSmartRef__":true,"id":16},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16":{"source":{"__isSmartRef__":true,"id":8},"target":{"__isSmartRef__":true,"id":0}},"17":{"morph":{"__isSmartRef__":true,"id":8},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18":{"submorphs":[{"__isSmartRef__":true,"id":19}],"scripts":[],"shape":{"__isSmartRef__":true,"id":24},"_ClipMode":"visible","derivationIds":["B6C16121-9222-458C-A4E0-BBF8B4BFEEAB","384825FB-BA10-4FF4-8F6D-DD83DFBD7A52","A93FB94B-6E99-4C07-9035-24A17E00B58C"],"id":"4AA24CA1-0B74-4941-85C4-0EC066854D0F","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":19},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":1},"attributeConnections":[{"__isSmartRef__":true,"id":25}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":27},"isPressed":false,"_StyleClassNames":["Morph","Button","WindowControl"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(1074.0,3.0)"},"19":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":21}],"_ClipMode":"hidden","derivationIds":["7CE1D933-BDBE-429E-8A77-47B00189E865","20A7AEE0-C413-45DE-BDDA-E57385907817","F106C7D8-00E7-49ED-8917-140F15709114"],"id":"646BEF23-81BC-44FD-84C6-C13D93833F7E","_InputAllowed":false,"_HandStyle":"default","allowInput":false,"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"fixedWidth":true,"fixedHeight":true,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":18},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"eventsAreDisabled":true,"_PointerEvents":"none","eventHandler":{"__isSmartRef__":true,"id":23},"__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)"},"20":{"_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)"},"21":{"style":{"__isSmartRef__":true,"id":22},"chunkOwner":{"__isSmartRef__":true,"id":19},"_id":"_20897","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"22":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23":{"morph":{"__isSmartRef__":true,"id":19},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"24":{"_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)"},"25":{"sourceObj":{"__isSmartRef__":true,"id":18},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"toggleCollapse","varMapping":{"__isSmartRef__":true,"id":26},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"26":{"source":{"__isSmartRef__":true,"id":18},"target":{"__isSmartRef__":true,"id":0}},"27":{"morph":{"__isSmartRef__":true,"id":18},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"28":{"submorphs":[{"__isSmartRef__":true,"id":29}],"scripts":[],"shape":{"__isSmartRef__":true,"id":34},"_ClipMode":"visible","derivationIds":["7CFD1FC7-B96A-4525-BEF3-1B2E7E81886E","3E91C152-907E-4C43-B4C5-0C2C9B869161","D6A2CFE3-3096-43CA-8427-A7CDA42306DC"],"id":"E9BE1AAD-BF6F-4914-8A6D-7DB57DCD69DF","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":29},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":1},"attributeConnections":[{"__isSmartRef__":true,"id":35}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":37},"isPressed":false,"_StyleClassNames":["Morph","Button","WindowControl"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(1031.0,3.0)"},"29":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":30},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":31}],"_ClipMode":"hidden","derivationIds":["F63CD125-2D95-49B4-934F-409CECF85761","4AD2D0FD-570D-4355-A06E-65222BD7A41D","0222372C-5EE3-4785-B9ED-82639321AB2F"],"id":"9C2BC36F-0FFE-4818-94B0-C0787071E26A","_InputAllowed":false,"_HandStyle":"default","allowInput":false,"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"fixedWidth":true,"fixedHeight":true,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":28},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"eventsAreDisabled":true,"_PointerEvents":"none","eventHandler":{"__isSmartRef__":true,"id":33},"__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)"},"30":{"_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(40.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"31":{"style":{"__isSmartRef__":true,"id":32},"chunkOwner":{"__isSmartRef__":true,"id":29},"_id":"_20900","storedString":"Menu","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"32":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"33":{"morph":{"__isSmartRef__":true,"id":29},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"34":{"_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(40.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"35":{"sourceObj":{"__isSmartRef__":true,"id":28},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"showTargetMorphMenu","varMapping":{"__isSmartRef__":true,"id":36},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"36":{"source":{"__isSmartRef__":true,"id":28},"target":{"__isSmartRef__":true,"id":0}},"37":{"morph":{"__isSmartRef__":true,"id":28},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38":{"_AppearanceStylingMode":true,"_BorderStylingMode":true,"_BorderWidth":0,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1114.0,22.0)","_Padding":"lively.rect(0,0,0,0)"},"39":{"resizeWidth":true,"adjustForNewBounds":true},"40":{"morph":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41":{"submorphs":[{"__isSmartRef__":true,"id":42},{"__isSmartRef__":true,"id":105},{"__isSmartRef__":true,"id":639},{"__isSmartRef__":true,"id":662}],"scripts":[],"id":"DF344C7D-7978-41B8-9A90-0DE1BA74EB66","shape":{"__isSmartRef__":true,"id":738},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Rectangle","partsBinMetaInfo":{"__isSmartRef__":true,"id":739},"eventHandler":{"__isSmartRef__":true,"id":761},"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","3B532D95-FB8E-481F-ADA9-60A6AB6DDE96","52C90F0D-89D7-4694-957B-723DF152300E","60E84D5B-BE3B-4E6E-9A8E-67F907F6FCFC"],"partTests":{"__isSmartRef__":true,"id":762},"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":0},"isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":767},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(5.0,20.0)","distanceToDragEvent":"lively.pt(633.0,114.0)"},"42":{"submorphs":[],"scripts":[],"id":"CDBA7917-67B7-410B-B8F2-8C15F88B1B2A","shape":{"__isSmartRef__":true,"id":43},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Circuit","partsBinMetaInfo":{"__isSmartRef__":true,"id":44},"eventHandler":{"__isSmartRef__":true,"id":67},"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","5B709A10-A4A5-4784-979B-D103A06E867C","727C08D8-48AF-4E46-9D08-0A39CC3E6D92","02E63776-5AAB-468E-95CC-9A4D62ACF9F5","7FD5CF23-F99B-43EA-917C-DB04377F8460","007CEDAA-F9F1-484B-A46B-3DE526084459","65599172-424C-4417-AD91-807C39604CC9","50DD70DF-0576-4006-8F4E-C78E3B8CE834","C4E7F688-C064-4C72-A0B7-D700563941AC","B838997F-15DD-42CE-95B1-67BB75A0183A"],"partTests":{"__isSmartRef__":true,"id":68},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"__startTime":1386182489674,"__evaluator":{"__isSmartRef__":true,"id":73},"magnets":[],"owner":{"__isSmartRef__":true,"id":41},"layout":{"__isSmartRef__":true,"id":79},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":80},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(530.0,-14.0)","_Position":"lively.pt(8.0,32.0)"},"43":{"_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(800.0,771.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(250,250,251)","_Padding":"lively.rect(0,0,0,0)"},"44":{"partsSpaceName":"PartsBin/ElectricalComponents/","comment":"The circuit board.","migrationLevel":8,"partName":"Circuit","changes":[{"__isSmartRef__":true,"id":45},{"__isSmartRef__":true,"id":46},{"__isSmartRef__":true,"id":47},{"__isSmartRef__":true,"id":48},{"__isSmartRef__":true,"id":49},{"__isSmartRef__":true,"id":50},{"__isSmartRef__":true,"id":51},{"__isSmartRef__":true,"id":52},{"__isSmartRef__":true,"id":53},{"__isSmartRef__":true,"id":54},{"__isSmartRef__":true,"id":55},{"__isSmartRef__":true,"id":56},{"__isSmartRef__":true,"id":57},{"__isSmartRef__":true,"id":58},{"__isSmartRef__":true,"id":59},{"__isSmartRef__":true,"id":60},{"__isSmartRef__":true,"id":61},{"__isSmartRef__":true,"id":62},{"__isSmartRef__":true,"id":63},{"__isSmartRef__":true,"id":64},{"__isSmartRef__":true,"id":65},{"__isSmartRef__":true,"id":66}],"requiredModules":["users.ohshima.ElectricalComponents"],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Dec 10 2013 00:43:23 GMT+0100 (W. Europe Standard Time)\")"},"45":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jun 21 2013 00:16:24 GMT+0200 (W. Europe Daylight Time)\")"},"46":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 30 2013 09:18:06 GMT+0200 (W. Europe Daylight Time)\")"},"47":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","__serializedExpressions__":["date"],"date":"new Date(\"Wed Jan 23 2013 12:57:18 GMT+0100 (W. Europe Standard Time)\")"},"48":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 15:51:36 GMT+0200 (W. Europe Daylight Time)\")"},"49":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 15:51:30 GMT+0200 (W. Europe Daylight Time)\")"},"50":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 10:53:45 GMT+0100 (W. Europe Standard Time)\")"},"51":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Sat Feb 25 2012 02:59:09 GMT+0100 (W. Europe Standard Time)\")"},"52":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 10:42:26 GMT+0100 (W. Europe Standard Time)\")"},"53":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","__serializedExpressions__":["date"],"date":"new Date(\"Mon Apr 09 2012 13:42:07 GMT+0200 (W. Europe Daylight Time)\")"},"54":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 18 2012 19:35:08 GMT+0200 (W. Europe Daylight Time)\")"},"55":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","__serializedExpressions__":["date"],"date":"new Date(\"Thu Nov 22 2012 10:35:51 GMT+0100 (W. Europe Standard Time)\")"},"56":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 16:42:31 GMT+0100 (W. Europe Standard Time)\")"},"57":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 16:47:05 GMT+0100 (W. Europe Standard Time)\")"},"58":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 30 2013 00:36:50 GMT+0200 (W. Europe Daylight Time)\")"},"59":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","__serializedExpressions__":["date"],"date":"new Date(\"Tue Jun 18 2013 20:49:27 GMT+0200 (W. Europe Daylight Time)\")"},"60":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","__serializedExpressions__":["date"],"date":"new Date(\"Tue Jul 30 2013 08:20:51 GMT+0200 (W. Europe Daylight Time)\")"},"61":{"author":"robertkrahn","message":"no comment","id":"3B847AB1-0680-4EA5-A902-706E47E73665","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 05 2013 00:51:16 GMT+0100 (W. Europe Standard Time)\")"},"62":{"author":"robertkrahn","message":"no comment","id":"D4BEE572-D73F-4926-A0D9-3A624262C032","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 05 2013 01:23:59 GMT+0100 (W. Europe Standard Time)\")"},"63":{"author":"ohshima","message":"no comment","id":"68748970-30FE-4025-8039-035C605269EE","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 05 2013 05:12:18 GMT+0100 (W. Europe Standard Time)\")"},"64":{"author":"ohshima","message":"no comment","id":"366FFD15-29F2-4E96-B7CD-564B627F9DF6","__serializedExpressions__":["date"],"date":"new Date(\"Fri Dec 06 2013 05:15:33 GMT+0100 (W. Europe Standard Time)\")"},"65":{"author":"robertkrahn","message":"no comment","id":"5B97D4F9-7B36-4494-92C4-8FFEC2A24637","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 10 2013 00:43:22 GMT+0100 (W. Europe Standard Time)\")"},"66":{"author":"robertkrahn","message":"no comment","id":"507B86E9-5B36-4265-B999-9C5BE78DD9EC","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 10 2013 01:41:38 GMT+0100 (W. Europe Standard Time)\")"},"67":{"morph":{"__isSmartRef__":true,"id":42},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"68":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":69}},"69":{"test01IsMorph":{"__isSmartRef__":true,"id":70}},"70":{"varMapping":{"__isSmartRef__":true,"id":71},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":72},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"71":{"this":{"__isSmartRef__":true,"id":68}},"72":{},"73":{"sources":{"__isSmartRef__":true,"id":74},"arguments":{"__isSmartRef__":true,"id":75},"dependencies":{"__isSmartRef__":true,"id":76},"endNodes":{"__isSmartRef__":true,"id":77},"continuity":{"__isSmartRef__":true,"id":78},"changedExternally":false,"deletedNode":null,"timers":[],"syncWithRealTime":true,"object":{"__isSmartRef__":true,"id":42},"__LivelyClassName__":"lively.bindings.FRPCore.Evaluator","__SourceModuleName__":"Global.lively.bindings.FRPCore"},"74":{},"75":{},"76":{},"77":{},"78":{},"79":{"resizeWidth":true,"resizeHeight":true},"80":{"connectLeads":{"__isSmartRef__":true,"id":81},"buildCircuit":{"__isSmartRef__":true,"id":84},"createArrayOfSets":{"__isSmartRef__":true,"id":87},"removeConnections":{"__isSmartRef__":true,"id":90},"allConnections":{"__isSmartRef__":true,"id":93},"allComponents":{"__isSmartRef__":true,"id":96},"connectionBetween":{"__isSmartRef__":true,"id":99},"reset":{"__isSmartRef__":true,"id":102}},"81":{"varMapping":{"__isSmartRef__":true,"id":82},"source":"function connectLeads(leadA, leadB) {\n    var existing = this.connectionBetween(leadA, leadB);\n    if (existing) {\n        // remove a connection if it exists\n        existing.remove();\n    } else {\n        // otherwise, create a new one\n        var a = this.localize(leadA.globalBounds().center());\n        var b = this.localize(leadB.globalBounds().center());\n        var line = lively.morphic.Morph.makeLine([a, b], 4, Color.black);\n        line.leadA = leadA;\n        line.leadB = leadB;\n        line.disableGrabbing();\n        line.disableDropping();\n        this.addMorphBack(line);\n        line.getControlPoints().first().setConnectedMagnet(leadA.getMagnets().last());\n        line.getControlPoints().last().setConnectedMagnet(leadB.getMagnets().last());\n    }\n    this.buildCircuit();\n}","funcProperties":{"__isSmartRef__":true,"id":83},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"82":{"this":{"__isSmartRef__":true,"id":42}},"83":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon Dec 09 2013 21:18:37 GMT+0100 (W. Europe Standard Time)\")"},"84":{"varMapping":{"__isSmartRef__":true,"id":85},"source":"function buildCircuit() {\n    // create each Babelsberg component in this circuit\n    this.allComponents().forEach(function(component){\n       component.setupComponent();\n    });\n    // find disjoint sets of connected leads\n    var setsOfLeads = this.createArrayOfSets();\n    this.allConnections().forEach(function(connection){\n        var setA = setsOfLeads.removeSetContaining(connection.leadA);\n        var setB = setsOfLeads.removeSetContaining(connection.leadB);\n        setsOfLeads.addSetJoining(setA, setB);\n    });\n    // connect leads in each set\n    setsOfLeads.forEach(function(leadMorphs){\n        var leads = leadMorphs.pluck(\"lead\");\n        users.ohshima.ElectricalComponents.Lead.connectAll(leads);\n    });\n    // update meters\n    this.allComponents().forEach(function(component) {\n       if (component.updateMeter) {\n           component.updateMeter()\n       }\n    });\n}","funcProperties":{"__isSmartRef__":true,"id":86},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"85":{"this":{"__isSmartRef__":true,"id":42}},"86":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon Dec 09 2013 22:34:08 GMT+0100 (W. Europe Standard Time)\")"},"87":{"varMapping":{"__isSmartRef__":true,"id":88},"source":"function createArrayOfSets() {\n    // make a helper object with the functions we need\n    var arrayOfSets = [];\n    arrayOfSets.removeSetContaining = function(item) {\n        // find set with item, remove and answer set, otherwise make a new set\n        var foundIndex = -1;\n        for (var i = 0; i < arrayOfSets.length; i++)\n            if (arrayOfSets[i].indexOf(item) !== -1) {\n                foundIndex = i;\n                break;\n            }\n        var setContainingItem;\n        if (foundIndex >= 0) {\n            // remove existing set\n            setContainingItem = arrayOfSets[foundIndex];\n            arrayOfSets.splice(foundIndex, 1);  \n        } else {\n            // or make new set\n            setContainingItem = [item];\n        }\n        return setContainingItem;\n    };\n    arrayOfSets.addSetJoining = function(setA, setB) {\n        // join setA and setB, add it to array\n        for (var i = 0; i < setB.length; i++)\n            if (setA.indexOf(setB[i]) === -1)\n                setA.push(setB[i]);\n        arrayOfSets.push(setA);\n    }\n    return arrayOfSets;\n}","funcProperties":{"__isSmartRef__":true,"id":89},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"88":{"this":{"__isSmartRef__":true,"id":42}},"89":{"user":"undefined","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon Nov 18 2013 06:30:23 GMT+0100 (W. Europe Standard Time)\")"},"90":{"varMapping":{"__isSmartRef__":true,"id":91},"source":"function removeConnections() {\n    this.allConnections().forEach(function(each){each.remove()});\n    this.buildCircuit();\n}","funcProperties":{"__isSmartRef__":true,"id":92},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"91":{"this":{"__isSmartRef__":true,"id":42}},"92":{"user":"undefined","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon Nov 18 2013 23:26:59 GMT+0100 (W. Europe Standard Time)\")"},"93":{"varMapping":{"__isSmartRef__":true,"id":94},"source":"function allConnections() {\n    return this.submorphs.filter(function(submorph){\n        return 'leadA' in submorph;\n    });\n}","funcProperties":{"__isSmartRef__":true,"id":95},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"94":{"this":{"__isSmartRef__":true,"id":42}},"95":{"user":"undefined","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon Nov 18 2013 23:20:35 GMT+0100 (W. Europe Standard Time)\")"},"96":{"varMapping":{"__isSmartRef__":true,"id":97},"source":"function allComponents() {\n    return this.submorphs.filter(function(submorph){\n        return 'setupComponent' in submorph;\n    });\n}","funcProperties":{"__isSmartRef__":true,"id":98},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"97":{"this":{"__isSmartRef__":true,"id":42}},"98":{"user":"undefined","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon Nov 18 2013 23:04:11 GMT+0100 (W. Europe Standard Time)\")"},"99":{"varMapping":{"__isSmartRef__":true,"id":100},"source":"function connectionBetween(leadA, leadB) {\n    return this.allConnections().detect(function(each){\n        return (each.leadA === leadA && each.leadB === leadB) ||\n            (each.leadA === leadB && each.leadB === leadA);\n    });\n}","funcProperties":{"__isSmartRef__":true,"id":101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"100":{"this":{"__isSmartRef__":true,"id":42}},"101":{"user":"undefined","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon Nov 18 2013 23:11:53 GMT+0100 (W. Europe Standard Time)\")"},"102":{"varMapping":{"__isSmartRef__":true,"id":103},"source":"function reset() {\n        this.getPartsBinMetaInfo().addRequiredModule('users.ohshima.ElectricalComponents');\n    }","funcProperties":{"__isSmartRef__":true,"id":104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"103":{"this":{"__isSmartRef__":true,"id":42}},"104":{},"105":{"submorphs":[{"__isSmartRef__":true,"id":106},{"__isSmartRef__":true,"id":183},{"__isSmartRef__":true,"id":266},{"__isSmartRef__":true,"id":305},{"__isSmartRef__":true,"id":460}],"scripts":[],"id":"4CA2100A-798F-4F19-A48D-05BFB1A34189","shape":{"__isSmartRef__":true,"id":606},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"CircuitParts","partsBinMetaInfo":{"__isSmartRef__":true,"id":607},"eventHandler":{"__isSmartRef__":true,"id":624},"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","FBA0056F-822C-48AC-80AE-32122A6E2D3B","A46068EC-FBDF-4F79-8178-B4240897ABF4","88EA51F4-10CA-412A-81FD-A74D4D3C92D7"],"partTests":{"__isSmartRef__":true,"id":625},"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":41},"isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":630},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":631},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","withLayers":["Global.CopyOnDragLayer"],"_Position":"lively.pt(812.0,6.0)","distanceToDragEvent":"lively.pt(176.0,-13.0)"},"106":{"submorphs":[{"__isSmartRef__":true,"id":107},{"__isSmartRef__":true,"id":122},{"__isSmartRef__":true,"id":143}],"scripts":[],"shape":{"__isSmartRef__":true,"id":164},"_ClipMode":"visible","derivationIds":["51E965A1-E836-4A4A-B9BA-B09D7A323684","4CFB02FC-D6E9-4F6C-9E1A-716C9EF06B6D","6268515E-D41B-43D7-9ED7-FDCFABAEEC80","3C5084CA-8496-42C0-9EC8-D4F045C48F3C","C3A6304F-B8D3-4152-A2B7-9E3D0CA0F391","436A1C4F-94E6-4945-8CF2-1CFB04930C49","0769D777-564C-4BF5-97A8-2C0BF70585FE","46D0AE38-E0F5-4899-B824-A4AF446772CA","240AE5B9-CC48-4385-BA45-EDA64CD83D35","7F0370C5-39BB-4E63-B869-7A36E4DF3F60","933C0D67-667D-4608-83FA-02DDEEEF6C08"],"id":"CD87D15B-4AC8-4C83-B51C-FB5E6B1C1A2A","droppingEnabled":false,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":165},"name":"Resistor","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":166},"magnets":[],"isLockOwner":true,"component":{"__isSmartRef__":true,"id":169},"owner":{"__isSmartRef__":true,"id":105},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":170},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","withoutLayers":["Global.lively.morphic.GrabbingLayer"],"distanceToDragEvent":"lively.pt(57.0,-13.0)","_Position":"lively.pt(130.0,65.0)"},"107":{"submorphs":[],"scripts":[],"id":"74FBFBEE-7990-4C47-A390-B6E88F65BDF7","shape":{"__isSmartRef__":true,"id":108},"grabbingEnabled":false,"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":"Resistance","partsBinMetaInfo":{"__isSmartRef__":true,"id":109},"textChunks":[{"__isSmartRef__":true,"id":117}],"charsReplaced":"2","lastFindLoc":3,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":119},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","5A47B70D-291B-4AB1-82F7-5E51107248DB","90F01FEE-1F96-4245-A064-234B3426D16E","0904736F-2D87-4EBD-B9CD-8BD4D4F86A74","E25B84CB-C552-4A70-B5FC-B8BB619AE2AF","7C7CCE8C-09B4-4B02-9492-E4B3E2077A11","A219ED65-EA6D-4AD6-BE2F-FB1BD2226508","77A5B1FD-D69D-4ED4-A6B9-3247AE3CF1F6","3524B7F3-11E0-4865-AA0C-8FA0892D9435"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":106},"magnets":[],"isLockOwner":false,"attributeConnections":[{"__isSmartRef__":true,"id":120}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"previousSelection":[8,8],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"100 ohms","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-4.7,33.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(43.0,-18.6)"},"108":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-47.4,-14.0)","_Extent":"lively.pt(94.7,28.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"109":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":110},{"__isSmartRef__":true,"id":111},{"__isSmartRef__":true,"id":112},{"__isSmartRef__":true,"id":113},{"__isSmartRef__":true,"id":114},{"__isSmartRef__":true,"id":115},{"__isSmartRef__":true,"id":116}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Jul 24 2013 08:21:08 GMT+0200 (W. Europe Daylight Time)\")"},"110":{"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62","__serializedExpressions__":["date"],"date":"new Date(\"Tue Mar 12 2013 17:31:56 GMT+0100 (W. Europe Standard Time)\")"},"111":{"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194","__serializedExpressions__":["date"],"date":"new Date(\"Tue May 08 2012 14:18:18 GMT+0200 (W. Europe Daylight Time)\")"},"112":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 07:32:09 GMT+0200 (W. Europe Daylight Time)\")"},"113":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 07:31:43 GMT+0200 (W. Europe Daylight Time)\")"},"114":{"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","__serializedExpressions__":["date"],"date":"new Date(\"Mon Feb 27 2012 06:20:38 GMT+0100 (W. Europe Standard Time)\")"},"115":{"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 16:30:30 GMT+0200 (W. Europe Daylight Time)\")"},"116":{"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598","__serializedExpressions__":["date"],"date":"new Date(\"Tue Mar 12 2013 18:36:22 GMT+0100 (W. Europe Standard Time)\")"},"117":{"style":{"__isSmartRef__":true,"id":118},"chunkOwner":{"__isSmartRef__":true,"id":107},"_id":"_3","storedString":"100 ohms","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"118":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"119":{"morph":{"__isSmartRef__":true,"id":107},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"120":{"sourceObj":{"__isSmartRef__":true,"id":107},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":106},"targetMethodName":"valueChanged","varMapping":{"__isSmartRef__":true,"id":121},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"121":{"source":{"__isSmartRef__":true,"id":107},"target":{"__isSmartRef__":true,"id":106}},"122":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":123},"id":"CDE0FBD1-EE78-4F2F-A448-F5EA96D3CBFD","eventHandler":{"__isSmartRef__":true,"id":124},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":125},"name":"Lead2","partsBinMetaInfo":{"__isSmartRef__":true,"id":126},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","13233823-1113-464C-ADCF-071B43D6AEF6","2F1DBF66-E53D-4B13-9793-53EBDA946EEB","F49C7C64-4EBB-4A68-B85D-A0ABB3E1487D","479A60D3-2E4A-4ED9-A639-D4C58D4C51EA","3C29AA6D-8D5E-44FF-94C4-F58CF78069E8","A59B1FB9-29CB-4A6F-B7D7-7D9FD8A37489","8115ED20-97C4-4166-9498-86DE275A3A1A","D848B2AA-3133-4E72-B45C-A58F4EAE861F","09BBCA1B-195F-432E-A4FF-942DCA6C64D3","61C24AB5-437A-4389-A8AF-75897990616A","DA2EC026-2669-4D4A-9FF5-D2B57E7B94EE","19E4C6B9-B8D4-4189-B5D4-979F5720D021"],"_ClipMode":"visible","isBeingDragged":false,"grabbingEnabled":false,"magnets":[],"lead":{"__isSmartRef__":true,"id":131},"isLockOwner":false,"owner":{"__isSmartRef__":true,"id":106},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":132},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(39.5,-14.3)","_Position":"lively.pt(62.5,-2.7)"},"123":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-16.0,-17.0)","_Extent":"lively.pt(31.0,31.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(204,204,204)"},"124":{"morph":{"__isSmartRef__":true,"id":122},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"125":{},"126":{"partName":"Lead","requiredModules":[],"migrationLevel":8,"partsSpaceName":"PartsBin/Babelsberg/","comment":"A pin for an electric component","changes":[{"__isSmartRef__":true,"id":127},{"__isSmartRef__":true,"id":128},{"__isSmartRef__":true,"id":129},{"__isSmartRef__":true,"id":130}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Fri Nov 15 2013 22:29:34 GMT+0100 (W. Europe Standard Time)\")"},"127":{"author":"robertkrahn","message":"no comment","id":"EE799F0E-9E4A-4AF8-98F7-DAEF09F6A8DC","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 15 2013 20:22:02 GMT+0100 (W. Europe Standard Time)\")"},"128":{"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 03 2012 09:08:08 GMT+0200 (W. Europe Daylight Time)\")"},"129":{"author":null,"message":"no comment","id":"8081E212-F627-4DBF-A925-E884B7F401F7","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jul 12 2013 21:14:02 GMT+0200 (W. Europe Daylight Time)\")"},"130":{"author":null,"message":"no comment","id":"5011462C-F3D3-4806-A629-C6A0FADEC868","__serializedExpressions__":["date"],"date":"new Date(\"Fri Nov 15 2013 22:29:34 GMT+0100 (W. Europe Standard Time)\")"},"131":{"voltage":0,"current":0,"$1$1current":0,"$1$1voltage":0,"__LivelyClassName__":"users.ohshima.ElectricalComponents.Lead","__SourceModuleName__":"Global.users.ohshima.ElectricalComponents"},"132":{"onMouseDown":{"__isSmartRef__":true,"id":133},"connectElectricLead":{"__isSmartRef__":true,"id":140}},"133":{"varMapping":{"__isSmartRef__":true,"id":134},"source":"function onMouseDown(evt) {\n    if (evt.isLeftMouseButtonDown()) {\n        evt.stop();\n        this.setFill(Color.green);\n        var self = this,\n            pos = this.globalBounds().center(),\n            wire = lively.morphic.Morph.makeLine([pos, pos], 4, Color.green);\n        wire.openInWorld();\n        var tracker = lively.morphic.Morph.makeEllipse(rect(-5,-5,10,10));\n        tracker.openInHand();\n        tracker.wantsToBeDroppedInto = function(target) {\n            return !!target.connectElectricLead;\n        }\n        tracker.onDropOn = function(target) {\n            tracker.remove();\n            wire.remove();\n            self.setFill(Color.gray);\n            if (target.connectElectricLead)\n                target.connectElectricLead(self);\n        }\n        tracker.step = function() {\n            var pos = tracker.getPositionInWorld();\n            wire.getControlPoint(1).setGlobalPos(pos);\n        }\n        tracker.startStepping(50, \"step\");\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"134":{"this":{"__isSmartRef__":true,"id":122},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":135}},"135":{"$super":{"__isSmartRef__":true,"id":136}},"136":{"varMapping":{"__isSmartRef__":true,"id":137},"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":138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"137":{"obj":{"__isSmartRef__":true,"id":122},"name":"onMouseDown"},"138":{},"139":{"user":"AlanBorning","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Nov 15 2013 22:47:02 GMT+0100 (W. Europe Standard Time)\")"},"140":{"varMapping":{"__isSmartRef__":true,"id":141},"source":"function connectElectricLead(lead) {\n        if (lead === this) return;\n        this.ownerChain().detect(function(o) { return o.onLeadConnected; });\n        var component = this.ownerChain().filterByKey('onLeadConnected')[0];\n        if (!component) {\n            show('Cannot connect lead, it seems not to be inside an electrical component!')\n            return;\n        }\n        component.onLeadConnected(this, lead);\n    }","funcProperties":{"__isSmartRef__":true,"id":142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"141":{"this":{"__isSmartRef__":true,"id":122}},"142":{},"143":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":144},"id":"6F2EB652-4DEB-4DE1-A003-FEBE9EB9B33A","eventHandler":{"__isSmartRef__":true,"id":145},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":146},"name":"Lead1","partsBinMetaInfo":{"__isSmartRef__":true,"id":147},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","13233823-1113-464C-ADCF-071B43D6AEF6","2F1DBF66-E53D-4B13-9793-53EBDA946EEB","F49C7C64-4EBB-4A68-B85D-A0ABB3E1487D","479A60D3-2E4A-4ED9-A639-D4C58D4C51EA","C69D6FC3-3695-4770-B355-FD234DDEAD1B","900B67D6-CC63-41F6-824D-39A3BFBE9FEE","2767C478-E4D2-4A22-BB1D-268A6F2215F1","6CE8FC18-31B0-4A72-A9B7-8EEC89711FEB","C3C31157-02A5-4A49-981E-F0EF5C9F792E","B7E81EAF-DDDF-48C7-B940-7AD5951D35E6","7D972D8A-89B6-42BF-81E7-D5AB65187273"],"_ClipMode":"visible","isBeingDragged":false,"grabbingEnabled":false,"magnets":[],"lead":{"__isSmartRef__":true,"id":152},"isLockOwner":false,"owner":{"__isSmartRef__":true,"id":106},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":153},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(16.3,-11.4)","_Position":"lively.pt(-69.9,-0.6)"},"144":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-16.0,-16.0)","_Extent":"lively.pt(31.0,31.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(204,204,204)"},"145":{"morph":{"__isSmartRef__":true,"id":143},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"146":{},"147":{"partName":"Lead","requiredModules":[],"migrationLevel":8,"partsSpaceName":"PartsBin/Babelsberg/","comment":"A pin for an electric component","changes":[{"__isSmartRef__":true,"id":148},{"__isSmartRef__":true,"id":149},{"__isSmartRef__":true,"id":150},{"__isSmartRef__":true,"id":151}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Fri Nov 15 2013 22:29:34 GMT+0100 (W. Europe Standard Time)\")"},"148":{"author":"robertkrahn","message":"no comment","id":"EE799F0E-9E4A-4AF8-98F7-DAEF09F6A8DC","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 15 2013 20:22:02 GMT+0100 (W. Europe Standard Time)\")"},"149":{"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 03 2012 09:08:08 GMT+0200 (W. Europe Daylight Time)\")"},"150":{"author":null,"message":"no comment","id":"8081E212-F627-4DBF-A925-E884B7F401F7","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jul 12 2013 21:14:02 GMT+0200 (W. Europe Daylight Time)\")"},"151":{"author":null,"message":"no comment","id":"5011462C-F3D3-4806-A629-C6A0FADEC868","__serializedExpressions__":["date"],"date":"new Date(\"Fri Nov 15 2013 22:29:34 GMT+0100 (W. Europe Standard Time)\")"},"152":{"voltage":0,"current":0,"$1$1current":0,"$1$1voltage":0,"__LivelyClassName__":"users.ohshima.ElectricalComponents.Lead","__SourceModuleName__":"Global.users.ohshima.ElectricalComponents"},"153":{"onMouseDown":{"__isSmartRef__":true,"id":154},"connectElectricLead":{"__isSmartRef__":true,"id":161}},"154":{"varMapping":{"__isSmartRef__":true,"id":155},"source":"function onMouseDown(evt) {\n    if (evt.isLeftMouseButtonDown()) {\n        evt.stop();\n        this.setFill(Color.green);\n        var self = this,\n            pos = this.globalBounds().center(),\n            wire = lively.morphic.Morph.makeLine([pos, pos], 4, Color.green);\n        wire.openInWorld();\n        var tracker = lively.morphic.Morph.makeEllipse(rect(-5,-5,10,10));\n        tracker.openInHand();\n        tracker.wantsToBeDroppedInto = function(target) {\n            return !!target.connectElectricLead;\n        }\n        tracker.onDropOn = function(target) {\n            tracker.remove();\n            wire.remove();\n            self.setFill(Color.gray);\n            if (target.connectElectricLead)\n                target.connectElectricLead(self);\n        }\n        tracker.step = function() {\n            var pos = tracker.getPositionInWorld();\n            wire.getControlPoint(1).setGlobalPos(pos);\n        }\n        tracker.startStepping(50, \"step\");\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"155":{"this":{"__isSmartRef__":true,"id":143},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":156}},"156":{"$super":{"__isSmartRef__":true,"id":157}},"157":{"varMapping":{"__isSmartRef__":true,"id":158},"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":159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"158":{"obj":{"__isSmartRef__":true,"id":143},"name":"onMouseDown"},"159":{},"160":{"user":"AlanBorning","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Nov 15 2013 22:47:02 GMT+0100 (W. Europe Standard Time)\")"},"161":{"varMapping":{"__isSmartRef__":true,"id":162},"source":"function connectElectricLead(lead) {\n        if (lead === this) return;\n        this.ownerChain().detect(function(o) { return o.onLeadConnected; });\n        var component = this.ownerChain().filterByKey('onLeadConnected')[0];\n        if (!component) {\n            show('Cannot connect lead, it seems not to be inside an electrical component!')\n            return;\n        }\n        component.onLeadConnected(this, lead);\n    }","funcProperties":{"__isSmartRef__":true,"id":163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"162":{"this":{"__isSmartRef__":true,"id":143}},"163":{},"164":{"_ImageURL":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwwKSBzY2FsZSgzKSIgaWQ9ImxheWVyMSI+CiAgICA8cGF0aCBkPSJNMC4wMDAwLDggTDE0LjA4NzYsOCBMMTYuMDM2OCwyLjQ1ODA5MDAwMDAwMDAyNyBMMTkuMjI2NSwxMy4xMjYyNTAwMDAwMDAwMjcgTDIyLjc3MDUsMi4zMTk1NDAwMDAwMDAwMTc3IEwyNS44NzE2LDEyLjk4NzcwMDAwMDAwMDAxOCBMMjkuMjM4NCwyLjQ1ODA5MDAwMDAwMDAyNyBMMzIuNjA1MywxMy4wNTY5ODAwMDAwMDAwMSBMMzQuNDY1OSw3Ljg2MTQ1MDAwMDAwMDA0OCBMNDguNjQyMSw3Ljg2MTQ1MDAwMDAwMDA0OCIgc3R5bGU9ImZpbGw6bm9uZTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MS41O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjU7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIGlkPSJwYXRoMSI+PC9wYXRoPjwvZz4KPC9zdmc+","isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-78.5,-26.2)","_Extent":"lively.pt(132.0,50.0)","_Padding":"lively.rect(0,0,0,0)"},"165":{"morph":{"__isSmartRef__":true,"id":106},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"166":{"partName":"Resistor","requiredModules":["users.ohshima.ElectricalComponents"],"partsSpaceName":"PartsBin/ElectricalComponents/","migrationLevel":8,"comment":"no comment","changes":[{"__isSmartRef__":true,"id":167},{"__isSmartRef__":true,"id":168}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Thu Dec 05 2013 00:45:51 GMT+0100 (W. Europe Standard Time)\")"},"167":{"author":"robertkrahn","message":"no comment","id":"63723B21-C1C2-4737-AA36-0FC9C7AF0D88","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 10 2013 00:42:44 GMT+0100 (W. Europe Standard Time)\")"},"168":{"author":"robertkrahn","message":"no comment","id":"D2AD4E3F-1F2F-41B9-9DF0-A0699ED442C0","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 10 2013 01:41:32 GMT+0100 (W. Europe Standard Time)\")"},"169":{"lead1":{"__isSmartRef__":true,"id":152},"lead2":{"__isSmartRef__":true,"id":131},"$1$1lead1":{"__isSmartRef__":true,"id":152},"$1$1lead2":{"__isSmartRef__":true,"id":131},"resistance":100,"__LivelyClassName__":"users.ohshima.ElectricalComponents.Resistor","__SourceModuleName__":"Global.users.ohshima.ElectricalComponents"},"170":{"onLeadConnected":{"__isSmartRef__":true,"id":171},"setupComponent":{"__isSmartRef__":true,"id":174},"reset":{"__isSmartRef__":true,"id":177},"valueChanged":{"__isSmartRef__":true,"id":180}},"171":{"varMapping":{"__isSmartRef__":true,"id":172},"source":"function onLeadConnected(myLead,otherLead) {\n     this.owner.connectLeads(myLead, otherLead);\n}","funcProperties":{"__isSmartRef__":true,"id":173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"172":{"this":{"__isSmartRef__":true,"id":106}},"173":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu Dec 05 2013 00:30:42 GMT+0100 (W. Europe Standard Time)\")"},"174":{"varMapping":{"__isSmartRef__":true,"id":175},"source":"function setupComponent() {\n    var resistance = parseFloat(this.get(\"Resistance\").textString)\n    this.component = new users.ohshima.ElectricalComponents.Resistor(resistance);\n    this.get(\"Lead1\").lead = this.component.lead1;\n    this.get(\"Lead2\").lead = this.component.lead2;\n}","funcProperties":{"__isSmartRef__":true,"id":176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"175":{"this":{"__isSmartRef__":true,"id":106}},"176":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu Dec 05 2013 00:30:42 GMT+0100 (W. Europe Standard Time)\")"},"177":{"varMapping":{"__isSmartRef__":true,"id":178},"source":"function reset() {\n        this.getPartsBinMetaInfo().addRequiredModule('users.ohshima.ElectricalComponents');\n    }","funcProperties":{"__isSmartRef__":true,"id":179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"178":{"this":{"__isSmartRef__":true,"id":106}},"179":{},"180":{"varMapping":{"__isSmartRef__":true,"id":181},"source":"function valueChanged() {\n        Functions.debounceNamed('valueChanged-' + this.id, 750, function() {\n            var circuit = this.ownerChain().detect(function(o) { return !!o.buildCircuit; });\n            if (!circuit) {\n                show('Component not in circuit');\n                return;\n            }\n            circuit.buildCircuit();\n        }.bind(this))();\n    }","funcProperties":{"__isSmartRef__":true,"id":182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"181":{"this":{"__isSmartRef__":true,"id":106}},"182":{},"183":{"submorphs":[{"__isSmartRef__":true,"id":184},{"__isSmartRef__":true,"id":199},{"__isSmartRef__":true,"id":220}],"scripts":[],"shape":{"__isSmartRef__":true,"id":241},"_ClipMode":"visible","derivationIds":["51E965A1-E836-4A4A-B9BA-B09D7A323684","4CFB02FC-D6E9-4F6C-9E1A-716C9EF06B6D","04D46286-3536-4DF5-A39E-54E469C807E2","0BEA2450-1144-4523-9FFE-BE4139F05FC9","6269C5E9-E8C8-47EF-8E44-1C4BFDB27048","508CC6E5-6D1A-4653-997B-E2EA6A0DD0A1","2FAD1911-EF36-47F8-9349-EC89527A0D37","FE5C167C-9C7D-46C5-AD4D-D29655DF70DD","CE197BAF-6D94-433E-BC44-886FD9DAA0AD","D5C85123-E21B-4643-87E8-D51E77F00D62","35557ACC-191E-49A4-9A8D-6B0CC3D382B4"],"id":"21345E62-60FA-4399-B35C-65605F4D3BD0","droppingEnabled":false,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":242},"name":"Battery","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":243},"magnets":[],"isLockOwner":true,"component":{"__isSmartRef__":true,"id":252},"owner":{"__isSmartRef__":true,"id":105},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":253},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","withoutLayers":["Global.lively.morphic.GrabbingLayer"],"distanceToDragEvent":"lively.pt(82.0,-11.0)","_Position":"lively.pt(134.0,198.0)"},"184":{"submorphs":[],"scripts":[],"id":"8FA7CF97-319E-447F-A833-7F04073CCE51","shape":{"__isSmartRef__":true,"id":185},"grabbingEnabled":false,"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":"Voltage","partsBinMetaInfo":{"__isSmartRef__":true,"id":186},"textChunks":[{"__isSmartRef__":true,"id":194}],"charsReplaced":"4","lastFindLoc":3,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":196},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","5A47B70D-291B-4AB1-82F7-5E51107248DB","1150F6CB-C3EE-4AB0-B44C-C1CCE1285EB9","A4940761-7533-40E4-83F6-94D530C27EDC","DD8A0D2E-B375-4433-808E-88E5A42EF406","8ACEB6B5-4FAB-475B-A94B-524C876EAD1A","BC8BAA96-F483-4C08-A4EC-240DC4ED339A","624D9772-11CB-45F8-AA15-3B5E9A9215B5","7D791CC9-7663-4DCD-BDBF-0E77438DFCB3"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":183},"magnets":[],"isLockOwner":false,"attributeConnections":[{"__isSmartRef__":true,"id":197}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"16 volts","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.8,41.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(67.0,-17.0)"},"185":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-45.9,-14.0)","_Extent":"lively.pt(91.7,28.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"186":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":187},{"__isSmartRef__":true,"id":188},{"__isSmartRef__":true,"id":189},{"__isSmartRef__":true,"id":190},{"__isSmartRef__":true,"id":191},{"__isSmartRef__":true,"id":192},{"__isSmartRef__":true,"id":193}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Jul 24 2013 08:21:08 GMT+0200 (W. Europe Daylight Time)\")"},"187":{"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62","__serializedExpressions__":["date"],"date":"new Date(\"Tue Mar 12 2013 17:31:56 GMT+0100 (W. Europe Standard Time)\")"},"188":{"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194","__serializedExpressions__":["date"],"date":"new Date(\"Tue May 08 2012 14:18:18 GMT+0200 (W. Europe Daylight Time)\")"},"189":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 07:32:09 GMT+0200 (W. Europe Daylight Time)\")"},"190":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 07:31:43 GMT+0200 (W. Europe Daylight Time)\")"},"191":{"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","__serializedExpressions__":["date"],"date":"new Date(\"Mon Feb 27 2012 06:20:38 GMT+0100 (W. Europe Standard Time)\")"},"192":{"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 16:30:30 GMT+0200 (W. Europe Daylight Time)\")"},"193":{"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598","__serializedExpressions__":["date"],"date":"new Date(\"Tue Mar 12 2013 18:36:22 GMT+0100 (W. Europe Standard Time)\")"},"194":{"style":{"__isSmartRef__":true,"id":195},"chunkOwner":{"__isSmartRef__":true,"id":184},"_id":"_4","storedString":"16 volts","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"195":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"196":{"morph":{"__isSmartRef__":true,"id":184},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"197":{"sourceObj":{"__isSmartRef__":true,"id":184},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":183},"targetMethodName":"valueChanged","varMapping":{"__isSmartRef__":true,"id":198},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"198":{"source":{"__isSmartRef__":true,"id":184},"target":{"__isSmartRef__":true,"id":183}},"199":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":200},"id":"4E01B7F9-E0E1-4F1C-8699-2BC24271EB13","eventHandler":{"__isSmartRef__":true,"id":201},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":202},"name":"Lead1","partsBinMetaInfo":{"__isSmartRef__":true,"id":203},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","13233823-1113-464C-ADCF-071B43D6AEF6","2F1DBF66-E53D-4B13-9793-53EBDA946EEB","F49C7C64-4EBB-4A68-B85D-A0ABB3E1487D","479A60D3-2E4A-4ED9-A639-D4C58D4C51EA","B3B99D86-5006-42F3-97D1-1AA9B61C241E","53C1F276-60C1-4BBB-B05C-93F19ECF24AA","0E8C6F7E-7916-4415-82F6-ABD5021ED6DA","53BD5D6E-9604-49B8-BB45-9305A69294DC","2498C396-9885-4291-B681-D323D5798A26","0ED92F17-3965-4AD5-BFBE-C40F1D9E78EF","F80C1433-9479-4CFD-B372-21C2D41F772D"],"_ClipMode":"visible","isBeingDragged":false,"grabbingEnabled":false,"magnets":[],"lead":{"__isSmartRef__":true,"id":208},"isLockOwner":false,"owner":{"__isSmartRef__":true,"id":183},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":209},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(34.5,-15.3)","_Position":"lively.pt(-65.5,-4.6)"},"200":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-15.0,-16.1)","_Extent":"lively.pt(31.0,31.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(204,204,204)"},"201":{"morph":{"__isSmartRef__":true,"id":199},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"202":{},"203":{"partName":"Lead","requiredModules":[],"migrationLevel":8,"partsSpaceName":"PartsBin/Babelsberg/","comment":"A pin for an electric component","changes":[{"__isSmartRef__":true,"id":204},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":206},{"__isSmartRef__":true,"id":207}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Fri Nov 15 2013 22:29:34 GMT+0100 (W. Europe Standard Time)\")"},"204":{"author":"robertkrahn","message":"no comment","id":"EE799F0E-9E4A-4AF8-98F7-DAEF09F6A8DC","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 15 2013 20:22:02 GMT+0100 (W. Europe Standard Time)\")"},"205":{"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 03 2012 09:08:08 GMT+0200 (W. Europe Daylight Time)\")"},"206":{"author":null,"message":"no comment","id":"8081E212-F627-4DBF-A925-E884B7F401F7","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jul 12 2013 21:14:02 GMT+0200 (W. Europe Daylight Time)\")"},"207":{"author":null,"message":"no comment","id":"5011462C-F3D3-4806-A629-C6A0FADEC868","__serializedExpressions__":["date"],"date":"new Date(\"Fri Nov 15 2013 22:29:34 GMT+0100 (W. Europe Standard Time)\")"},"208":{"voltage":0,"current":0,"$1$1current":0,"$1$1voltage":0,"__LivelyClassName__":"users.ohshima.ElectricalComponents.Lead","__SourceModuleName__":"Global.users.ohshima.ElectricalComponents"},"209":{"onMouseDown":{"__isSmartRef__":true,"id":210},"connectElectricLead":{"__isSmartRef__":true,"id":217}},"210":{"varMapping":{"__isSmartRef__":true,"id":211},"source":"function onMouseDown(evt) {\n    if (evt.isLeftMouseButtonDown()) {\n        evt.stop();\n        this.setFill(Color.green);\n        var self = this,\n            pos = this.globalBounds().center(),\n            wire = lively.morphic.Morph.makeLine([pos, pos], 4, Color.green);\n        wire.openInWorld();\n        var tracker = lively.morphic.Morph.makeEllipse(rect(-5,-5,10,10));\n        tracker.openInHand();\n        tracker.wantsToBeDroppedInto = function(target) {\n            return !!target.connectElectricLead;\n        }\n        tracker.onDropOn = function(target) {\n            tracker.remove();\n            wire.remove();\n            self.setFill(Color.gray);\n            if (target.connectElectricLead)\n                target.connectElectricLead(self);\n        }\n        tracker.step = function() {\n            var pos = tracker.getPositionInWorld();\n            wire.getControlPoint(1).setGlobalPos(pos);\n        }\n        tracker.startStepping(50, \"step\");\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"211":{"this":{"__isSmartRef__":true,"id":199},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":212}},"212":{"$super":{"__isSmartRef__":true,"id":213}},"213":{"varMapping":{"__isSmartRef__":true,"id":214},"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":215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"214":{"obj":{"__isSmartRef__":true,"id":199},"name":"onMouseDown"},"215":{},"216":{"user":"AlanBorning","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Nov 15 2013 22:47:02 GMT+0100 (W. Europe Standard Time)\")"},"217":{"varMapping":{"__isSmartRef__":true,"id":218},"source":"function connectElectricLead(lead) {\n        if (lead === this) return;\n        this.ownerChain().detect(function(o) { return o.onLeadConnected; });\n        var component = this.ownerChain().filterByKey('onLeadConnected')[0];\n        if (!component) {\n            show('Cannot connect lead, it seems not to be inside an electrical component!')\n            return;\n        }\n        component.onLeadConnected(this, lead);\n    }","funcProperties":{"__isSmartRef__":true,"id":219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"218":{"this":{"__isSmartRef__":true,"id":199}},"219":{},"220":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":221},"id":"7BCCE3A4-B10E-40AD-8CDB-9D3B8A41F866","eventHandler":{"__isSmartRef__":true,"id":222},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":223},"name":"Lead2","partsBinMetaInfo":{"__isSmartRef__":true,"id":224},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","13233823-1113-464C-ADCF-071B43D6AEF6","2F1DBF66-E53D-4B13-9793-53EBDA946EEB","F49C7C64-4EBB-4A68-B85D-A0ABB3E1487D","479A60D3-2E4A-4ED9-A639-D4C58D4C51EA","3C29AA6D-8D5E-44FF-94C4-F58CF78069E8","F9C59146-7BA0-4770-8922-70A503437A3D","2631E5A6-F392-4024-86AC-964D73FB6294","F2865DE4-C04F-41BB-B88B-03FB21E7CEE4","32F0F614-0BA7-4877-A08A-470A02560C74","44948258-512E-4ABE-B83A-2154516D69B7","1CA72C7E-E450-41A0-B1DC-3D01591388C4","4E50FD15-1A0D-4C83-B766-97308F623B3D"],"_ClipMode":"visible","isBeingDragged":false,"grabbingEnabled":false,"magnets":[],"lead":{"__isSmartRef__":true,"id":229},"isLockOwner":false,"owner":{"__isSmartRef__":true,"id":183},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":230},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(39.5,-11.3)","_Position":"lively.pt(57.5,-4.6)"},"221":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-16.0,-16.1)","_Extent":"lively.pt(31.0,31.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(204,204,204)"},"222":{"morph":{"__isSmartRef__":true,"id":220},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"223":{},"224":{"partName":"Lead","requiredModules":[],"migrationLevel":8,"partsSpaceName":"PartsBin/Babelsberg/","comment":"A pin for an electric component","changes":[{"__isSmartRef__":true,"id":225},{"__isSmartRef__":true,"id":226},{"__isSmartRef__":true,"id":227},{"__isSmartRef__":true,"id":228}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Fri Nov 15 2013 22:29:34 GMT+0100 (W. Europe Standard Time)\")"},"225":{"author":"robertkrahn","message":"no comment","id":"EE799F0E-9E4A-4AF8-98F7-DAEF09F6A8DC","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 15 2013 20:22:02 GMT+0100 (W. Europe Standard Time)\")"},"226":{"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 03 2012 09:08:08 GMT+0200 (W. Europe Daylight Time)\")"},"227":{"author":null,"message":"no comment","id":"8081E212-F627-4DBF-A925-E884B7F401F7","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jul 12 2013 21:14:02 GMT+0200 (W. Europe Daylight Time)\")"},"228":{"author":null,"message":"no comment","id":"5011462C-F3D3-4806-A629-C6A0FADEC868","__serializedExpressions__":["date"],"date":"new Date(\"Fri Nov 15 2013 22:29:34 GMT+0100 (W. Europe Standard Time)\")"},"229":{"voltage":16,"current":0,"$1$1current":0,"$1$1voltage":0,"__LivelyClassName__":"users.ohshima.ElectricalComponents.Lead","__SourceModuleName__":"Global.users.ohshima.ElectricalComponents"},"230":{"onMouseDown":{"__isSmartRef__":true,"id":231},"connectElectricLead":{"__isSmartRef__":true,"id":238}},"231":{"varMapping":{"__isSmartRef__":true,"id":232},"source":"function onMouseDown(evt) {\n    if (evt.isLeftMouseButtonDown()) {\n        evt.stop();\n        this.setFill(Color.green);\n        var self = this,\n            pos = this.globalBounds().center(),\n            wire = lively.morphic.Morph.makeLine([pos, pos], 4, Color.green);\n        wire.openInWorld();\n        var tracker = lively.morphic.Morph.makeEllipse(rect(-5,-5,10,10));\n        tracker.openInHand();\n        tracker.wantsToBeDroppedInto = function(target) {\n            return !!target.connectElectricLead;\n        }\n        tracker.onDropOn = function(target) {\n            tracker.remove();\n            wire.remove();\n            self.setFill(Color.gray);\n            if (target.connectElectricLead)\n                target.connectElectricLead(self);\n        }\n        tracker.step = function() {\n            var pos = tracker.getPositionInWorld();\n            wire.getControlPoint(1).setGlobalPos(pos);\n        }\n        tracker.startStepping(50, \"step\");\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"232":{"this":{"__isSmartRef__":true,"id":220},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":233}},"233":{"$super":{"__isSmartRef__":true,"id":234}},"234":{"varMapping":{"__isSmartRef__":true,"id":235},"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":236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"235":{"obj":{"__isSmartRef__":true,"id":220},"name":"onMouseDown"},"236":{},"237":{"user":"AlanBorning","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Nov 15 2013 22:47:02 GMT+0100 (W. Europe Standard Time)\")"},"238":{"varMapping":{"__isSmartRef__":true,"id":239},"source":"function connectElectricLead(lead) {\n        if (lead === this) return;\n        this.ownerChain().detect(function(o) { return o.onLeadConnected; });\n        var component = this.ownerChain().filterByKey('onLeadConnected')[0];\n        if (!component) {\n            show('Cannot connect lead, it seems not to be inside an electrical component!')\n            return;\n        }\n        component.onLeadConnected(this, lead);\n    }","funcProperties":{"__isSmartRef__":true,"id":240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"239":{"this":{"__isSmartRef__":true,"id":220}},"240":{},"241":{"_ImageURL":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwwKSBzY2FsZSgzKSIgaWQ9ImxheWVyMSI+CjxwYXRoIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZD0iTTAuMDAwMCwxMSBMMTcuMTA5NywxMSBMMTcuMTA5Nyw1LjUzMTk0OTk5OTk5OTk5NSBMMTcuMTA5NywxNi42NDQ0Mzk5OTk5OTk5NzUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAsMCkiIHN0eWxlPSJmaWxsOm5vbmU7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIgaWQ9InBhdGgxIj48L3BhdGg+CjxwYXRoIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZD0iTTQwLjAwMDAsMTEgTDIyLjAzNTcsMTEgTDIyLjAzNTcsLTAuNTAzNTMwMDAwMDAwMDEyIEwyMi4wMzU3LDIyLjczMzM0IiBzdHlsZT0iZmlsbDpub25lO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiIGlkPSJwYXRoMiI+PC9wYXRoPgo8L2c+Cjwvc3ZnPg==","isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-63.0,-38.0)","_Extent":"lively.pt(121.0,70.0)","_Padding":"lively.rect(0,0,0,0)"},"242":{"morph":{"__isSmartRef__":true,"id":183},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"243":{"partName":"Battery","requiredModules":["users.ohshima.ElectricalComponents"],"partsSpaceName":"PartsBin/ElectricalComponents/","migrationLevel":8,"comment":"Battery","changes":[{"__isSmartRef__":true,"id":244},{"__isSmartRef__":true,"id":245},{"__isSmartRef__":true,"id":246},{"__isSmartRef__":true,"id":247},{"__isSmartRef__":true,"id":248},{"__isSmartRef__":true,"id":249},{"__isSmartRef__":true,"id":250},{"__isSmartRef__":true,"id":251}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Dec 10 2013 01:40:14 GMT+0100 (W. Europe Standard Time)\")"},"244":{"author":"ohshima","message":"no comment","id":"A9E86C73-E1B0-4AEE-AF25-6724F5BAC4C4","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 05 2013 05:06:42 GMT+0100 (W. Europe Standard Time)\")"},"245":{"author":"robertkrahn","message":"no comment","id":"3F2394CC-CDCB-4697-A877-65CC0F89F9E2","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 09 2013 22:52:57 GMT+0100 (W. Europe Standard Time)\")"},"246":{"author":"robertkrahn","message":"no comment","id":"D5157028-1C13-4FCF-9C2F-05CE2B00DA5E","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 09 2013 23:02:00 GMT+0100 (W. Europe Standard Time)\")"},"247":{"author":"robertkrahn","message":"no comment","id":"6C96A87B-B968-4A65-B1FF-37E2BCC2AEB7","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 10 2013 00:43:37 GMT+0100 (W. Europe Standard Time)\")"},"248":{"author":"robertkrahn","message":"no comment","id":"416969DE-FDCC-47A1-861B-B2A8FFAB79BB","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 10 2013 01:35:18 GMT+0100 (W. Europe Standard Time)\")"},"249":{"author":"robertkrahn","message":"no comment","id":"DAE56EE6-1977-40E5-98BC-E10615320AA8","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 10 2013 01:39:25 GMT+0100 (W. Europe Standard Time)\")"},"250":{"author":"robertkrahn","message":"no comment","id":"368323F0-5902-49DB-9ACE-23AC3E139184","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 10 2013 01:40:14 GMT+0100 (W. Europe Standard Time)\")"},"251":{"author":"robertkrahn","message":"no comment","id":"081FB958-3031-4F27-ADF6-539476C48881","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 10 2013 01:41:27 GMT+0100 (W. Europe Standard Time)\")"},"252":{"lead1":{"__isSmartRef__":true,"id":208},"lead2":{"__isSmartRef__":true,"id":229},"$1$1lead1":{"__isSmartRef__":true,"id":208},"$1$1lead2":{"__isSmartRef__":true,"id":229},"supplyVoltage":16,"__LivelyClassName__":"users.ohshima.ElectricalComponents.Battery","__SourceModuleName__":"Global.users.ohshima.ElectricalComponents"},"253":{"onLeadConnected":{"__isSmartRef__":true,"id":254},"setupComponent":{"__isSmartRef__":true,"id":257},"reset":{"__isSmartRef__":true,"id":260},"valueChanged":{"__isSmartRef__":true,"id":263}},"254":{"varMapping":{"__isSmartRef__":true,"id":255},"source":"function onLeadConnected(myLead,otherLead) {\n    this.owner.connectLeads(myLead, otherLead);\n}","funcProperties":{"__isSmartRef__":true,"id":256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"255":{"this":{"__isSmartRef__":true,"id":183}},"256":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu Dec 05 2013 00:18:45 GMT+0100 (W. Europe Standard Time)\")"},"257":{"varMapping":{"__isSmartRef__":true,"id":258},"source":"function setupComponent() {\n    var voltage = parseFloat(this.get(\"Voltage\").textString)\n    this.component = new users.ohshima.ElectricalComponents.Battery(voltage);\n    this.get(\"Lead1\").lead = this.component.lead1;\n    this.get(\"Lead2\").lead = this.component.lead2;\n}","funcProperties":{"__isSmartRef__":true,"id":259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"258":{"this":{"__isSmartRef__":true,"id":183}},"259":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu Dec 05 2013 00:18:45 GMT+0100 (W. Europe Standard Time)\")"},"260":{"varMapping":{"__isSmartRef__":true,"id":261},"source":"function reset() {\n        this.getPartsBinMetaInfo().addRequiredModule('users.ohshima.ElectricalComponents');\n    }","funcProperties":{"__isSmartRef__":true,"id":262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"261":{"this":{"__isSmartRef__":true,"id":183}},"262":{},"263":{"varMapping":{"__isSmartRef__":true,"id":264},"source":"function valueChanged() {\n        Functions.debounceNamed('valueChanged-' + this.id, 750, function() {\n            var circuit = this.ownerChain().detect(function(o) { return !!o.buildCircuit; });\n            if (!circuit) {\n                show('Component not in circuit');\n                return;\n            }\n            circuit.buildCircuit();\n        }.bind(this))();\n    }","funcProperties":{"__isSmartRef__":true,"id":265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"264":{"this":{"__isSmartRef__":true,"id":183}},"265":{},"266":{"submorphs":[{"__isSmartRef__":true,"id":267}],"scripts":[],"id":"B66FC2B3-2AB8-4164-91B3-15FD70730E52","shape":{"__isSmartRef__":true,"id":288},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"eventHandler":{"__isSmartRef__":true,"id":289},"showsHalos":false,"name":"Ground","partsBinMetaInfo":{"__isSmartRef__":true,"id":290},"derivationIds":[707,"7925D377-502A-4FBD-9531-F9106FD8E4DD","757A3989-696E-436B-B185-0273D700D400","96719270-B388-4257-AAEF-00DB0B5D1A60","5D2665FB-9DA4-44F0-903E-F754D73699B3","AC424852-DA35-41A1-8440-867D37E7A258"],"_ClipMode":"visible","magnets":[],"isBeingDragged":false,"isLockOwner":true,"component":{"__isSmartRef__":true,"id":294},"owner":{"__isSmartRef__":true,"id":105},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":295},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(136.0,375.0)","distanceToDragEvent":"lively.pt(57.0,-33.0)"},"267":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":268},"id":"AE957597-8E2B-4306-8CC0-F011F644EC05","eventHandler":{"__isSmartRef__":true,"id":269},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":270},"name":"Lead","partsBinMetaInfo":{"__isSmartRef__":true,"id":271},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","13233823-1113-464C-ADCF-071B43D6AEF6","2F1DBF66-E53D-4B13-9793-53EBDA946EEB","F49C7C64-4EBB-4A68-B85D-A0ABB3E1487D","479A60D3-2E4A-4ED9-A639-D4C58D4C51EA","9B2971CD-EF21-4C3D-9F5A-EE33F0718998","ED0B707E-7214-442B-AD0C-4645156B97C1","A8920408-F652-4BD6-AC7C-BC60359FB437","03E14E5B-BF64-4C41-8BF4-7DBDC23CD2A9","73A980D5-0AE7-40F7-94CD-3B8C7C60559E"],"_ClipMode":"visible","isBeingDragged":false,"grabbingEnabled":false,"magnets":[],"owner":{"__isSmartRef__":true,"id":266},"lead":{"__isSmartRef__":true,"id":276},"isLockOwner":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":277},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,-40.0)","distanceToDragEvent":"lively.pt(34.5,-18.3)"},"268":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-15.5,-15.8)","_Extent":"lively.pt(31.0,31.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(204,204,204)"},"269":{"morph":{"__isSmartRef__":true,"id":267},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"270":{},"271":{"partName":"Lead","requiredModules":[],"migrationLevel":8,"partsSpaceName":"PartsBin/Babelsberg/","comment":"A pin for an electric component","changes":[{"__isSmartRef__":true,"id":272},{"__isSmartRef__":true,"id":273},{"__isSmartRef__":true,"id":274},{"__isSmartRef__":true,"id":275}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Fri Nov 15 2013 22:29:34 GMT+0100 (W. Europe Standard Time)\")"},"272":{"author":"robertkrahn","message":"no comment","id":"EE799F0E-9E4A-4AF8-98F7-DAEF09F6A8DC","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 15 2013 20:22:02 GMT+0100 (W. Europe Standard Time)\")"},"273":{"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 03 2012 09:08:08 GMT+0200 (W. Europe Daylight Time)\")"},"274":{"author":null,"message":"no comment","id":"8081E212-F627-4DBF-A925-E884B7F401F7","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jul 12 2013 21:14:02 GMT+0200 (W. Europe Daylight Time)\")"},"275":{"author":null,"message":"no comment","id":"5011462C-F3D3-4806-A629-C6A0FADEC868","__serializedExpressions__":["date"],"date":"new Date(\"Fri Nov 15 2013 22:29:34 GMT+0100 (W. Europe Standard Time)\")"},"276":{"voltage":0,"current":0,"$1$1voltage":0,"$1$1current":0,"__LivelyClassName__":"users.ohshima.ElectricalComponents.Lead","__SourceModuleName__":"Global.users.ohshima.ElectricalComponents"},"277":{"onMouseDown":{"__isSmartRef__":true,"id":278},"connectElectricLead":{"__isSmartRef__":true,"id":285}},"278":{"varMapping":{"__isSmartRef__":true,"id":279},"source":"function onMouseDown(evt) {\n    if (evt.isLeftMouseButtonDown()) {\n        evt.stop();\n        this.setFill(Color.green);\n        var self = this,\n            pos = this.globalBounds().center(),\n            wire = lively.morphic.Morph.makeLine([pos, pos], 4, Color.green);\n        wire.openInWorld();\n        var tracker = lively.morphic.Morph.makeEllipse(rect(-5,-5,10,10));\n        tracker.openInHand();\n        tracker.wantsToBeDroppedInto = function(target) {\n            return !!target.connectElectricLead;\n        }\n        tracker.onDropOn = function(target) {\n            tracker.remove();\n            wire.remove();\n            self.setFill(Color.gray);\n            if (target.connectElectricLead)\n                target.connectElectricLead(self);\n        }\n        tracker.step = function() {\n            var pos = tracker.getPositionInWorld();\n            wire.getControlPoint(1).setGlobalPos(pos);\n        }\n        tracker.startStepping(50, \"step\");\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"279":{"this":{"__isSmartRef__":true,"id":267},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":280}},"280":{"$super":{"__isSmartRef__":true,"id":281}},"281":{"varMapping":{"__isSmartRef__":true,"id":282},"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":283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"282":{"obj":{"__isSmartRef__":true,"id":267},"name":"onMouseDown"},"283":{},"284":{"user":"AlanBorning","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Nov 15 2013 22:47:02 GMT+0100 (W. Europe Standard Time)\")"},"285":{"varMapping":{"__isSmartRef__":true,"id":286},"source":"function connectElectricLead(lead) {\n        if (lead === this) return;\n        this.ownerChain().detect(function(o) { return o.onLeadConnected; });\n        var component = this.ownerChain().filterByKey('onLeadConnected')[0];\n        if (!component) {\n            show('Cannot connect lead, it seems not to be inside an electrical component!')\n            return;\n        }\n        component.onLeadConnected(this, lead);\n    }","funcProperties":{"__isSmartRef__":true,"id":287},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"286":{"this":{"__isSmartRef__":true,"id":267}},"287":{},"288":{"_ImageURL":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMCI+CiAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDApIHNjYWxlKDYgNikiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSIxIiB2aWV3Qm94PSIwIDAgMTIuODczIDE2Ljc4NyIgZmlsbD0ibm9uZSI+CiAgICAgIDxwYXRoIGlkPSJwYXRoMSIgZD0ibTAgOC4zOGgxMi4yNCI+PC9wYXRoPgogICAgICA8cGF0aCBpZD0icGF0aDIiIGQ9Im0yIDExLjkxaDcuNTgiPjwvcGF0aD4KICAgICAgPHBhdGggaWQ9InBhdGgzIiBkPSJtNCAxNS41N2gzLjU0Ij48L3BhdGg+CiAgICAgIDxwYXRoIGlkPSJwYXRoNCIgZD0ibTYgOC41di05LjA5Ij48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==","isLoaded":true,"__serializedExpressions__":["position","_Extent","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,97.0)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-36.0,-40.0)"},"289":{"morph":{"__isSmartRef__":true,"id":266},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"290":{"partsSpaceName":"PartsBin/ElectricalComponents/","partName":"Ground","migrationLevel":8,"comment":"an pixmap image morph","requiredModules":["users.ohshima.ElectricalComponents"],"changes":[{"__isSmartRef__":true,"id":291},{"__isSmartRef__":true,"id":292},{"__isSmartRef__":true,"id":293}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Mon Dec 09 2013 23:01:21 GMT+0100 (W. Europe Standard Time)\")"},"291":{"author":"robertkrahn","message":"no comment","id":"E5ADA8AC-4E90-4C26-A838-B312BC9DC85E","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 09 2013 22:51:50 GMT+0100 (W. Europe Standard Time)\")"},"292":{"author":"robertkrahn","message":"no comment","id":"3BAF9042-40A4-4B58-961E-BC0AD1AF9A66","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 09 2013 23:01:21 GMT+0100 (W. Europe Standard Time)\")"},"293":{"author":"robertkrahn","message":"no comment","id":"2BF2E980-D817-4A1B-96B2-B32F5634C2FA","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 10 2013 01:40:34 GMT+0100 (W. Europe Standard Time)\")"},"294":{"lead":{"__isSmartRef__":true,"id":276},"$1$1lead":{"__isSmartRef__":true,"id":276},"__LivelyClassName__":"users.ohshima.ElectricalComponents.Ground","__SourceModuleName__":"Global.users.ohshima.ElectricalComponents"},"295":{"onLeadConnected":{"__isSmartRef__":true,"id":296},"setupComponent":{"__isSmartRef__":true,"id":299},"reset":{"__isSmartRef__":true,"id":302}},"296":{"varMapping":{"__isSmartRef__":true,"id":297},"source":"function onLeadConnected(myLead,otherLead) {\n    this.owner.connectLeads(myLead, otherLead);\n}","funcProperties":{"__isSmartRef__":true,"id":298},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"297":{"this":{"__isSmartRef__":true,"id":266}},"298":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Wed Dec 04 2013 20:32:10 GMT+0100 (W. Europe Standard Time)\")"},"299":{"varMapping":{"__isSmartRef__":true,"id":300},"source":"function setupComponent() {\n    this.component = new users.ohshima.ElectricalComponents.Ground();\n    this.get(\"Lead\").lead = this.component.lead;\n}","funcProperties":{"__isSmartRef__":true,"id":301},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"300":{"this":{"__isSmartRef__":true,"id":266}},"301":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Wed Dec 04 2013 20:32:10 GMT+0100 (W. Europe Standard Time)\")"},"302":{"varMapping":{"__isSmartRef__":true,"id":303},"source":"function reset() {\n        this.getPartsBinMetaInfo().addRequiredModule('users.ohshima.ElectricalComponents');\n    }","funcProperties":{"__isSmartRef__":true,"id":304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"303":{"this":{"__isSmartRef__":true,"id":266}},"304":{},"305":{"submorphs":[{"__isSmartRef__":true,"id":306},{"__isSmartRef__":true,"id":314},{"__isSmartRef__":true,"id":322},{"__isSmartRef__":true,"id":343},{"__isSmartRef__":true,"id":356},{"__isSmartRef__":true,"id":377}],"scripts":[],"id":"C9C9B143-8638-4B6C-9D40-268F7510980B","shape":{"__isSmartRef__":true,"id":398},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Voltmeter","partsBinMetaInfo":{"__isSmartRef__":true,"id":399},"eventHandler":{"__isSmartRef__":true,"id":440},"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","EADB8FF7-2D11-4842-B2E2-DC79631BAA0B","D41D12DD-D46D-434E-B6E1-7A9E43595EA2","D731253D-1356-48A7-AD6C-2D5D847A5A0D","1784C398-2491-4A3E-8545-81198C1EBA38","94C90D5E-BEF9-4430-A7E7-5F9CF6AD32F9","ADF56CB2-EE3C-4B2D-896B-8721CA160EC1","A1E48610-72AD-4296-BB6C-0547FCF99B5A","4D550C01-49D6-43B0-B54D-148B636C1BDC","62BE44FF-E0D9-4841-970C-A8BCFFA88696","AA6D56CA-972C-470F-8950-EDE5F2299F0E"],"partTests":{"__isSmartRef__":true,"id":441},"_ClipMode":"visible","moved":true,"magnets":[],"isBeingDragged":false,"isLockOwner":true,"component":{"__isSmartRef__":true,"id":446},"owner":{"__isSmartRef__":true,"id":105},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":447},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","withoutLayers":["Global.lively.morphic.GrabbingLayer"],"distanceToDragEvent":"lively.pt(138.0,-33.0)","_Position":"lively.pt(141.0,534.0)"},"306":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":307},"id":"3B305D9B-5628-4D7A-857F-ECC826068060","eventHandler":{"__isSmartRef__":true,"id":310},"droppingEnabled":false,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":311},{"__isSmartRef__":true,"id":312}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":313},"name":"line3","derivationIds":[731,"BCA7C8C3-E462-48B8-AB68-4E235CA31152","83FD2F51-8274-4E69-8061-471CE2A393DB","C8A559FD-69D5-43DE-BCB9-D37A7A0DDA8A","F98127A1-04C3-4B16-BA5D-EF481DC8A5AC","1F9DEABF-23A1-4C88-B1A8-EF620B672713","E813DD02-9CBD-48B0-B72D-ACBD3F3A8A92"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":305},"magnets":[],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(-345.0,76.0)","distanceToDragEvent":"lively.pt(168.0,-17.4)"},"307":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":308},{"__isSmartRef__":true,"id":309}],"_ClipMode":"visible","_BorderWidth":5.694,"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(240.5,-79.5)","_Extent":"lively.pt(73.5,5.1)","_BorderColor":"Color.rgb(0,0,0)"},"308":{"isAbsolute":true,"x":243.5,"y":-76.4,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"309":{"isAbsolute":true,"x":312,"y":-76.5,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"310":{"morph":{"__isSmartRef__":true,"id":306},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"311":{"morph":{"__isSmartRef__":true,"id":306},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"312":{"morph":{"__isSmartRef__":true,"id":306},"index":1,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"313":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Thu Sep 06 2012 01:01:34 GMT+0200 (W. Europe Daylight Time)\")"},"314":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":315},"id":"D6FD0164-E167-45FC-92FA-BB2DDB0CF132","eventHandler":{"__isSmartRef__":true,"id":318},"droppingEnabled":false,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":319},{"__isSmartRef__":true,"id":320}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":321},"name":"line2","derivationIds":[731,"BCA7C8C3-E462-48B8-AB68-4E235CA31152","FC5B1944-5723-4605-B4EF-647CEA1CD833","0B3E1120-C75C-492B-BE25-391260A62A96","EA895CE6-B415-42AA-AD09-1E04DCCBF12F","E731B741-1101-42DC-B01F-579E2E34F222"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":305},"magnets":[],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(-161.0,62.0)","distanceToDragEvent":"lively.pt(168.0,-17.4)"},"315":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":316},{"__isSmartRef__":true,"id":317}],"_ClipMode":"visible","_BorderWidth":5.694,"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(194.0,-65.5)","_Extent":"lively.pt(72.1,5.0)","_BorderColor":"Color.rgb(0,0,0)"},"316":{"isAbsolute":true,"x":197,"y":-62.5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"317":{"isAbsolute":true,"x":264.1,"y":-62.5,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"318":{"morph":{"__isSmartRef__":true,"id":314},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"319":{"morph":{"__isSmartRef__":true,"id":314},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"320":{"morph":{"__isSmartRef__":true,"id":314},"index":1,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"321":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Thu Sep 06 2012 01:01:34 GMT+0200 (W. Europe Daylight Time)\")"},"322":{"submorphs":[{"__isSmartRef__":true,"id":323}],"scripts":[],"shape":{"__isSmartRef__":true,"id":336},"id":"32B1AD28-3519-4C7C-B3B0-DDA437AA0A4B","eventHandler":{"__isSmartRef__":true,"id":337},"droppingEnabled":false,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":338},"name":"Ellipse1","partsBinMetaInfo":{"__isSmartRef__":true,"id":339},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","13233823-1113-464C-ADCF-071B43D6AEF6","2F1DBF66-E53D-4B13-9793-53EBDA946EEB","1DE06BC4-C613-4C77-AAEE-272D4A67D6C8","6886DCE3-445C-4DC9-939D-F166229CB25A","BD979235-2F26-4251-B2B4-5ABB404A261D","939ED2EF-0719-4DDD-8E0E-C0FF23323880","ED75BF6E-4B29-4D7A-ADF9-DABD7104F311","EAEF936A-4004-47C9-82F4-CC9FA8D527BC","6E867A77-BCB4-403B-94BE-FA413ACCAEA7","262CA2B0-BDF0-4979-9BAB-10B1784CC5E4","278808F3-4A6F-4933-8E47-37F832D3C868","70B57FDA-50DA-48A3-BC33-8DE246167C93"],"_ClipMode":"visible","magnets":[],"isLockOwner":false,"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":305},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(50.0,-13.0)","_Position":"lively.pt(1.5,-0.5)"},"323":{"submorphs":[],"scripts":[],"id":"6B4E53E2-A7E4-4C2E-9B31-456381F41067","shape":{"__isSmartRef__":true,"id":324},"grabbingEnabled":false,"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":"Reading","partsBinMetaInfo":{"__isSmartRef__":true,"id":325},"textChunks":[{"__isSmartRef__":true,"id":333}],"charsReplaced":"X A","lastFindLoc":3,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":335},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","AFC0FBB2-1FF9-4C25-8940-1CAE1FCBE04D","BB94B1B7-9846-47C7-8F44-833A95562F36","5CFB9DDF-D1C7-4498-BC1E-022C534979D6","628CBCD1-F8CF-4F95-B067-E06DFE5D73BF","1D00F432-6164-4437-AD1F-9508D7770F67","B71807DC-85DB-44A8-BE5E-48A96F1E32A7","9A2CF14D-6ECC-4997-A786-B286B55B8079","176F2222-1363-4E35-91B0-87731748AC72","65787E76-8971-4A14-88B5-8A9E82A49FDE","4D7AC181-FF3E-489D-8EA0-C941EEE712E5"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"_Align":"center","magnets":[],"isLockOwner":false,"owner":{"__isSmartRef__":true,"id":322},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["textColor","_Padding","distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(37.0,-15.0)","_Position":"lively.pt(-24.5,-11.5)"},"324":{"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(48.7,28.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"325":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":326},{"__isSmartRef__":true,"id":327},{"__isSmartRef__":true,"id":328},{"__isSmartRef__":true,"id":329},{"__isSmartRef__":true,"id":330},{"__isSmartRef__":true,"id":331},{"__isSmartRef__":true,"id":332}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Jul 24 2013 08:21:08 GMT+0200 (W. Europe Daylight Time)\")"},"326":{"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62","__serializedExpressions__":["date"],"date":"new Date(\"Tue Mar 12 2013 17:31:56 GMT+0100 (W. Europe Standard Time)\")"},"327":{"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194","__serializedExpressions__":["date"],"date":"new Date(\"Tue May 08 2012 14:18:18 GMT+0200 (W. Europe Daylight Time)\")"},"328":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 07:32:09 GMT+0200 (W. Europe Daylight Time)\")"},"329":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 07:31:43 GMT+0200 (W. Europe Daylight Time)\")"},"330":{"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","__serializedExpressions__":["date"],"date":"new Date(\"Mon Feb 27 2012 06:20:38 GMT+0100 (W. Europe Standard Time)\")"},"331":{"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 16:30:30 GMT+0200 (W. Europe Daylight Time)\")"},"332":{"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598","__serializedExpressions__":["date"],"date":"new Date(\"Tue Mar 12 2013 18:36:22 GMT+0100 (W. Europe Standard Time)\")"},"333":{"style":{"__isSmartRef__":true,"id":334},"chunkOwner":{"__isSmartRef__":true,"id":323},"_id":"_1013","storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"334":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"335":{"morph":{"__isSmartRef__":true,"id":323},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"336":{"_ClipMode":"visible","_BorderWidth":4.354,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-34.5,-34.5)","_Extent":"lively.pt(69.0,69.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"337":{"morph":{"__isSmartRef__":true,"id":322},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"338":{},"339":{"partName":"Ellipse1","requiredModules":[],"migrationLevel":8,"partsSpaceName":"PartsBin/ElectricalComponents","comment":"This is a \"Ellipse\"","changes":[{"__isSmartRef__":true,"id":340},{"__isSmartRef__":true,"id":341},{"__isSmartRef__":true,"id":342}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Thu Dec 05 2013 00:45:11 GMT+0100 (W. Europe Standard Time)\")"},"340":{"author":"robertkrahn","message":"no comment","id":"EE799F0E-9E4A-4AF8-98F7-DAEF09F6A8DC","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 15 2013 20:22:02 GMT+0100 (W. Europe Standard Time)\")"},"341":{"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 03 2012 09:08:08 GMT+0200 (W. Europe Daylight Time)\")"},"342":{"author":null,"message":"no comment","id":"8081E212-F627-4DBF-A925-E884B7F401F7","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jul 12 2013 21:14:02 GMT+0200 (W. Europe Daylight Time)\")"},"343":{"submorphs":[],"scripts":[],"id":"D454F28C-B099-4054-BAEA-8B84CFB6BFBC","shape":{"__isSmartRef__":true,"id":344},"grabbingEnabled":false,"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":"MeterLabel1","partsBinMetaInfo":{"__isSmartRef__":true,"id":345},"textChunks":[{"__isSmartRef__":true,"id":353}],"charsReplaced":"A","lastFindLoc":1,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":355},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","C9DF83BE-B606-4C45-BC9C-ADAF0DFA92C2","870601DA-948E-4E6E-B14A-65D1D4E323AD","752E69D3-5CA2-47F7-98C6-193ED3DD43C9","EB3355D5-8EF7-446D-A0E8-0D9A9D53CF9E","06FD60FE-0F0A-4B2F-B2A0-EB65900C8902","125D0849-C07B-4533-B36D-2F985FF0A2BE","F41A2FAD-3F8B-4FF7-810B-23BBB3E27C86"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[1,1],"isBeingDragged":false,"moved":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"magnets":[],"owner":{"__isSmartRef__":true,"id":305},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["textColor","_Padding","distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(38.0,-15.0)","_Position":"lively.pt(-10.0,-55.0)"},"344":{"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(25.7,28.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"345":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":346},{"__isSmartRef__":true,"id":347},{"__isSmartRef__":true,"id":348},{"__isSmartRef__":true,"id":349},{"__isSmartRef__":true,"id":350},{"__isSmartRef__":true,"id":351},{"__isSmartRef__":true,"id":352}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Jul 24 2013 08:21:08 GMT+0200 (W. Europe Daylight Time)\")"},"346":{"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62","__serializedExpressions__":["date"],"date":"new Date(\"Tue Mar 12 2013 17:31:56 GMT+0100 (W. Europe Standard Time)\")"},"347":{"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194","__serializedExpressions__":["date"],"date":"new Date(\"Tue May 08 2012 14:18:18 GMT+0200 (W. Europe Daylight Time)\")"},"348":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 07:32:09 GMT+0200 (W. Europe Daylight Time)\")"},"349":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 07:31:43 GMT+0200 (W. Europe Daylight Time)\")"},"350":{"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","__serializedExpressions__":["date"],"date":"new Date(\"Mon Feb 27 2012 06:20:38 GMT+0100 (W. Europe Standard Time)\")"},"351":{"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 16:30:30 GMT+0200 (W. Europe Daylight Time)\")"},"352":{"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598","__serializedExpressions__":["date"],"date":"new Date(\"Tue Mar 12 2013 18:36:22 GMT+0100 (W. Europe Standard Time)\")"},"353":{"style":{"__isSmartRef__":true,"id":354},"morph":{"__isSmartRef__":true,"id":343},"chunkOwner":{"__isSmartRef__":true,"id":343},"storedString":"V","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"354":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"355":{"morph":{"__isSmartRef__":true,"id":343},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"356":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":357},"id":"E4A3EB2A-6B09-4FDD-91AE-608C64B42E0D","eventHandler":{"__isSmartRef__":true,"id":358},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":359},"name":"Lead1","partsBinMetaInfo":{"__isSmartRef__":true,"id":360},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","13233823-1113-464C-ADCF-071B43D6AEF6","2F1DBF66-E53D-4B13-9793-53EBDA946EEB","F49C7C64-4EBB-4A68-B85D-A0ABB3E1487D","479A60D3-2E4A-4ED9-A639-D4C58D4C51EA","3C29AA6D-8D5E-44FF-94C4-F58CF78069E8","2BC26352-4D23-4D26-B4CE-7575643592B6","2260A846-DDF8-43B2-920E-1346584502B3","A69A2CA4-E776-4A4E-B2A9-32935DE5AC7F","7C535835-FE9A-4702-BEAF-51DE3AC03738","A5A822A2-B014-4CC8-81E6-28262CBA50E7","FF8EA738-B504-490C-BD5A-AB20565CC1CA","801476F9-B0C6-4A57-9E75-FD197F8CEBE7","49DEC853-34A6-4354-B80F-A9EFAA2A183F","00548C4B-3341-4EB2-9123-224E964541F7","CEA6B0AC-1D41-46AE-8820-52C66134175B"],"_ClipMode":"visible","isBeingDragged":false,"grabbingEnabled":false,"magnets":[],"lead":{"__isSmartRef__":true,"id":365},"isLockOwner":false,"isCopyMorphRef":true,"morphRefId":2,"owner":{"__isSmartRef__":true,"id":305},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":366},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(36.4,-16.8)","_Position":"lively.pt(103.1,-0.5)"},"357":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-16.5,-15.7)","_Extent":"lively.pt(31.0,31.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(204,204,204)"},"358":{"morph":{"__isSmartRef__":true,"id":356},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"359":{},"360":{"partName":"Lead","requiredModules":[],"migrationLevel":8,"partsSpaceName":"PartsBin/Babelsberg/","comment":"A pin for an electric component","changes":[{"__isSmartRef__":true,"id":361},{"__isSmartRef__":true,"id":362},{"__isSmartRef__":true,"id":363},{"__isSmartRef__":true,"id":364}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Fri Nov 15 2013 22:29:34 GMT+0100 (W. Europe Standard Time)\")"},"361":{"author":"robertkrahn","message":"no comment","id":"EE799F0E-9E4A-4AF8-98F7-DAEF09F6A8DC","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 15 2013 20:22:02 GMT+0100 (W. Europe Standard Time)\")"},"362":{"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 03 2012 09:08:08 GMT+0200 (W. Europe Daylight Time)\")"},"363":{"author":null,"message":"no comment","id":"8081E212-F627-4DBF-A925-E884B7F401F7","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jul 12 2013 21:14:02 GMT+0200 (W. Europe Daylight Time)\")"},"364":{"author":null,"message":"no comment","id":"5011462C-F3D3-4806-A629-C6A0FADEC868","__serializedExpressions__":["date"],"date":"new Date(\"Fri Nov 15 2013 22:29:34 GMT+0100 (W. Europe Standard Time)\")"},"365":{"voltage":0,"current":0,"$1$1current":0,"$1$1voltage":0,"__LivelyClassName__":"users.ohshima.ElectricalComponents.Lead","__SourceModuleName__":"Global.users.ohshima.ElectricalComponents"},"366":{"onMouseDown":{"__isSmartRef__":true,"id":367},"connectElectricLead":{"__isSmartRef__":true,"id":374}},"367":{"varMapping":{"__isSmartRef__":true,"id":368},"source":"function onMouseDown(evt) {\n    if (evt.isLeftMouseButtonDown()) {\n        evt.stop();\n        this.setFill(Color.green);\n        var self = this,\n            pos = this.globalBounds().center(),\n            wire = lively.morphic.Morph.makeLine([pos, pos], 4, Color.green);\n        wire.openInWorld();\n        var tracker = lively.morphic.Morph.makeEllipse(rect(-5,-5,10,10));\n        tracker.openInHand();\n        tracker.wantsToBeDroppedInto = function(target) {\n            return !!target.connectElectricLead;\n        }\n        tracker.onDropOn = function(target) {\n            tracker.remove();\n            wire.remove();\n            self.setFill(Color.gray);\n            if (target.connectElectricLead)\n                target.connectElectricLead(self);\n        }\n        tracker.step = function() {\n            var pos = tracker.getPositionInWorld();\n            wire.getControlPoint(1).setGlobalPos(pos);\n        }\n        tracker.startStepping(50, \"step\");\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":373},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"368":{"this":{"__isSmartRef__":true,"id":356},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":369}},"369":{"$super":{"__isSmartRef__":true,"id":370}},"370":{"varMapping":{"__isSmartRef__":true,"id":371},"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":372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"371":{"obj":{"__isSmartRef__":true,"id":356},"name":"onMouseDown"},"372":{},"373":{"user":"AlanBorning","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Nov 15 2013 22:47:02 GMT+0100 (W. Europe Standard Time)\")"},"374":{"varMapping":{"__isSmartRef__":true,"id":375},"source":"function connectElectricLead(lead) {\n        if (lead === this) return;\n        this.ownerChain().detect(function(o) { return o.onLeadConnected; });\n        var component = this.ownerChain().filterByKey('onLeadConnected')[0];\n        if (!component) {\n            show('Cannot connect lead, it seems not to be inside an electrical component!')\n            return;\n        }\n        component.onLeadConnected(this, lead);\n    }","funcProperties":{"__isSmartRef__":true,"id":376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"375":{"this":{"__isSmartRef__":true,"id":356}},"376":{},"377":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":378},"id":"B5FB918A-588F-4B4C-A0EC-BCA644B1420F","eventHandler":{"__isSmartRef__":true,"id":379},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":380},"name":"Lead2","partsBinMetaInfo":{"__isSmartRef__":true,"id":381},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","13233823-1113-464C-ADCF-071B43D6AEF6","2F1DBF66-E53D-4B13-9793-53EBDA946EEB","F49C7C64-4EBB-4A68-B85D-A0ABB3E1487D","479A60D3-2E4A-4ED9-A639-D4C58D4C51EA","3C29AA6D-8D5E-44FF-94C4-F58CF78069E8","2BC26352-4D23-4D26-B4CE-7575643592B6","F83699BA-46E1-4DD8-9A4A-482443C0A782","BB55EEED-EFC5-4811-AA72-BFF0F6DC05E6","F7286BA8-CAD0-4AB6-8ED9-F45AC328A209","A4E88902-C2F4-4F36-9E35-68A8A9D32768","EEF32638-C9CD-4626-8A80-CB52DAF40F71","21EA4739-0B5A-491F-BE79-45FD59B2113E","2439840D-5B27-4154-9987-D6F434A8348F","CEEFAD3D-DB26-4778-8C66-7A8098B8E8BB","18081193-A304-4D0B-9837-D72E541137C3","4ADE1E0E-7540-4806-8C06-E6D1411038A1"],"_ClipMode":"visible","isBeingDragged":false,"grabbingEnabled":false,"magnets":[],"lead":{"__isSmartRef__":true,"id":386},"isLockOwner":false,"owner":{"__isSmartRef__":true,"id":305},"_Rotation":2.356194490192345,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":387},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(-6.3,-32.0)","_Position":"lively.pt(-101.5,-0.4)"},"378":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-16.5,-15.7)","_Extent":"lively.pt(31.0,31.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(204,204,204)"},"379":{"morph":{"__isSmartRef__":true,"id":377},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"380":{},"381":{"partName":"Lead","requiredModules":[],"migrationLevel":8,"partsSpaceName":"PartsBin/Babelsberg/","comment":"A pin for an electric component","changes":[{"__isSmartRef__":true,"id":382},{"__isSmartRef__":true,"id":383},{"__isSmartRef__":true,"id":384},{"__isSmartRef__":true,"id":385}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Fri Nov 15 2013 22:29:34 GMT+0100 (W. Europe Standard Time)\")"},"382":{"author":"robertkrahn","message":"no comment","id":"EE799F0E-9E4A-4AF8-98F7-DAEF09F6A8DC","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 15 2013 20:22:02 GMT+0100 (W. Europe Standard Time)\")"},"383":{"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 03 2012 09:08:08 GMT+0200 (W. Europe Daylight Time)\")"},"384":{"author":null,"message":"no comment","id":"8081E212-F627-4DBF-A925-E884B7F401F7","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jul 12 2013 21:14:02 GMT+0200 (W. Europe Daylight Time)\")"},"385":{"author":null,"message":"no comment","id":"5011462C-F3D3-4806-A629-C6A0FADEC868","__serializedExpressions__":["date"],"date":"new Date(\"Fri Nov 15 2013 22:29:34 GMT+0100 (W. Europe Standard Time)\")"},"386":{"voltage":0,"current":0,"$1$1current":0,"$1$1voltage":0,"__LivelyClassName__":"users.ohshima.ElectricalComponents.Lead","__SourceModuleName__":"Global.users.ohshima.ElectricalComponents"},"387":{"onMouseDown":{"__isSmartRef__":true,"id":388},"connectElectricLead":{"__isSmartRef__":true,"id":395}},"388":{"varMapping":{"__isSmartRef__":true,"id":389},"source":"function onMouseDown(evt) {\n    if (evt.isLeftMouseButtonDown()) {\n        evt.stop();\n        this.setFill(Color.green);\n        var self = this,\n            pos = this.globalBounds().center(),\n            wire = lively.morphic.Morph.makeLine([pos, pos], 4, Color.green);\n        wire.openInWorld();\n        var tracker = lively.morphic.Morph.makeEllipse(rect(-5,-5,10,10));\n        tracker.openInHand();\n        tracker.wantsToBeDroppedInto = function(target) {\n            return !!target.connectElectricLead;\n        }\n        tracker.onDropOn = function(target) {\n            tracker.remove();\n            wire.remove();\n            self.setFill(Color.gray);\n            if (target.connectElectricLead)\n                target.connectElectricLead(self);\n        }\n        tracker.step = function() {\n            var pos = tracker.getPositionInWorld();\n            wire.getControlPoint(1).setGlobalPos(pos);\n        }\n        tracker.startStepping(50, \"step\");\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"389":{"this":{"__isSmartRef__":true,"id":377},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":390}},"390":{"$super":{"__isSmartRef__":true,"id":391}},"391":{"varMapping":{"__isSmartRef__":true,"id":392},"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":393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"392":{"obj":{"__isSmartRef__":true,"id":377},"name":"onMouseDown"},"393":{},"394":{"user":"AlanBorning","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Nov 15 2013 22:47:02 GMT+0100 (W. Europe Standard Time)\")"},"395":{"varMapping":{"__isSmartRef__":true,"id":396},"source":"function connectElectricLead(lead) {\n        if (lead === this) return;\n        this.ownerChain().detect(function(o) { return o.onLeadConnected; });\n        var component = this.ownerChain().filterByKey('onLeadConnected')[0];\n        if (!component) {\n            show('Cannot connect lead, it seems not to be inside an electrical component!')\n            return;\n        }\n        component.onLeadConnected(this, lead);\n    }","funcProperties":{"__isSmartRef__":true,"id":397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"396":{"this":{"__isSmartRef__":true,"id":377}},"397":{},"398":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_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(224.0,73.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-103.0,-33.0)"},"399":{"partsSpaceName":"PartsBin/ElectricalComponents/","comment":"Voltmeter","migrationLevel":8,"partName":"Voltmeter","changes":[{"__isSmartRef__":true,"id":400},{"__isSmartRef__":true,"id":401},{"__isSmartRef__":true,"id":402},{"__isSmartRef__":true,"id":403},{"__isSmartRef__":true,"id":404},{"__isSmartRef__":true,"id":405},{"__isSmartRef__":true,"id":406},{"__isSmartRef__":true,"id":407},{"__isSmartRef__":true,"id":408},{"__isSmartRef__":true,"id":409},{"__isSmartRef__":true,"id":410},{"__isSmartRef__":true,"id":411},{"__isSmartRef__":true,"id":412},{"__isSmartRef__":true,"id":413},{"__isSmartRef__":true,"id":414},{"__isSmartRef__":true,"id":415},{"__isSmartRef__":true,"id":416},{"__isSmartRef__":true,"id":417},{"__isSmartRef__":true,"id":418},{"__isSmartRef__":true,"id":419},{"__isSmartRef__":true,"id":420},{"__isSmartRef__":true,"id":421},{"__isSmartRef__":true,"id":422},{"__isSmartRef__":true,"id":423},{"__isSmartRef__":true,"id":424},{"__isSmartRef__":true,"id":425},{"__isSmartRef__":true,"id":426},{"__isSmartRef__":true,"id":427},{"__isSmartRef__":true,"id":428},{"__isSmartRef__":true,"id":429},{"__isSmartRef__":true,"id":430},{"__isSmartRef__":true,"id":431},{"__isSmartRef__":true,"id":432},{"__isSmartRef__":true,"id":433},{"__isSmartRef__":true,"id":434},{"__isSmartRef__":true,"id":435},{"__isSmartRef__":true,"id":436},{"__isSmartRef__":true,"id":437},{"__isSmartRef__":true,"id":438},{"__isSmartRef__":true,"id":439}],"requiredModules":["users.ohshima.ElectricalComponents"],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Dec 10 2013 01:51:23 GMT+0100 (W. Europe Standard Time)\")"},"400":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jun 21 2013 00:16:24 GMT+0200 (W. Europe Daylight Time)\")"},"401":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 30 2013 09:18:06 GMT+0200 (W. Europe Daylight Time)\")"},"402":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","__serializedExpressions__":["date"],"date":"new Date(\"Wed Jan 23 2013 12:57:18 GMT+0100 (W. Europe Standard Time)\")"},"403":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 15:51:36 GMT+0200 (W. Europe Daylight Time)\")"},"404":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 15:51:30 GMT+0200 (W. Europe Daylight Time)\")"},"405":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 10:53:45 GMT+0100 (W. Europe Standard Time)\")"},"406":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Sat Feb 25 2012 02:59:09 GMT+0100 (W. Europe Standard Time)\")"},"407":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 10:42:26 GMT+0100 (W. Europe Standard Time)\")"},"408":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","__serializedExpressions__":["date"],"date":"new Date(\"Mon Apr 09 2012 13:42:07 GMT+0200 (W. Europe Daylight Time)\")"},"409":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 18 2012 19:35:08 GMT+0200 (W. Europe Daylight Time)\")"},"410":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","__serializedExpressions__":["date"],"date":"new Date(\"Thu Nov 22 2012 10:35:51 GMT+0100 (W. Europe Standard Time)\")"},"411":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 16:42:31 GMT+0100 (W. Europe Standard Time)\")"},"412":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 16:47:05 GMT+0100 (W. Europe Standard Time)\")"},"413":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 30 2013 00:36:50 GMT+0200 (W. Europe Daylight Time)\")"},"414":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","__serializedExpressions__":["date"],"date":"new Date(\"Tue Jun 18 2013 20:49:27 GMT+0200 (W. Europe Daylight Time)\")"},"415":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","__serializedExpressions__":["date"],"date":"new Date(\"Tue Jul 30 2013 08:20:51 GMT+0200 (W. Europe Daylight Time)\")"},"416":{"author":"robertkrahn","message":"no comment","id":"E2B272DF-371B-4648-8CAB-C7E6B6D3810E","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 05 2013 00:51:03 GMT+0100 (W. Europe Standard Time)\")"},"417":{"author":"robertkrahn","message":"no comment","id":"B882068B-EFFF-45C5-857C-0D142B60B8C2","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 05 2013 01:55:48 GMT+0100 (W. Europe Standard Time)\")"},"418":{"author":"ohshima","message":"no comment","id":"A20B98A1-F6DB-4529-B8CE-B93E72225FCF","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 05 2013 04:24:25 GMT+0100 (W. Europe Standard Time)\")"},"419":{"author":"ohshima","message":"no comment","id":"E3CE3D11-B336-4AB2-8725-CEA053AD5CB1","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 05 2013 04:24:46 GMT+0100 (W. Europe Standard Time)\")"},"420":{"author":"ohshima","message":"no comment","id":"5A0DAB63-FEF3-4878-AB9E-5C7EA840AB1C","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 05 2013 04:26:13 GMT+0100 (W. Europe Standard Time)\")"},"421":{"author":"ohshima","message":"no comment","id":"21496CB4-5729-4E27-B86A-A2C1C2A1C33A","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 05 2013 05:03:32 GMT+0100 (W. Europe Standard Time)\")"},"422":{"author":"ohshima","message":"no comment","id":"EF9C4D0F-40C3-4619-A059-7861DFAA2281","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 05 2013 05:09:20 GMT+0100 (W. Europe Standard Time)\")"},"423":{"author":"ohshima","message":"no comment","id":"3A8EDC2F-508D-4B6F-B4B3-1151EFC9F348","__serializedExpressions__":["date"],"date":"new Date(\"Fri Dec 06 2013 05:34:06 GMT+0100 (W. Europe Standard Time)\")"},"424":{"author":"robertkrahn","message":"no comment","id":"F0998922-F3A1-4278-A783-FEA262D6671F","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 09 2013 22:51:52 GMT+0100 (W. Europe Standard Time)\")"},"425":{"author":"robertkrahn","message":"no comment","id":"EC0BA15F-6D08-4164-A9FC-F5E237D8FEDD","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 09 2013 22:51:54 GMT+0100 (W. Europe Standard Time)\")"},"426":{"author":"robertkrahn","message":"no comment","id":"BCD89DA5-FF8C-424D-A95A-BA415510EFAF","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 09 2013 22:51:55 GMT+0100 (W. Europe Standard Time)\")"},"427":{"author":"robertkrahn","message":"no comment","id":"3C78C2E5-2966-4647-8200-DA96AF6E44DA","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 09 2013 22:51:57 GMT+0100 (W. Europe Standard Time)\")"},"428":{"author":"robertkrahn","message":"no comment","id":"FF326DC9-7AA3-441A-8A08-55FB60CCAE0C","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 09 2013 22:52:00 GMT+0100 (W. Europe Standard Time)\")"},"429":{"author":"robertkrahn","message":"no comment","id":"19D2DE01-7AD7-4FE8-B708-C785648CC085","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 09 2013 22:52:02 GMT+0100 (W. Europe Standard Time)\")"},"430":{"author":"robertkrahn","message":"no comment","id":"59EDFCF5-C941-4CFA-9B49-8E1D59F2BD2F","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 09 2013 23:01:23 GMT+0100 (W. Europe Standard Time)\")"},"431":{"author":"robertkrahn","message":"no comment","id":"717E4830-789C-4DDA-9A84-FD6C3526785E","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 09 2013 23:01:24 GMT+0100 (W. Europe Standard Time)\")"},"432":{"author":"robertkrahn","message":"no comment","id":"151537F0-9F5A-4264-8C09-39B8BA52C536","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 09 2013 23:01:25 GMT+0100 (W. Europe Standard Time)\")"},"433":{"author":"robertkrahn","message":"no comment","id":"491EC3B1-552B-4CE0-96DB-9BD13C29C226","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 09 2013 23:01:27 GMT+0100 (W. Europe Standard Time)\")"},"434":{"author":"robertkrahn","message":"no comment","id":"FBA8D4C4-C265-44F7-BAAC-21EA445051FF","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 09 2013 23:01:28 GMT+0100 (W. Europe Standard Time)\")"},"435":{"author":"robertkrahn","message":"no comment","id":"7F0FABBE-BF6F-4A2D-9109-80830D2BE609","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 09 2013 23:01:29 GMT+0100 (W. Europe Standard Time)\")"},"436":{"author":"robertkrahn","message":"no comment","id":"E1C2028A-55F1-4927-A54A-2EEE53610904","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 10 2013 01:40:35 GMT+0100 (W. Europe Standard Time)\")"},"437":{"author":"robertkrahn","message":"no comment","id":"E95AFF35-F003-4DEF-A4E9-B9A7719541CF","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 10 2013 01:49:57 GMT+0100 (W. Europe Standard Time)\")"},"438":{"author":"robertkrahn","message":"no comment","id":"FDF94785-1BB6-446F-9CFB-75EDBCD28005","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 10 2013 01:51:23 GMT+0100 (W. Europe Standard Time)\")"},"439":{"author":"robertkrahn","message":"no comment","id":"1BFA16C0-767F-4E45-A05C-C0DA1E813020","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 10 2013 02:06:22 GMT+0100 (W. Europe Standard Time)\")"},"440":{"morph":{"__isSmartRef__":true,"id":305},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"441":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":442}},"442":{"test01IsMorph":{"__isSmartRef__":true,"id":443}},"443":{"varMapping":{"__isSmartRef__":true,"id":444},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":445},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"444":{"this":{"__isSmartRef__":true,"id":441}},"445":{},"446":{"lead1":{"__isSmartRef__":true,"id":365},"lead2":{"__isSmartRef__":true,"id":386},"$1$1lead1":{"__isSmartRef__":true,"id":365},"$1$1lead2":{"__isSmartRef__":true,"id":386},"readingVoltage":0,"$1$1readingVoltage":0,"__LivelyClassName__":"users.ohshima.ElectricalComponents.Voltmeter","__SourceModuleName__":"Global.users.ohshima.ElectricalComponents"},"447":{"onLeadConnected":{"__isSmartRef__":true,"id":448},"setupComponent":{"__isSmartRef__":true,"id":451},"reset":{"__isSmartRef__":true,"id":454},"updateMeter":{"__isSmartRef__":true,"id":457}},"448":{"varMapping":{"__isSmartRef__":true,"id":449},"source":"function onLeadConnected(myLead,otherLead) {\n    this.owner.connectLeads(myLead, otherLead);\n}","funcProperties":{"__isSmartRef__":true,"id":450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"449":{"this":{"__isSmartRef__":true,"id":305}},"450":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu Dec 05 2013 00:39:49 GMT+0100 (W. Europe Standard Time)\")"},"451":{"varMapping":{"__isSmartRef__":true,"id":452},"source":"function setupComponent() {\n    this.component = new users.ohshima.ElectricalComponents.Voltmeter();\n    this.get(\"Lead1\").lead = this.component.lead1;\n    this.get(\"Lead2\").lead = this.component.lead2;\n}","funcProperties":{"__isSmartRef__":true,"id":453},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"452":{"this":{"__isSmartRef__":true,"id":305}},"453":{"user":"ohshima","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu Dec 05 2013 04:25:33 GMT+0100 (W. Europe Standard Time)\")"},"454":{"varMapping":{"__isSmartRef__":true,"id":455},"source":"function reset() {\n        this.getPartsBinMetaInfo().addRequiredModule('users.ohshima.ElectricalComponents');\n    }","funcProperties":{"__isSmartRef__":true,"id":456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"455":{"this":{"__isSmartRef__":true,"id":305}},"456":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Tue Dec 10 2013 02:06:03 GMT+0100 (W. Europe Standard Time)\")"},"457":{"varMapping":{"__isSmartRef__":true,"id":458},"source":"function updateMeter() {\n    if (this.component) {\n        this.get(\"Reading\").textString  = this.component.readingVoltage.toFixed(3).toString()\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"458":{"this":{"__isSmartRef__":true,"id":305}},"459":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Tue Dec 10 2013 02:06:03 GMT+0100 (W. Europe Standard Time)\")"},"460":{"submorphs":[{"__isSmartRef__":true,"id":461},{"__isSmartRef__":true,"id":469},{"__isSmartRef__":true,"id":477},{"__isSmartRef__":true,"id":498},{"__isSmartRef__":true,"id":511},{"__isSmartRef__":true,"id":532}],"scripts":[],"id":"7F0B11A1-6D78-45C0-8A1A-493FE1CF5D7F","shape":{"__isSmartRef__":true,"id":553},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Ammeter","partsBinMetaInfo":{"__isSmartRef__":true,"id":554},"eventHandler":{"__isSmartRef__":true,"id":586},"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","EADB8FF7-2D11-4842-B2E2-DC79631BAA0B","D41D12DD-D46D-434E-B6E1-7A9E43595EA2","D731253D-1356-48A7-AD6C-2D5D847A5A0D","1784C398-2491-4A3E-8545-81198C1EBA38","94C90D5E-BEF9-4430-A7E7-5F9CF6AD32F9","ADF56CB2-EE3C-4B2D-896B-8721CA160EC1","B2CF30BC-7F53-44EF-9E91-D55DBB3E5BAB","ACD06D40-C9C2-4F18-BD1D-5D54F42DB9CB","B9A2F12F-1AC9-4469-9A74-D7EE4F6A7F44","70B9D5FD-3B3B-49C1-AE3A-1BB468F702AE","DCF57F9F-2830-4CCB-8FEC-8A0F030DF43B","BE39CF13-6B06-42DB-86A3-0BAD9932E920","AA2F2BBC-431A-41AF-9973-E5F6AC5C78A2"],"partTests":{"__isSmartRef__":true,"id":587},"_ClipMode":"visible","moved":true,"magnets":[],"isBeingDragged":false,"isLockOwner":true,"component":{"__isSmartRef__":true,"id":592},"owner":{"__isSmartRef__":true,"id":105},"grabbingEnabled":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":593},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","withoutLayers":["Global.lively.morphic.GrabbingLayer"],"distanceToDragEvent":"lively.pt(146.0,-35.0)","_Position":"lively.pt(131.0,723.0)"},"461":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":462},"id":"22606DBF-5FDB-4D7E-94B8-7007FF4EFED0","eventHandler":{"__isSmartRef__":true,"id":465},"droppingEnabled":false,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":466},{"__isSmartRef__":true,"id":467}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":468},"name":"line3","derivationIds":[731,"BCA7C8C3-E462-48B8-AB68-4E235CA31152","83FD2F51-8274-4E69-8061-471CE2A393DB","2DBA6F4A-CC44-4FC7-95EA-802159CF8E8F","986FC02F-F69A-4EFD-8701-B5E47B2677ED","713ECF6C-CD0F-47BA-A37E-19F0D6D3FD06","B65DBF0C-D9D3-4BDD-9CF4-72DB24589ECC","251F488F-4601-4B6B-AF7B-F926F02BC451","B90940B6-55B2-4BBC-99A5-C40B8BAA2F0F","E128516F-9508-4EA0-B609-4E9E5451C3C8"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":460},"magnets":[],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(-346.0,76.0)","distanceToDragEvent":"lively.pt(168.0,-17.4)"},"462":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":463},{"__isSmartRef__":true,"id":464}],"_ClipMode":"visible","_BorderWidth":5.694,"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(240.5,-79.5)","_Extent":"lively.pt(73.5,5.1)","_BorderColor":"Color.rgb(0,0,0)"},"463":{"isAbsolute":true,"x":243.5,"y":-76.4,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"464":{"isAbsolute":true,"x":312,"y":-76.5,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"465":{"morph":{"__isSmartRef__":true,"id":461},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"466":{"morph":{"__isSmartRef__":true,"id":461},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"467":{"morph":{"__isSmartRef__":true,"id":461},"index":1,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"468":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Thu Sep 06 2012 01:01:34 GMT+0200 (W. Europe Daylight Time)\")"},"469":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":470},"id":"9313283C-5803-444B-98C7-A669DF9A7939","eventHandler":{"__isSmartRef__":true,"id":473},"droppingEnabled":false,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":474},{"__isSmartRef__":true,"id":475}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":476},"name":"line2","derivationIds":[731,"BCA7C8C3-E462-48B8-AB68-4E235CA31152","CB40D3C2-E346-44FB-81DD-9B8031090696","5AFE5FBB-E36B-42B5-9074-1788AE625BCC","4EFEC63C-AE43-443D-895C-CC0294C61861","C53C5973-4383-4909-8628-B07181F35948","04B101E0-4E0F-4709-AFCA-485268E76A6B","BEC0518E-52AD-46EE-8BB7-C17E552D6229","68F78268-E074-4654-AEB4-848804859B57"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":460},"magnets":[],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(-162.0,62.0)","distanceToDragEvent":"lively.pt(168.0,-17.4)"},"470":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":471},{"__isSmartRef__":true,"id":472}],"_ClipMode":"visible","_BorderWidth":5.694,"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(194.0,-65.5)","_Extent":"lively.pt(72.1,5.0)","_BorderColor":"Color.rgb(0,0,0)"},"471":{"isAbsolute":true,"x":197,"y":-62.5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"472":{"isAbsolute":true,"x":264.1,"y":-62.5,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"473":{"morph":{"__isSmartRef__":true,"id":469},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"474":{"morph":{"__isSmartRef__":true,"id":469},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"475":{"morph":{"__isSmartRef__":true,"id":469},"index":1,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"476":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Thu Sep 06 2012 01:01:34 GMT+0200 (W. Europe Daylight Time)\")"},"477":{"submorphs":[{"__isSmartRef__":true,"id":478}],"scripts":[],"shape":{"__isSmartRef__":true,"id":491},"id":"7249512E-CAC0-48C3-8304-DE429F8B515F","eventHandler":{"__isSmartRef__":true,"id":492},"droppingEnabled":false,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":493},"name":"Ellipse1","partsBinMetaInfo":{"__isSmartRef__":true,"id":494},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","13233823-1113-464C-ADCF-071B43D6AEF6","2F1DBF66-E53D-4B13-9793-53EBDA946EEB","1DE06BC4-C613-4C77-AAEE-272D4A67D6C8","6886DCE3-445C-4DC9-939D-F166229CB25A","BD979235-2F26-4251-B2B4-5ABB404A261D","939ED2EF-0719-4DDD-8E0E-C0FF23323880","ED75BF6E-4B29-4D7A-ADF9-DABD7104F311","EAEF936A-4004-47C9-82F4-CC9FA8D527BC","96E0E5C9-0465-475E-9A86-C2B54D27FB0E","DB696C62-0D7A-47BF-A60D-7C6E2444097B","CCAA7E4B-3041-4D4F-B264-C3A044B49322","05E57809-A981-4BA4-8940-15F99E404807","19CC0437-4C1A-4739-8AFF-EA58868DEAAB","A612D212-CD28-44E9-94D9-90C808DC8F8E","3D5C0508-FDE8-44B7-9774-FAC54DFB6D85"],"_ClipMode":"visible","magnets":[],"isLockOwner":false,"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":460},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(50.0,-13.0)","_Position":"lively.pt(0.5,-0.5)"},"478":{"submorphs":[],"scripts":[],"id":"FF891BD1-F538-4A4F-B9EA-C7495D43D3EC","shape":{"__isSmartRef__":true,"id":479},"grabbingEnabled":false,"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":"Reading","partsBinMetaInfo":{"__isSmartRef__":true,"id":480},"textChunks":[{"__isSmartRef__":true,"id":488}],"charsReplaced":"X A","lastFindLoc":3,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":490},"_ClipMode":"hidden","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","AFC0FBB2-1FF9-4C25-8940-1CAE1FCBE04D","BB94B1B7-9846-47C7-8F44-833A95562F36","5CFB9DDF-D1C7-4498-BC1E-022C534979D6","628CBCD1-F8CF-4F95-B067-E06DFE5D73BF","1D00F432-6164-4437-AD1F-9508D7770F67","B71807DC-85DB-44A8-BE5E-48A96F1E32A7","7C6A0B56-EE77-434E-BD89-7CE0932B87B4","AAA1AFDC-8F41-4AB8-BD32-8C83ACC961FF","521DA6DA-EDB5-4029-915E-3E9189DBBA06","CB748509-4E49-49A3-9067-AA6915B8B4A2","3A7CA21F-233C-4E06-8F22-5D15941611AD","F0133992-86C2-4F03-9E3C-D6EF83351942","999E33E3-6A9D-4D62-989C-BA585AF1AE39"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"_Align":"center","magnets":[],"isLockOwner":false,"owner":{"__isSmartRef__":true,"id":477},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["textColor","_Padding","distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(35.0,-14.0)","_Position":"lively.pt(-24.5,-13.5)"},"479":{"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(48.7,26.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"480":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":481},{"__isSmartRef__":true,"id":482},{"__isSmartRef__":true,"id":483},{"__isSmartRef__":true,"id":484},{"__isSmartRef__":true,"id":485},{"__isSmartRef__":true,"id":486},{"__isSmartRef__":true,"id":487}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Jul 24 2013 08:21:08 GMT+0200 (W. Europe Daylight Time)\")"},"481":{"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62","__serializedExpressions__":["date"],"date":"new Date(\"Tue Mar 12 2013 17:31:56 GMT+0100 (W. Europe Standard Time)\")"},"482":{"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194","__serializedExpressions__":["date"],"date":"new Date(\"Tue May 08 2012 14:18:18 GMT+0200 (W. Europe Daylight Time)\")"},"483":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 07:32:09 GMT+0200 (W. Europe Daylight Time)\")"},"484":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 07:31:43 GMT+0200 (W. Europe Daylight Time)\")"},"485":{"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","__serializedExpressions__":["date"],"date":"new Date(\"Mon Feb 27 2012 06:20:38 GMT+0100 (W. Europe Standard Time)\")"},"486":{"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 16:30:30 GMT+0200 (W. Europe Daylight Time)\")"},"487":{"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598","__serializedExpressions__":["date"],"date":"new Date(\"Tue Mar 12 2013 18:36:22 GMT+0100 (W. Europe Standard Time)\")"},"488":{"style":{"__isSmartRef__":true,"id":489},"chunkOwner":{"__isSmartRef__":true,"id":478},"_id":"_237","storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"489":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"490":{"morph":{"__isSmartRef__":true,"id":478},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"491":{"_ClipMode":"visible","_BorderWidth":4.354,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-34.5,-34.5)","_Extent":"lively.pt(69.0,69.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"492":{"morph":{"__isSmartRef__":true,"id":477},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"493":{},"494":{"partName":"Ellipse1","requiredModules":[],"migrationLevel":8,"partsSpaceName":"PartsBin/ElectricalComponents","comment":"This is a \"Ellipse\"","changes":[{"__isSmartRef__":true,"id":495},{"__isSmartRef__":true,"id":496},{"__isSmartRef__":true,"id":497}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Thu Dec 05 2013 00:45:11 GMT+0100 (W. Europe Standard Time)\")"},"495":{"author":"robertkrahn","message":"no comment","id":"EE799F0E-9E4A-4AF8-98F7-DAEF09F6A8DC","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 15 2013 20:22:02 GMT+0100 (W. Europe Standard Time)\")"},"496":{"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 03 2012 09:08:08 GMT+0200 (W. Europe Daylight Time)\")"},"497":{"author":null,"message":"no comment","id":"8081E212-F627-4DBF-A925-E884B7F401F7","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jul 12 2013 21:14:02 GMT+0200 (W. Europe Daylight Time)\")"},"498":{"submorphs":[],"scripts":[],"id":"B087F631-6526-4527-8C60-026864CE290A","shape":{"__isSmartRef__":true,"id":499},"grabbingEnabled":false,"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":"MeterLabel1","partsBinMetaInfo":{"__isSmartRef__":true,"id":500},"textChunks":[{"__isSmartRef__":true,"id":508}],"charsReplaced":"A","lastFindLoc":1,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":510},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","C9DF83BE-B606-4C45-BC9C-ADAF0DFA92C2","870601DA-948E-4E6E-B14A-65D1D4E323AD","752E69D3-5CA2-47F7-98C6-193ED3DD43C9","C3FCB37A-383A-49ED-9D93-C7783596BD78","E1982C6A-BD2A-4041-8DA9-8BACBD0EFC55","06E456EB-E453-43B5-8E7D-67E79E5EB9DF","2D2E83BC-2501-4307-B29C-0BA379338E8C","A5AFD089-4748-4B43-8755-0EB42FAEF7E4","8126F772-47B5-4739-8C94-63B7ABFF01D9","79D94412-7FCA-4DE5-B642-095302859136"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":null,"isBeingDragged":false,"moved":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"magnets":[],"owner":{"__isSmartRef__":true,"id":460},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["textColor","_Padding","distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(38.0,-15.0)","_Position":"lively.pt(-11.0,-55.0)"},"499":{"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(25.7,28.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"500":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":501},{"__isSmartRef__":true,"id":502},{"__isSmartRef__":true,"id":503},{"__isSmartRef__":true,"id":504},{"__isSmartRef__":true,"id":505},{"__isSmartRef__":true,"id":506},{"__isSmartRef__":true,"id":507}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Jul 24 2013 08:21:08 GMT+0200 (W. Europe Daylight Time)\")"},"501":{"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62","__serializedExpressions__":["date"],"date":"new Date(\"Tue Mar 12 2013 17:31:56 GMT+0100 (W. Europe Standard Time)\")"},"502":{"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194","__serializedExpressions__":["date"],"date":"new Date(\"Tue May 08 2012 14:18:18 GMT+0200 (W. Europe Daylight Time)\")"},"503":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 07:32:09 GMT+0200 (W. Europe Daylight Time)\")"},"504":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 07:31:43 GMT+0200 (W. Europe Daylight Time)\")"},"505":{"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","__serializedExpressions__":["date"],"date":"new Date(\"Mon Feb 27 2012 06:20:38 GMT+0100 (W. Europe Standard Time)\")"},"506":{"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 16:30:30 GMT+0200 (W. Europe Daylight Time)\")"},"507":{"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598","__serializedExpressions__":["date"],"date":"new Date(\"Tue Mar 12 2013 18:36:22 GMT+0100 (W. Europe Standard Time)\")"},"508":{"style":{"__isSmartRef__":true,"id":509},"chunkOwner":{"__isSmartRef__":true,"id":498},"_id":"_6255","storedString":"A","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"509":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"510":{"morph":{"__isSmartRef__":true,"id":498},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"511":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":512},"id":"16539BC3-4614-40B7-B184-06BB144AE9F2","eventHandler":{"__isSmartRef__":true,"id":513},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":514},"name":"Lead1","partsBinMetaInfo":{"__isSmartRef__":true,"id":515},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","13233823-1113-464C-ADCF-071B43D6AEF6","2F1DBF66-E53D-4B13-9793-53EBDA946EEB","F49C7C64-4EBB-4A68-B85D-A0ABB3E1487D","479A60D3-2E4A-4ED9-A639-D4C58D4C51EA","3C29AA6D-8D5E-44FF-94C4-F58CF78069E8","2BC26352-4D23-4D26-B4CE-7575643592B6","2260A846-DDF8-43B2-920E-1346584502B3","A69A2CA4-E776-4A4E-B2A9-32935DE5AC7F","7C535835-FE9A-4702-BEAF-51DE3AC03738","A5A822A2-B014-4CC8-81E6-28262CBA50E7","FF8EA738-B504-490C-BD5A-AB20565CC1CA","97C1C51B-B505-4B72-9F3D-8DC80E6B6C86","894887C0-3026-4B64-9473-6862E5089E03","466F1108-8377-4862-88F6-382A8BA48692","9947EB0D-8FB8-4006-AE22-6DF67600AEA8","EC616735-840F-4F94-9612-A04371953263","E4E43548-296A-426A-9EF6-0C0AB234238B","B268632B-75A2-4506-9606-C2100B025738"],"_ClipMode":"visible","isBeingDragged":false,"grabbingEnabled":false,"magnets":[],"lead":{"__isSmartRef__":true,"id":520},"isLockOwner":false,"isCopyMorphRef":true,"morphRefId":2,"owner":{"__isSmartRef__":true,"id":460},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":521},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(36.4,-16.8)","_Position":"lively.pt(102.1,-0.5)"},"512":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-16.5,-15.7)","_Extent":"lively.pt(31.0,31.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(204,204,204)"},"513":{"morph":{"__isSmartRef__":true,"id":511},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"514":{},"515":{"partName":"Lead","requiredModules":[],"migrationLevel":8,"partsSpaceName":"PartsBin/Babelsberg/","comment":"A pin for an electric component","changes":[{"__isSmartRef__":true,"id":516},{"__isSmartRef__":true,"id":517},{"__isSmartRef__":true,"id":518},{"__isSmartRef__":true,"id":519}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Fri Nov 15 2013 22:29:34 GMT+0100 (W. Europe Standard Time)\")"},"516":{"author":"robertkrahn","message":"no comment","id":"EE799F0E-9E4A-4AF8-98F7-DAEF09F6A8DC","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 15 2013 20:22:02 GMT+0100 (W. Europe Standard Time)\")"},"517":{"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 03 2012 09:08:08 GMT+0200 (W. Europe Daylight Time)\")"},"518":{"author":null,"message":"no comment","id":"8081E212-F627-4DBF-A925-E884B7F401F7","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jul 12 2013 21:14:02 GMT+0200 (W. Europe Daylight Time)\")"},"519":{"author":null,"message":"no comment","id":"5011462C-F3D3-4806-A629-C6A0FADEC868","__serializedExpressions__":["date"],"date":"new Date(\"Fri Nov 15 2013 22:29:34 GMT+0100 (W. Europe Standard Time)\")"},"520":{"voltage":0,"current":0,"$1$1current":0,"$1$1voltage":0,"__LivelyClassName__":"users.ohshima.ElectricalComponents.Lead","__SourceModuleName__":"Global.users.ohshima.ElectricalComponents"},"521":{"onMouseDown":{"__isSmartRef__":true,"id":522},"connectElectricLead":{"__isSmartRef__":true,"id":529}},"522":{"varMapping":{"__isSmartRef__":true,"id":523},"source":"function onMouseDown(evt) {\n    if (evt.isLeftMouseButtonDown()) {\n        evt.stop();\n        this.setFill(Color.green);\n        var self = this,\n            pos = this.globalBounds().center(),\n            wire = lively.morphic.Morph.makeLine([pos, pos], 4, Color.green);\n        wire.openInWorld();\n        var tracker = lively.morphic.Morph.makeEllipse(rect(-5,-5,10,10));\n        tracker.openInHand();\n        tracker.wantsToBeDroppedInto = function(target) {\n            return !!target.connectElectricLead;\n        }\n        tracker.onDropOn = function(target) {\n            tracker.remove();\n            wire.remove();\n            self.setFill(Color.gray);\n            if (target.connectElectricLead)\n                target.connectElectricLead(self);\n        }\n        tracker.step = function() {\n            var pos = tracker.getPositionInWorld();\n            wire.getControlPoint(1).setGlobalPos(pos);\n        }\n        tracker.startStepping(50, \"step\");\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"523":{"this":{"__isSmartRef__":true,"id":511},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":524}},"524":{"$super":{"__isSmartRef__":true,"id":525}},"525":{"varMapping":{"__isSmartRef__":true,"id":526},"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":527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"526":{"obj":{"__isSmartRef__":true,"id":511},"name":"onMouseDown"},"527":{},"528":{"user":"AlanBorning","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Nov 15 2013 22:47:02 GMT+0100 (W. Europe Standard Time)\")"},"529":{"varMapping":{"__isSmartRef__":true,"id":530},"source":"function connectElectricLead(lead) {\n        if (lead === this) return;\n        this.ownerChain().detect(function(o) { return o.onLeadConnected; });\n        var component = this.ownerChain().filterByKey('onLeadConnected')[0];\n        if (!component) {\n            show('Cannot connect lead, it seems not to be inside an electrical component!')\n            return;\n        }\n        component.onLeadConnected(this, lead);\n    }","funcProperties":{"__isSmartRef__":true,"id":531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"530":{"this":{"__isSmartRef__":true,"id":511}},"531":{},"532":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":533},"id":"96ABB70D-84AE-443D-A608-8965670FC162","eventHandler":{"__isSmartRef__":true,"id":534},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":535},"name":"Lead2","partsBinMetaInfo":{"__isSmartRef__":true,"id":536},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","13233823-1113-464C-ADCF-071B43D6AEF6","2F1DBF66-E53D-4B13-9793-53EBDA946EEB","F49C7C64-4EBB-4A68-B85D-A0ABB3E1487D","479A60D3-2E4A-4ED9-A639-D4C58D4C51EA","3C29AA6D-8D5E-44FF-94C4-F58CF78069E8","2BC26352-4D23-4D26-B4CE-7575643592B6","F83699BA-46E1-4DD8-9A4A-482443C0A782","BB55EEED-EFC5-4811-AA72-BFF0F6DC05E6","F7286BA8-CAD0-4AB6-8ED9-F45AC328A209","A4E88902-C2F4-4F36-9E35-68A8A9D32768","EEF32638-C9CD-4626-8A80-CB52DAF40F71","21EA4739-0B5A-491F-BE79-45FD59B2113E","3C490787-5750-4B99-A899-5DDD20EFE50E","E17026AC-A601-4765-B5A8-6D98958F642B","AEC2D7E6-A3B9-4F9C-93DF-C1FB6AB22412","B2931C45-C2D4-4091-8771-028A676723F3","EB0FECC9-31D7-4283-BBE9-9D88057C904C","73AF423B-A79C-4BDA-B9A5-9DAE54A004A8","C47AB740-2AC4-4BAC-BBBC-02CA52794DB5"],"_ClipMode":"visible","isBeingDragged":false,"grabbingEnabled":false,"magnets":[],"lead":{"__isSmartRef__":true,"id":541},"isLockOwner":false,"owner":{"__isSmartRef__":true,"id":460},"_Rotation":2.356194490192345,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":542},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(-6.3,-32.0)","_Position":"lively.pt(-102.5,-0.4)"},"533":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-16.5,-15.7)","_Extent":"lively.pt(31.0,31.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(204,204,204)"},"534":{"morph":{"__isSmartRef__":true,"id":532},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"535":{},"536":{"partName":"Lead","requiredModules":[],"migrationLevel":8,"partsSpaceName":"PartsBin/Babelsberg/","comment":"A pin for an electric component","changes":[{"__isSmartRef__":true,"id":537},{"__isSmartRef__":true,"id":538},{"__isSmartRef__":true,"id":539},{"__isSmartRef__":true,"id":540}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Fri Nov 15 2013 22:29:34 GMT+0100 (W. Europe Standard Time)\")"},"537":{"author":"robertkrahn","message":"no comment","id":"EE799F0E-9E4A-4AF8-98F7-DAEF09F6A8DC","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 15 2013 20:22:02 GMT+0100 (W. Europe Standard Time)\")"},"538":{"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 03 2012 09:08:08 GMT+0200 (W. Europe Daylight Time)\")"},"539":{"author":null,"message":"no comment","id":"8081E212-F627-4DBF-A925-E884B7F401F7","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jul 12 2013 21:14:02 GMT+0200 (W. Europe Daylight Time)\")"},"540":{"author":null,"message":"no comment","id":"5011462C-F3D3-4806-A629-C6A0FADEC868","__serializedExpressions__":["date"],"date":"new Date(\"Fri Nov 15 2013 22:29:34 GMT+0100 (W. Europe Standard Time)\")"},"541":{"voltage":0,"current":0,"$1$1current":0,"$1$1voltage":0,"__LivelyClassName__":"users.ohshima.ElectricalComponents.Lead","__SourceModuleName__":"Global.users.ohshima.ElectricalComponents"},"542":{"onMouseDown":{"__isSmartRef__":true,"id":543},"connectElectricLead":{"__isSmartRef__":true,"id":550}},"543":{"varMapping":{"__isSmartRef__":true,"id":544},"source":"function onMouseDown(evt) {\n    if (evt.isLeftMouseButtonDown()) {\n        evt.stop();\n        this.setFill(Color.green);\n        var self = this,\n            pos = this.globalBounds().center(),\n            wire = lively.morphic.Morph.makeLine([pos, pos], 4, Color.green);\n        wire.openInWorld();\n        var tracker = lively.morphic.Morph.makeEllipse(rect(-5,-5,10,10));\n        tracker.openInHand();\n        tracker.wantsToBeDroppedInto = function(target) {\n            return !!target.connectElectricLead;\n        }\n        tracker.onDropOn = function(target) {\n            tracker.remove();\n            wire.remove();\n            self.setFill(Color.gray);\n            if (target.connectElectricLead)\n                target.connectElectricLead(self);\n        }\n        tracker.step = function() {\n            var pos = tracker.getPositionInWorld();\n            wire.getControlPoint(1).setGlobalPos(pos);\n        }\n        tracker.startStepping(50, \"step\");\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"544":{"this":{"__isSmartRef__":true,"id":532},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":545}},"545":{"$super":{"__isSmartRef__":true,"id":546}},"546":{"varMapping":{"__isSmartRef__":true,"id":547},"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":548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"547":{"obj":{"__isSmartRef__":true,"id":532},"name":"onMouseDown"},"548":{},"549":{"user":"AlanBorning","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Nov 15 2013 22:47:02 GMT+0100 (W. Europe Standard Time)\")"},"550":{"varMapping":{"__isSmartRef__":true,"id":551},"source":"function connectElectricLead(lead) {\n        if (lead === this) return;\n        this.ownerChain().detect(function(o) { return o.onLeadConnected; });\n        var component = this.ownerChain().filterByKey('onLeadConnected')[0];\n        if (!component) {\n            show('Cannot connect lead, it seems not to be inside an electrical component!')\n            return;\n        }\n        component.onLeadConnected(this, lead);\n    }","funcProperties":{"__isSmartRef__":true,"id":552},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"551":{"this":{"__isSmartRef__":true,"id":532}},"552":{},"553":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_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(224.0,73.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-104.0,-33.0)"},"554":{"partsSpaceName":"PartsBin/ElectricalComponents/","comment":"Ammeter","migrationLevel":8,"partName":"Ammeter","changes":[{"__isSmartRef__":true,"id":555},{"__isSmartRef__":true,"id":556},{"__isSmartRef__":true,"id":557},{"__isSmartRef__":true,"id":558},{"__isSmartRef__":true,"id":559},{"__isSmartRef__":true,"id":560},{"__isSmartRef__":true,"id":561},{"__isSmartRef__":true,"id":562},{"__isSmartRef__":true,"id":563},{"__isSmartRef__":true,"id":564},{"__isSmartRef__":true,"id":565},{"__isSmartRef__":true,"id":566},{"__isSmartRef__":true,"id":567},{"__isSmartRef__":true,"id":568},{"__isSmartRef__":true,"id":569},{"__isSmartRef__":true,"id":570},{"__isSmartRef__":true,"id":571},{"__isSmartRef__":true,"id":572},{"__isSmartRef__":true,"id":573},{"__isSmartRef__":true,"id":574},{"__isSmartRef__":true,"id":575},{"__isSmartRef__":true,"id":576},{"__isSmartRef__":true,"id":577},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":579},{"__isSmartRef__":true,"id":580},{"__isSmartRef__":true,"id":581},{"__isSmartRef__":true,"id":582},{"__isSmartRef__":true,"id":583},{"__isSmartRef__":true,"id":584},{"__isSmartRef__":true,"id":585}],"requiredModules":["users.ohshima.ElectricalComponents"],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Dec 10 2013 01:49:08 GMT+0100 (W. Europe Standard Time)\")"},"555":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jun 21 2013 00:16:24 GMT+0200 (W. Europe Daylight Time)\")"},"556":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 30 2013 09:18:06 GMT+0200 (W. Europe Daylight Time)\")"},"557":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","__serializedExpressions__":["date"],"date":"new Date(\"Wed Jan 23 2013 12:57:18 GMT+0100 (W. Europe Standard Time)\")"},"558":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 15:51:36 GMT+0200 (W. Europe Daylight Time)\")"},"559":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 15:51:30 GMT+0200 (W. Europe Daylight Time)\")"},"560":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 10:53:45 GMT+0100 (W. Europe Standard Time)\")"},"561":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Sat Feb 25 2012 02:59:09 GMT+0100 (W. Europe Standard Time)\")"},"562":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 10:42:26 GMT+0100 (W. Europe Standard Time)\")"},"563":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","__serializedExpressions__":["date"],"date":"new Date(\"Mon Apr 09 2012 13:42:07 GMT+0200 (W. Europe Daylight Time)\")"},"564":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 18 2012 19:35:08 GMT+0200 (W. Europe Daylight Time)\")"},"565":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","__serializedExpressions__":["date"],"date":"new Date(\"Thu Nov 22 2012 10:35:51 GMT+0100 (W. Europe Standard Time)\")"},"566":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 16:42:31 GMT+0100 (W. Europe Standard Time)\")"},"567":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 16:47:05 GMT+0100 (W. Europe Standard Time)\")"},"568":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 30 2013 00:36:50 GMT+0200 (W. Europe Daylight Time)\")"},"569":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","__serializedExpressions__":["date"],"date":"new Date(\"Tue Jun 18 2013 20:49:27 GMT+0200 (W. Europe Daylight Time)\")"},"570":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","__serializedExpressions__":["date"],"date":"new Date(\"Tue Jul 30 2013 08:20:51 GMT+0200 (W. Europe Daylight Time)\")"},"571":{"author":"robertkrahn","message":"no comment","id":"E2B272DF-371B-4648-8CAB-C7E6B6D3810E","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 05 2013 00:51:03 GMT+0100 (W. Europe Standard Time)\")"},"572":{"author":"robertkrahn","message":"no comment","id":"B882068B-EFFF-45C5-857C-0D142B60B8C2","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 05 2013 01:55:48 GMT+0100 (W. Europe Standard Time)\")"},"573":{"author":"ohshima","message":"no comment","id":"A20B98A1-F6DB-4529-B8CE-B93E72225FCF","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 05 2013 04:24:25 GMT+0100 (W. Europe Standard Time)\")"},"574":{"author":"ohshima","message":"no comment","id":"E3CE3D11-B336-4AB2-8725-CEA053AD5CB1","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 05 2013 04:24:46 GMT+0100 (W. Europe Standard Time)\")"},"575":{"author":"ohshima","message":"no comment","id":"5A0DAB63-FEF3-4878-AB9E-5C7EA840AB1C","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 05 2013 04:26:13 GMT+0100 (W. Europe Standard Time)\")"},"576":{"author":"ohshima","message":"no comment","id":"21496CB4-5729-4E27-B86A-A2C1C2A1C33A","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 05 2013 05:03:32 GMT+0100 (W. Europe Standard Time)\")"},"577":{"author":"ohshima","message":"no comment","id":"EF9C4D0F-40C3-4619-A059-7861DFAA2281","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 05 2013 05:09:20 GMT+0100 (W. Europe Standard Time)\")"},"578":{"author":"ohshima","message":"no comment","id":"3A8EDC2F-508D-4B6F-B4B3-1151EFC9F348","__serializedExpressions__":["date"],"date":"new Date(\"Fri Dec 06 2013 05:34:06 GMT+0100 (W. Europe Standard Time)\")"},"579":{"author":"ohshima","message":"no comment","id":"7EE1F186-5BCF-4397-BBCD-42871B79DCC7","__serializedExpressions__":["date"],"date":"new Date(\"Fri Dec 06 2013 05:47:23 GMT+0100 (W. Europe Standard Time)\")"},"580":{"author":"robertkrahn","message":"no comment","id":"9BBB70F1-8216-4FC7-A990-595991C3B98B","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 09 2013 22:52:07 GMT+0100 (W. Europe Standard Time)\")"},"581":{"author":"robertkrahn","message":"no comment","id":"400B9EFF-A97D-4167-97E0-AE279A4259FF","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 09 2013 23:01:33 GMT+0100 (W. Europe Standard Time)\")"},"582":{"author":"robertkrahn","message":"no comment","id":"F2193E05-3115-4786-B14B-BA23FE30492B","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 10 2013 01:40:40 GMT+0100 (W. Europe Standard Time)\")"},"583":{"author":"robertkrahn","message":"no comment","id":"523C919D-E428-4369-ACB9-A61821ED7513","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 10 2013 01:47:31 GMT+0100 (W. Europe Standard Time)\")"},"584":{"author":"robertkrahn","message":"no comment","id":"931CDAAD-7D12-4255-A180-00C0226AD66C","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 10 2013 01:49:06 GMT+0100 (W. Europe Standard Time)\")"},"585":{"author":"robertkrahn","message":"no comment","id":"46B88434-748A-4543-8E6C-24C9F827C03E","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 10 2013 02:06:13 GMT+0100 (W. Europe Standard Time)\")"},"586":{"morph":{"__isSmartRef__":true,"id":460},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"587":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":588}},"588":{"test01IsMorph":{"__isSmartRef__":true,"id":589}},"589":{"varMapping":{"__isSmartRef__":true,"id":590},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":591},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"590":{"this":{"__isSmartRef__":true,"id":587}},"591":{},"592":{"lead1":{"__isSmartRef__":true,"id":520},"lead2":{"__isSmartRef__":true,"id":541},"$1$1lead1":{"__isSmartRef__":true,"id":520},"$1$1lead2":{"__isSmartRef__":true,"id":541},"__LivelyClassName__":"users.ohshima.ElectricalComponents.Ammeter","__SourceModuleName__":"Global.users.ohshima.ElectricalComponents"},"593":{"onLeadConnected":{"__isSmartRef__":true,"id":594},"setupComponent":{"__isSmartRef__":true,"id":597},"reset":{"__isSmartRef__":true,"id":600},"updateMeter":{"__isSmartRef__":true,"id":603}},"594":{"varMapping":{"__isSmartRef__":true,"id":595},"source":"function onLeadConnected(myLead,otherLead) {\n    this.owner.connectLeads(myLead, otherLead);\n}","funcProperties":{"__isSmartRef__":true,"id":596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"595":{"this":{"__isSmartRef__":true,"id":460}},"596":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu Dec 05 2013 00:39:49 GMT+0100 (W. Europe Standard Time)\")"},"597":{"varMapping":{"__isSmartRef__":true,"id":598},"source":"function setupComponent() {\n    this.component = new users.ohshima.ElectricalComponents.Ammeter();\n    this.get(\"Lead1\").lead = this.component.lead1;\n    this.get(\"Lead2\").lead = this.component.lead2;\n}","funcProperties":{"__isSmartRef__":true,"id":599},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"598":{"this":{"__isSmartRef__":true,"id":460}},"599":{"user":"ohshima","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Dec 06 2013 05:46:22 GMT+0100 (W. Europe Standard Time)\")"},"600":{"varMapping":{"__isSmartRef__":true,"id":601},"source":"function reset() {\n        this.getPartsBinMetaInfo().addRequiredModule('users.ohshima.ElectricalComponents');\n    }","funcProperties":{"__isSmartRef__":true,"id":602},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"601":{"this":{"__isSmartRef__":true,"id":460}},"602":{"user":"ohshima","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Dec 06 2013 20:42:29 GMT+0100 (W. Europe Standard Time)\")"},"603":{"varMapping":{"__isSmartRef__":true,"id":604},"source":"function updateMeter() {\n    if (this.component) {\n        this.get(\"Reading\").textString  = this.component.lead1.current.toFixed(3).toString();\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"604":{"this":{"__isSmartRef__":true,"id":460}},"605":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Tue Dec 10 2013 02:05:45 GMT+0100 (W. Europe Standard Time)\")"},"606":{"_BorderWidth":3.554,"_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(289.0,799.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgba(0,0,204,0)","_Padding":"lively.rect(0,0,0,0)"},"607":{"partsSpaceName":"PartsBin/Basic","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":608},{"__isSmartRef__":true,"id":609},{"__isSmartRef__":true,"id":610},{"__isSmartRef__":true,"id":611},{"__isSmartRef__":true,"id":612},{"__isSmartRef__":true,"id":613},{"__isSmartRef__":true,"id":614},{"__isSmartRef__":true,"id":615},{"__isSmartRef__":true,"id":616},{"__isSmartRef__":true,"id":617},{"__isSmartRef__":true,"id":618},{"__isSmartRef__":true,"id":619},{"__isSmartRef__":true,"id":620},{"__isSmartRef__":true,"id":621},{"__isSmartRef__":true,"id":622},{"__isSmartRef__":true,"id":623}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Nov 05 2013 18:48:16 GMT+0100 (W. Europe Standard Time)\")"},"608":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jun 21 2013 00:16:24 GMT+0200 (W. Europe Daylight Time)\")"},"609":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 30 2013 09:18:06 GMT+0200 (W. Europe Daylight Time)\")"},"610":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","__serializedExpressions__":["date"],"date":"new Date(\"Wed Jan 23 2013 12:57:18 GMT+0100 (W. Europe Standard Time)\")"},"611":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 15:51:36 GMT+0200 (W. Europe Daylight Time)\")"},"612":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 15:51:30 GMT+0200 (W. Europe Daylight Time)\")"},"613":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 10:53:45 GMT+0100 (W. Europe Standard Time)\")"},"614":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Sat Feb 25 2012 02:59:09 GMT+0100 (W. Europe Standard Time)\")"},"615":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 10:42:26 GMT+0100 (W. Europe Standard Time)\")"},"616":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","__serializedExpressions__":["date"],"date":"new Date(\"Mon Apr 09 2012 13:42:07 GMT+0200 (W. Europe Daylight Time)\")"},"617":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 18 2012 19:35:08 GMT+0200 (W. Europe Daylight Time)\")"},"618":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","__serializedExpressions__":["date"],"date":"new Date(\"Thu Nov 22 2012 10:35:51 GMT+0100 (W. Europe Standard Time)\")"},"619":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 16:42:31 GMT+0100 (W. Europe Standard Time)\")"},"620":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 16:47:05 GMT+0100 (W. Europe Standard Time)\")"},"621":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 30 2013 00:36:50 GMT+0200 (W. Europe Daylight Time)\")"},"622":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","__serializedExpressions__":["date"],"date":"new Date(\"Tue Jun 18 2013 20:49:27 GMT+0200 (W. Europe Daylight Time)\")"},"623":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","__serializedExpressions__":["date"],"date":"new Date(\"Tue Jul 30 2013 08:20:51 GMT+0200 (W. Europe Daylight Time)\")"},"624":{"morph":{"__isSmartRef__":true,"id":105},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"625":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":626}},"626":{"test01IsMorph":{"__isSmartRef__":true,"id":627}},"627":{"varMapping":{"__isSmartRef__":true,"id":628},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"628":{"this":{"__isSmartRef__":true,"id":625}},"629":{},"630":{"resizeWidth":false,"resizeHeight":true,"moveHorizontal":true},"631":{"onrestore":{"__isSmartRef__":true,"id":632}},"632":{"varMapping":{"__isSmartRef__":true,"id":633},"source":"function onrestore() {\n    var self =  this;\n    cop.create(\"CopyOnDragLayer\").refineClass(lively.morphic.Morph, {\n        onDragStart: function (evt) {\n            var m = this;\n            while (m.owner !== self) {\n                m = m.owner;\n            }\n            var cpy = m.copy();\n            self.addMorph(cpy);\n            cpy.openInHand();\n        }\n    })\n    this.setWithLayers([CopyOnDragLayer]);\n    this.activeLayers();\n}","funcProperties":{"__isSmartRef__":true,"id":638},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"633":{"this":{"__isSmartRef__":true,"id":105},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":634}},"634":{"$super":{"__isSmartRef__":true,"id":635}},"635":{"varMapping":{"__isSmartRef__":true,"id":636},"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":637},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"636":{"obj":{"__isSmartRef__":true,"id":105},"name":"onrestore"},"637":{},"638":{"user":"timfelgentreff","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Mar 07 2014 11:27:08 GMT+0100 (W. Europe Standard Time)\")"},"639":{"submorphs":[{"__isSmartRef__":true,"id":640}],"scripts":[],"shape":{"__isSmartRef__":true,"id":645},"eventHandler":{"__isSmartRef__":true,"id":646},"_ClipMode":"visible","derivationIds":["EC7EBB28-54AE-4244-80ED-3E13650F82B7","9FD2DCE2-B997-4536-B2A5-90D7DD92B3E6","0D8CC908-BD1C-4062-BB03-3FCEB910483D","5013A6C0-E886-48EE-8C11-8204E2E4AAA8","21BAA616-65A9-4A44-A48F-64B8B534B6C1","54F6ADD0-2293-49DE-B9ED-2C414DD39E2C"],"id":"F98A1A11-7ACA-4931-8DF0-C6BC67E79DF0","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":640},"_PreviousBorderWidth":1,"isPressed":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":647}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"name":"Button","partsBinMetaInfo":{"__isSmartRef__":true,"id":649},"pinSpecs":[{"__isSmartRef__":true,"id":657}],"owner":{"__isSmartRef__":true,"id":41},"_StyleClassNames":["Morph","Button"],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":658},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(8.0,7.0)","distanceToDragEvent":"lively.pt(66.0,-12.0)"},"640":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":641},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":642}],"eventHandler":{"__isSmartRef__":true,"id":644},"_ClipMode":"hidden","derivationIds":["7884E73F-0D17-44B3-907F-44A5223F1F3D","444B63A6-D9E7-4AB2-AB57-4A9146C18BFF","08999E10-CCC3-4CAB-99BC-4EF500309EC4","D4448B1A-1CA7-4AED-86C1-60BFC1ACE354","855C45C1-56E6-4D93-8191-B61E55690011","1EEBA3E6-BF4F-4933-BAC2-3AA075517358"],"id":"89BB8AB9-1464-4D50-8E2A-37F1882CA298","grabbingEnabled":false,"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":639},"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)"},"641":{"_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)"},"642":{"style":{"__isSmartRef__":true,"id":643},"chunkOwner":{"__isSmartRef__":true,"id":640},"_id":"_24306","storedString":"Clear","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"643":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"644":{"morph":{"__isSmartRef__":true,"id":640},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"645":{"_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)"},"646":{"morph":{"__isSmartRef__":true,"id":639},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"647":{"sourceObj":{"__isSmartRef__":true,"id":639},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":639},"targetMethodName":"doAction","varMapping":{"__isSmartRef__":true,"id":648},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"648":{"source":{"__isSmartRef__":true,"id":639},"target":{"__isSmartRef__":true,"id":639}},"649":{"partName":"Button","requiredModules":[],"partsSpaceName":"PartsBin/Inputs","comment":"A simple button that calls a method #doAction when pressed.","changes":[{"__isSmartRef__":true,"id":650},{"__isSmartRef__":true,"id":651},{"__isSmartRef__":true,"id":652},{"__isSmartRef__":true,"id":653},{"__isSmartRef__":true,"id":654},{"__isSmartRef__":true,"id":655},{"__isSmartRef__":true,"id":656}],"migrationLevel":7,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Jul 24 2013 08:21:12 GMT+0200 (W. Europe Daylight Time)\")"},"650":{"author":null,"message":"no comment","id":"F8B70225-5143-4A51-ABB4-344B488B3811","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 11 2012 22:15:42 GMT+0100 (W. Europe Standard Time)\")"},"651":{"author":"robertkrahn","message":"no comment","id":"9B8B6BE4-4519-4A6C-8F47-70DE61BBB0FB","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 11 2012 22:53:16 GMT+0100 (W. Europe Standard Time)\")"},"652":{"author":"robertkrahn","message":"test","id":"ACA617B4-0416-4E3C-9F4D-171A40F44F0F","__serializedExpressions__":["date"],"date":"new Date(\"Wed May 01 2013 05:34:25 GMT+0200 (W. Europe Daylight Time)\")"},"653":{"author":"robertkrahn","message":"no comment","id":"811BDE87-D8DD-48BB-97B2-7A3C3F3FAE32","__serializedExpressions__":["date"],"date":"new Date(\"Wed May 01 2013 05:35:59 GMT+0200 (W. Europe Daylight Time)\")"},"654":{"author":"robertkrahn","message":"no comment","id":"BB2EA501-D9AF-414B-A035-E1487DA6F0FD","__serializedExpressions__":["date"],"date":"new Date(\"Wed May 01 2013 05:36:30 GMT+0200 (W. Europe Daylight Time)\")"},"655":{"author":"Dan","message":"no comment","id":"A594459F-DA9B-49DD-A105-547B3F613CC5","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 17 2013 19:22:38 GMT+0200 (W. Europe Daylight Time)\")"},"656":{"author":"Dan","message":"no comment","id":"CFEC4071-14FF-4AEB-A399-197884CD18BF","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 17 2013 19:24:50 GMT+0200 (W. Europe Daylight Time)\")"},"657":{"pinName":"fire","modality":"output","type":"Boolean","accessor":"fire","location":1.5},"658":{"doAction":{"__isSmartRef__":true,"id":659}},"659":{"varMapping":{"__isSmartRef__":true,"id":660},"source":"function doAction() {\n    this.get(\"Circuit\").removeAllMorphs()\n}","funcProperties":{"__isSmartRef__":true,"id":661},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"660":{"this":{"__isSmartRef__":true,"id":639}},"661":{"user":"timfelgentreff","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Mar 07 2014 11:31:11 GMT+0100 (W. Europe Standard Time)\")"},"662":{"submorphs":[{"__isSmartRef__":true,"id":663}],"scripts":[],"id":"E49D06CC-93D0-4412-BA23-1EAC0B8A339D","shape":{"__isSmartRef__":true,"id":712},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"HelpButton1","partsBinMetaInfo":{"__isSmartRef__":true,"id":713},"eventHandler":{"__isSmartRef__":true,"id":732},"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","6430649A-9055-4C08-99C5-357867E3A3B8"],"partTests":{"__isSmartRef__":true,"id":733},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":41},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(320.0,4.0)","distanceToDragEvent":"lively.pt(37.0,-13.0)"},"663":{"submorphs":[{"__isSmartRef__":true,"id":664}],"scripts":[],"shape":{"__isSmartRef__":true,"id":669},"_ClipMode":"visible","derivationIds":["AC62FFA6-AE7C-40D2-82CA-89E4A02A6258","BD203768-636B-4738-815F-8FD278169EA5"],"id":"6FC75FEC-5FF4-43BC-BF40-92FDB0580A3F","grabbingEnabled":false,"droppingEnabled":true,"halosEnabled":false,"label":{"__isSmartRef__":true,"id":664},"layout":{"__isSmartRef__":true,"id":670},"name":"helpButton","showsMorphMenu":true,"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"isActive":true,"style":{"__isSmartRef__":true,"id":671},"attributeConnections":[{"__isSmartRef__":true,"id":675}],"eventHandler":{"__isSmartRef__":true,"id":677},"isPressed":false,"_StyleClassNames":["Morph","Button"],"value":false,"showsHalos":false,"owner":{"__isSmartRef__":true,"id":662},"helpPane":{"__isSmartRef__":true,"id":678},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":708},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(39.0,-14.4)"},"664":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":665},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":666}],"_ClipMode":"hidden","derivationIds":["CAE395B0-7AF9-4314-8F50-6AB844075B05","F4976AFA-3DBA-4EAB-A35F-0FEBD592CD7B"],"id":"D8568A89-6F45-4A67-BABD-7FF65EF10B20","_InputAllowed":false,"_HandStyle":"default","allowInput":false,"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"fixedWidth":true,"fixedHeight":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":663},"isLabel":true,"eventsAreIgnored":true,"_Align":"center","_TextStylingMode":true,"eventsAreDisabled":true,"_PointerEvents":"none","eventHandler":{"__isSmartRef__":true,"id":668},"__serializedExpressions__":["_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"665":{"_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(45.8,19.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"666":{"style":{"__isSmartRef__":true,"id":667},"chunkOwner":{"__isSmartRef__":true,"id":664},"_id":"_97614","storedString":"help","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"667":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"668":{"morph":{"__isSmartRef__":true,"id":664},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"669":{"_BorderWidth":1,"_BorderRadius":5,"_Fill":null,"_BorderStyle":"solid","_Opacity":1,"__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(45.8,19.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"670":{"moveHorizontal":true},"671":{"enableGrabbing":false,"enableDropping":false,"borderWidth":1,"borderRadius":5,"label":{"__isSmartRef__":true,"id":672},"__serializedExpressions__":["borderColor","padding"],"borderColor":"Color.rgb(189,190,192)","padding":"lively.rect(0,3,0,0)"},"672":{"borderWidth":0,"fill":null,"fontSize":10,"align":"center","fixedWidth":true,"fixedHeight":true,"clipMode":"hidden","emphasize":{"__isSmartRef__":true,"id":673},"allowInput":false,"__serializedExpressions__":["padding","textColor"],"padding":"lively.rect(0,3,0,0)","textColor":"Color.rgb(0,0,0)"},"673":{"textShadow":{"__isSmartRef__":true,"id":674}},"674":{"__serializedExpressions__":["offset","color"],"offset":"lively.pt(0.0,1.0)","color":"Color.rgb(255,255,255)"},"675":{"sourceObj":{"__isSmartRef__":true,"id":663},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":663},"targetMethodName":"toggleHelpPane","varMapping":{"__isSmartRef__":true,"id":676},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"676":{"source":{"__isSmartRef__":true,"id":663},"target":{"__isSmartRef__":true,"id":663}},"677":{"morph":{"__isSmartRef__":true,"id":663},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"678":{"submorphs":[{"__isSmartRef__":true,"id":679}],"scripts":[],"shape":{"__isSmartRef__":true,"id":705},"_ClipMode":"scroll","derivationIds":["86709003-3275-4FFE-8DED-E0450E3C20E7"],"id":"BBCE003C-0FA6-4AC0-AF65-6EC37E02B61D","halosEnabled":true,"_Visible":false,"layout":{"__isSmartRef__":true,"id":706},"name":"helpPane","eventHandler":{"__isSmartRef__":true,"id":707},"showsHalos":false,"owner":null,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(248.0,-14.0)","_Position":"lively.pt(-354.0,0.0)"},"679":{"submorphs":[],"scripts":[],"id":"A3E7EA90-3EFF-41AB-8749-2DA5E7CCB4B7","shape":{"__isSmartRef__":true,"id":680},"grabbingEnabled":false,"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":"Text2","partsBinMetaInfo":{"__isSmartRef__":true,"id":681},"textChunks":[{"__isSmartRef__":true,"id":689},{"__isSmartRef__":true,"id":691},{"__isSmartRef__":true,"id":693},{"__isSmartRef__":true,"id":695},{"__isSmartRef__":true,"id":697},{"__isSmartRef__":true,"id":699},{"__isSmartRef__":true,"id":702}],"charsReplaced":"","lastFindLoc":210,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":704},"_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,"previousSelection":[288,288],"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":678},"_Rotation":0,"_Scale":1,"priorSelectionRange":[361,361],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(9.4,9.6)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(239.0,-12.0)"},"680":{"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(361.7,269.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"681":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":682},{"__isSmartRef__":true,"id":683},{"__isSmartRef__":true,"id":684},{"__isSmartRef__":true,"id":685},{"__isSmartRef__":true,"id":686},{"__isSmartRef__":true,"id":687},{"__isSmartRef__":true,"id":688}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Jul 24 2013 08:21:08 GMT+0200 (W. Europe Daylight Time)\")"},"682":{"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62","__serializedExpressions__":["date"],"date":"new Date(\"Tue Mar 12 2013 17:31:56 GMT+0100 (W. Europe Standard Time)\")"},"683":{"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194","__serializedExpressions__":["date"],"date":"new Date(\"Tue May 08 2012 14:18:18 GMT+0200 (W. Europe Daylight Time)\")"},"684":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 07:32:09 GMT+0200 (W. Europe Daylight Time)\")"},"685":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 07:31:43 GMT+0200 (W. Europe Daylight Time)\")"},"686":{"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","__serializedExpressions__":["date"],"date":"new Date(\"Mon Feb 27 2012 06:20:38 GMT+0100 (W. Europe Standard Time)\")"},"687":{"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 16:30:30 GMT+0200 (W. Europe Daylight Time)\")"},"688":{"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598","__serializedExpressions__":["date"],"date":"new Date(\"Tue Mar 12 2013 18:36:22 GMT+0100 (W. Europe Standard Time)\")"},"689":{"style":{"__isSmartRef__":true,"id":690},"chunkOwner":{"__isSmartRef__":true,"id":679},"_id":"_92144","storedString":"Drag parts from the pane on the right into the white area. Click and drag from the connector ends to connect the parts.\n\nYou can edit the ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"690":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"691":{"_id":"_92157","style":{"__isSmartRef__":true,"id":692},"chunkOwner":{"__isSmartRef__":true,"id":679},"storedString":"ohms ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"692":{"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"693":{"_id":"_92158","style":{"__isSmartRef__":true,"id":694},"chunkOwner":{"__isSmartRef__":true,"id":679},"storedString":"and ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"694":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"695":{"_id":"_92155","style":{"__isSmartRef__":true,"id":696},"chunkOwner":{"__isSmartRef__":true,"id":679},"storedString":"volts ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"696":{"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"697":{"_id":"_92160","style":{"__isSmartRef__":true,"id":698},"chunkOwner":{"__isSmartRef__":true,"id":679},"storedString":"directly in the parts, and the simulation will update.\n\nThis simulation uses an older syntax in its implementation, because it is written in plain JS files instead of the ObjectEditor. The implementation is ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"698":{"italics":"normal","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"699":{"_id":"_93240","style":{"__isSmartRef__":true,"id":700},"chunkOwner":{"__isSmartRef__":true,"id":679},"storedString":"here","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"700":{"italics":"normal","doit":{"__isSmartRef__":true,"id":701},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"701":{"code":"lively.ide.SystemBrowser.browse('users.ohshima.ElectricalComponents')\n\n","context":null},"702":{"_id":"_93606","style":{"__isSmartRef__":true,"id":703},"chunkOwner":{"__isSmartRef__":true,"id":679},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"703":{"italics":"normal","doit":{"__isSmartRef__":true,"id":701},"color":"rgb(0,0,0)","fontFamily":"Arial,sans-serif","fontSize":"19px","fontWeight":"normal","textAlign":"start","backgroundColor":"rgb(235,235,235)","textDecoration":"normal","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"704":{"morph":{"__isSmartRef__":true,"id":679},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"705":{"_BorderRadius":6.12,"_BorderWidth":2.294,"_BorderStyle":"solid","_Opacity":1,"_AppearanceStylingMode":false,"_BorderStylingMode":false,"__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(397.0,433.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(66,66,66)","_Fill":"Color.rgb(235,235,235)"},"706":{"moveHorizontal":false},"707":{"morph":{"__isSmartRef__":true,"id":678},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"708":{"toggleHelpPane":{"__isSmartRef__":true,"id":709}},"709":{"varMapping":{"__isSmartRef__":true,"id":710},"source":"function toggleHelpPane() {\n    var pane = this.helpPane,\n        moveOffset = pane.getExtent().withY(0),\n        steps = 5, timePerStep = 10,\n        btn = this;\n    if (pane.isVisible()) {\n        var dest = pane.getPosition().addPt(moveOffset.negated());\n        pane.animatedInterpolateTo(dest, steps, timePerStep, function() {\n            btn.setLabel('help')\n            pane.setVisible(false)\n            pane.remove();\n        });\n    } else {\n        this.owner.addMorphBack(pane);\n        btn.setLabel('hide')\n        pane.setVisible(true)\n        var dest = pane.getPosition().addPt(moveOffset);\n        pane.animatedInterpolateTo(dest, steps, timePerStep, Functions.Null);\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"710":{"this":{"__isSmartRef__":true,"id":663}},"711":{"user":"timfelgentreff","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Mar 09 2014 16:25:19 GMT+0100 (W. Europe Standard Time)\")"},"712":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_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(45.8,19.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgba(0,0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"713":{"partsSpaceName":"PartsBin/Basic","comment":"A help button that slides open","migrationLevel":8,"partName":"HelpButton","changes":[{"__isSmartRef__":true,"id":714},{"__isSmartRef__":true,"id":715},{"__isSmartRef__":true,"id":716},{"__isSmartRef__":true,"id":717},{"__isSmartRef__":true,"id":718},{"__isSmartRef__":true,"id":719},{"__isSmartRef__":true,"id":720},{"__isSmartRef__":true,"id":721},{"__isSmartRef__":true,"id":722},{"__isSmartRef__":true,"id":723},{"__isSmartRef__":true,"id":724},{"__isSmartRef__":true,"id":725},{"__isSmartRef__":true,"id":726},{"__isSmartRef__":true,"id":727},{"__isSmartRef__":true,"id":728},{"__isSmartRef__":true,"id":729},{"__isSmartRef__":true,"id":730},{"__isSmartRef__":true,"id":731}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Mar 09 2014 16:26:56 GMT+0100 (W. Europe Standard Time)\")"},"714":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jun 21 2013 00:16:24 GMT+0200 (W. Europe Daylight Time)\")"},"715":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 30 2013 09:18:06 GMT+0200 (W. Europe Daylight Time)\")"},"716":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","__serializedExpressions__":["date"],"date":"new Date(\"Wed Jan 23 2013 12:57:18 GMT+0100 (W. Europe Standard Time)\")"},"717":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 15:51:36 GMT+0200 (W. Europe Daylight Time)\")"},"718":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 15:51:30 GMT+0200 (W. Europe Daylight Time)\")"},"719":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 10:53:45 GMT+0100 (W. Europe Standard Time)\")"},"720":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Sat Feb 25 2012 02:59:09 GMT+0100 (W. Europe Standard Time)\")"},"721":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 10:42:26 GMT+0100 (W. Europe Standard Time)\")"},"722":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","__serializedExpressions__":["date"],"date":"new Date(\"Mon Apr 09 2012 13:42:07 GMT+0200 (W. Europe Daylight Time)\")"},"723":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 18 2012 19:35:08 GMT+0200 (W. Europe Daylight Time)\")"},"724":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","__serializedExpressions__":["date"],"date":"new Date(\"Thu Nov 22 2012 10:35:51 GMT+0100 (W. Europe Standard Time)\")"},"725":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 16:42:31 GMT+0100 (W. Europe Standard Time)\")"},"726":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 16:47:05 GMT+0100 (W. Europe Standard Time)\")"},"727":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 30 2013 00:36:50 GMT+0200 (W. Europe Daylight Time)\")"},"728":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","__serializedExpressions__":["date"],"date":"new Date(\"Tue Jun 18 2013 20:49:27 GMT+0200 (W. Europe Daylight Time)\")"},"729":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","__serializedExpressions__":["date"],"date":"new Date(\"Tue Jul 30 2013 08:20:51 GMT+0200 (W. Europe Daylight Time)\")"},"730":{"author":"timfelgentreff","message":"no comment","id":"A43B525E-E3CC-41D8-97E4-E58A746F3ED8","__serializedExpressions__":["date"],"date":"new Date(\"Sun Mar 09 2014 16:26:39 GMT+0100 (W. Europe Standard Time)\")"},"731":{"author":"timfelgentreff","message":"no comment","id":"84D6BB28-A1F4-416B-A773-8BB70F5BD117","__serializedExpressions__":["date"],"date":"new Date(\"Sun Mar 09 2014 16:26:46 GMT+0100 (W. Europe Standard Time)\")"},"732":{"morph":{"__isSmartRef__":true,"id":662},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"733":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":734}},"734":{"test01IsMorph":{"__isSmartRef__":true,"id":735}},"735":{"varMapping":{"__isSmartRef__":true,"id":736},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":737},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"736":{"this":{"__isSmartRef__":true,"id":733}},"737":{},"738":{"_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(1107.0,812.0)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(208,208,208)","_Padding":"lively.rect(0,0,0,0)"},"739":{"partsSpaceName":"users/timfelgentreff/PartsBin/ElectricalCircuits/","comment":"no comment","migrationLevel":8,"partName":"CircuitsDemo","changes":[{"__isSmartRef__":true,"id":740},{"__isSmartRef__":true,"id":741},{"__isSmartRef__":true,"id":742},{"__isSmartRef__":true,"id":743},{"__isSmartRef__":true,"id":744},{"__isSmartRef__":true,"id":745},{"__isSmartRef__":true,"id":746},{"__isSmartRef__":true,"id":747},{"__isSmartRef__":true,"id":748},{"__isSmartRef__":true,"id":749},{"__isSmartRef__":true,"id":750},{"__isSmartRef__":true,"id":751},{"__isSmartRef__":true,"id":752},{"__isSmartRef__":true,"id":753},{"__isSmartRef__":true,"id":754},{"__isSmartRef__":true,"id":755},{"__isSmartRef__":true,"id":756},{"__isSmartRef__":true,"id":757},{"__isSmartRef__":true,"id":758},{"__isSmartRef__":true,"id":759},{"__isSmartRef__":true,"id":760}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Mar 09 2014 16:29:44 GMT+0100 (W. Europe Standard Time)\")"},"740":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jun 21 2013 00:16:24 GMT+0200 (W. Europe Daylight Time)\")"},"741":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 30 2013 09:18:06 GMT+0200 (W. Europe Daylight Time)\")"},"742":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","__serializedExpressions__":["date"],"date":"new Date(\"Wed Jan 23 2013 12:57:18 GMT+0100 (W. Europe Standard Time)\")"},"743":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 15:51:36 GMT+0200 (W. Europe Daylight Time)\")"},"744":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 15:51:30 GMT+0200 (W. Europe Daylight Time)\")"},"745":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 10:53:45 GMT+0100 (W. Europe Standard Time)\")"},"746":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Sat Feb 25 2012 02:59:09 GMT+0100 (W. Europe Standard Time)\")"},"747":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 10:42:26 GMT+0100 (W. Europe Standard Time)\")"},"748":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","__serializedExpressions__":["date"],"date":"new Date(\"Mon Apr 09 2012 13:42:07 GMT+0200 (W. Europe Daylight Time)\")"},"749":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 18 2012 19:35:08 GMT+0200 (W. Europe Daylight Time)\")"},"750":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","__serializedExpressions__":["date"],"date":"new Date(\"Thu Nov 22 2012 10:35:51 GMT+0100 (W. Europe Standard Time)\")"},"751":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 16:42:31 GMT+0100 (W. Europe Standard Time)\")"},"752":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 16:47:05 GMT+0100 (W. Europe Standard Time)\")"},"753":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 30 2013 00:36:50 GMT+0200 (W. Europe Daylight Time)\")"},"754":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","__serializedExpressions__":["date"],"date":"new Date(\"Tue Jun 18 2013 20:49:27 GMT+0200 (W. Europe Daylight Time)\")"},"755":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","__serializedExpressions__":["date"],"date":"new Date(\"Tue Jul 30 2013 08:20:51 GMT+0200 (W. Europe Daylight Time)\")"},"756":{"author":"timfelgentreff","message":"no comment","id":"7C804EB4-560E-4395-9DA1-A1E19E5077FE","__serializedExpressions__":["date"],"date":"new Date(\"Fri Mar 07 2014 11:31:49 GMT+0100 (W. Europe Standard Time)\")"},"757":{"author":"timfelgentreff","message":"no comment","id":"C6F6B941-706B-4161-932F-C9B536EEDB88","__serializedExpressions__":["date"],"date":"new Date(\"Fri Mar 07 2014 12:43:16 GMT+0100 (W. Europe Standard Time)\")"},"758":{"author":"timfelgentreff","message":"no comment","id":"EC8E0D01-4DD7-42EB-A5B6-28A45BC9B417","__serializedExpressions__":["date"],"date":"new Date(\"Sun Mar 09 2014 16:31:24 GMT+0100 (W. Europe Standard Time)\")"},"759":{"__serializedExpressions__":["date"],"author":"timfelgentreff","message":"no comment","id":"FB5C7E37-ACB9-4D0C-8906-17CB0B08DF4A","date":"new Date(\"Mon Mar 10 2014 11:33:30 GMT+0100 (W. Europe Standard Time)\")"},"760":{"__serializedExpressions__":["date"],"author":"timfelgentreff","message":"no comment","id":"FACC8927-A219-46D5-9664-9DB1F05FA8F0","date":"new Date(\"Mon Mar 10 2014 11:34:21 GMT+0100 (W. Europe Standard Time)\")"},"761":{"morph":{"__isSmartRef__":true,"id":41},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"762":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":763}},"763":{"test01IsMorph":{"__isSmartRef__":true,"id":764}},"764":{"varMapping":{"__isSmartRef__":true,"id":765},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"765":{"this":{"__isSmartRef__":true,"id":762}},"766":{},"767":{"adjustForNewBounds":true,"resizeWidth":true,"resizeHeight":true},"768":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":769},"_ClipMode":"visible","derivationIds":["74881687-2861-4431-B08C-22ABB1E5242C","23AE6F0F-CB53-424B-99F2-5957E8E45EDA","F20AF6A6-EED0-4EE4-927B-D796772A83DE"],"id":"EBE2E5A3-8216-4738-996C-5900C519EE41","droppingEnabled":true,"halosEnabled":true,"type":"corner","_StyleClassNames":["Morph","Box","ReframeHandle","reframe-handle corner"],"layout":{"__isSmartRef__":true,"id":770},"owner":{"__isSmartRef__":true,"id":0},"eventHandler":{"__isSmartRef__":true,"id":771},"showsHalos":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.ReframeHandle","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(1100.0,824.0)"},"769":{"__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)"},"770":{"moveVertical":true,"moveHorizontal":true},"771":{"morph":{"__isSmartRef__":true,"id":768},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"772":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":773},"_ClipMode":"visible","derivationIds":["554D421F-F4FE-4646-A5BF-D053A74AE2BC","D1ABA53E-4293-4083-B0E4-DDB1DE34DC5D","AE386F84-9E3E-42EC-B83E-AA173FEE1E02"],"id":"60FFB080-E083-4CDF-9EA3-E9DFA9983097","droppingEnabled":true,"halosEnabled":true,"type":"bottom","_StyleClassNames":["Morph","Box","ReframeHandle","reframe-handle bottom"],"layout":{"__isSmartRef__":true,"id":774},"owner":{"__isSmartRef__":true,"id":0},"eventHandler":{"__isSmartRef__":true,"id":775},"showsHalos":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.ReframeHandle","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,835.0)"},"773":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1100.0,3.0)","_Padding":"lively.rect(0,0,0,0)"},"774":{"moveVertical":true},"775":{"morph":{"__isSmartRef__":true,"id":772},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"776":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":777},"_ClipMode":"visible","derivationIds":["5F8453B4-2876-47DD-81E9-679ACFA91A45","FBED8BBB-C21C-4422-B81C-EC70B0334C56","0BC72E0B-824E-4DD8-B3CC-26D6D1C3AE1C"],"id":"4C68F865-4AF1-4AEC-B8AB-726C9D6EBF17","droppingEnabled":true,"halosEnabled":true,"type":"right","_StyleClassNames":["Morph","Box","ReframeHandle","reframe-handle right"],"layout":{"__isSmartRef__":true,"id":778},"owner":{"__isSmartRef__":true,"id":0},"eventHandler":{"__isSmartRef__":true,"id":779},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.ReframeHandle","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(1111.0,0.0)"},"777":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(3.0,824.0)","_Padding":"lively.rect(0,0,0,0)"},"778":{"moveHorizontal":true},"779":{"morph":{"__isSmartRef__":true,"id":776},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"780":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":false,"_BorderRadius":false,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Padding","_Extent","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Padding":"lively.rect(0,0,0,0)","_Extent":"lively.pt(1114.0,838.0)","_Position":"lively.pt(0.0,0.0)"},"781":{"adjustForNewBounds":true},"782":{"a":1,"b":0,"c":0,"d":1,"e":44,"f":218,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"783":{"a":1,"b":0,"c":0,"d":1,"e":165,"f":152,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"784":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"isSimplifiedRegistry":true}}