{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1},{"__isSmartRef__":true,"id":16},{"__isSmartRef__":true,"id":37}],"scripts":[],"shape":{"__isSmartRef__":true,"id":58},"_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"],"id":"46D0AE38-E0F5-4899-B824-A4AF446772CA","droppingEnabled":false,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":59},"name":"Resistor","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":60},"magnets":[],"isLockOwner":true,"component":{"__isSmartRef__":true,"id":63},"__serializedExpressions__":["distanceToDragEvent","_Position"],"_Scale":1,"_Rotation":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":64},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","withoutLayers":["Global.lively.morphic.GrabbingLayer"],"distanceToDragEvent":"lively.pt(57.0,-13.0)","_Position":"lively.pt(0.0,0.0)"},"1":{"submorphs":[],"scripts":[],"id":"7C7CCE8C-09B4-4B02-9492-E4B3E2077A11","shape":{"__isSmartRef__":true,"id":2},"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":3},"textChunks":[{"__isSmartRef__":true,"id":11}],"charsReplaced":"2","lastFindLoc":3,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":13},"_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"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":0},"magnets":[],"isLockOwner":false,"attributeConnections":[{"__isSmartRef__":true,"id":14}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"textString":"100 ohms","previousSelection":[8,8],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-4.7,32.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(43.0,-18.6)"},"2":{"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,-13.0)","_Extent":"lively.pt(94.7,26.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4},{"__isSmartRef__":true,"id":5},{"__isSmartRef__":true,"id":6},{"__isSmartRef__":true,"id":7},{"__isSmartRef__":true,"id":8},{"__isSmartRef__":true,"id":9},{"__isSmartRef__":true,"id":10}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"4":{"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62","__serializedExpressions__":["date"],"date":"new Date(\"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)\")"},"5":{"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194","__serializedExpressions__":["date"],"date":"new Date(\"Tue May 08 2012 05:18:18 GMT-0700 (PDT)\")"},"6":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9","__serializedExpressions__":["date"],"date":"new Date(\"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)\")"},"7":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF","__serializedExpressions__":["date"],"date":"new Date(\"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)\")"},"8":{"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(\"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)\")"},"9":{"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)\")"},"10":{"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598","__serializedExpressions__":["date"],"date":"new Date(\"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)\")"},"11":{"style":{"__isSmartRef__":true,"id":12},"chunkOwner":{"__isSmartRef__":true,"id":1},"_id":"_3","storedString":"100 ohms","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13":{"morph":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14":{"sourceObj":{"__isSmartRef__":true,"id":1},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"valueChanged","varMapping":{"__isSmartRef__":true,"id":15},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"15":{"source":{"__isSmartRef__":true,"id":1},"target":{"__isSmartRef__":true,"id":0}},"16":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17},"id":"09BBCA1B-195F-432E-A4FF-942DCA6C64D3","eventHandler":{"__isSmartRef__":true,"id":18},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":19},"name":"Lead2","partsBinMetaInfo":{"__isSmartRef__":true,"id":20},"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"],"_ClipMode":"visible","isBeingDragged":false,"grabbingEnabled":false,"magnets":[],"lead":{"__isSmartRef__":true,"id":25},"isLockOwner":false,"__serializedExpressions__":["distanceToDragEvent","_Position"],"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(39.5,-14.3)","_Position":"lively.pt(62.5,-2.7)"},"17":{"_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)"},"18":{"morph":{"__isSmartRef__":true,"id":16},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19":{},"20":{"partName":"Lead","requiredModules":[],"migrationLevel":8,"partsSpaceName":"PartsBin/Babelsberg/","comment":"A pin for an electric component","changes":[{"__isSmartRef__":true,"id":21},{"__isSmartRef__":true,"id":22},{"__isSmartRef__":true,"id":23},{"__isSmartRef__":true,"id":24}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Fri Nov 15 2013 13:29:34 GMT-0800 (PST)\")"},"21":{"author":"robertkrahn","message":"no comment","id":"EE799F0E-9E4A-4AF8-98F7-DAEF09F6A8DC","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 15 2013 11:22:02 GMT-0800 (PST)\")"},"22":{"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 00:08:08 GMT-0700 (PDT)\")"},"23":{"author":null,"message":"no comment","id":"8081E212-F627-4DBF-A925-E884B7F401F7","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jul 12 2013 12:14:02 GMT-0700 (PDT)\")"},"24":{"author":null,"message":"no comment","id":"5011462C-F3D3-4806-A629-C6A0FADEC868","__serializedExpressions__":["date"],"date":"new Date(\"Fri Nov 15 2013 13:29:34 GMT-0800 (PST)\")"},"25":{"voltage":0,"current":0,"$1$1current":0,"$1$1voltage":0,"__LivelyClassName__":"users.ohshima.ElectricalComponents.Lead","__SourceModuleName__":"Global.users.ohshima.ElectricalComponents"},"26":{"onMouseDown":{"__isSmartRef__":true,"id":27},"connectElectricLead":{"__isSmartRef__":true,"id":34}},"27":{"varMapping":{"__isSmartRef__":true,"id":28},"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":33},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28":{"this":{"__isSmartRef__":true,"id":16},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":29}},"29":{"$super":{"__isSmartRef__":true,"id":30}},"30":{"varMapping":{"__isSmartRef__":true,"id":31},"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":32},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31":{"obj":{"__isSmartRef__":true,"id":16},"name":"onMouseDown"},"32":{},"33":{"user":"AlanBorning","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Nov 15 2013 13:47:02 GMT-0800 (PST)\")"},"34":{"varMapping":{"__isSmartRef__":true,"id":35},"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":36},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35":{"this":{"__isSmartRef__":true,"id":16}},"36":{},"37":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38},"id":"6CE8FC18-31B0-4A72-A9B7-8EEC89711FEB","eventHandler":{"__isSmartRef__":true,"id":39},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":40},"name":"Lead1","partsBinMetaInfo":{"__isSmartRef__":true,"id":41},"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"],"_ClipMode":"visible","isBeingDragged":false,"grabbingEnabled":false,"magnets":[],"lead":{"__isSmartRef__":true,"id":46},"isLockOwner":false,"__serializedExpressions__":["distanceToDragEvent","_Position"],"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":47},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(16.3,-11.4)","_Position":"lively.pt(-69.9,-0.6)"},"38":{"_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)"},"39":{"morph":{"__isSmartRef__":true,"id":37},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40":{},"41":{"partName":"Lead","requiredModules":[],"migrationLevel":8,"partsSpaceName":"PartsBin/Babelsberg/","comment":"A pin for an electric component","changes":[{"__isSmartRef__":true,"id":42},{"__isSmartRef__":true,"id":43},{"__isSmartRef__":true,"id":44},{"__isSmartRef__":true,"id":45}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Fri Nov 15 2013 13:29:34 GMT-0800 (PST)\")"},"42":{"author":"robertkrahn","message":"no comment","id":"EE799F0E-9E4A-4AF8-98F7-DAEF09F6A8DC","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 15 2013 11:22:02 GMT-0800 (PST)\")"},"43":{"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 00:08:08 GMT-0700 (PDT)\")"},"44":{"author":null,"message":"no comment","id":"8081E212-F627-4DBF-A925-E884B7F401F7","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jul 12 2013 12:14:02 GMT-0700 (PDT)\")"},"45":{"author":null,"message":"no comment","id":"5011462C-F3D3-4806-A629-C6A0FADEC868","__serializedExpressions__":["date"],"date":"new Date(\"Fri Nov 15 2013 13:29:34 GMT-0800 (PST)\")"},"46":{"voltage":0,"current":0,"$1$1current":0,"$1$1voltage":0,"__LivelyClassName__":"users.ohshima.ElectricalComponents.Lead","__SourceModuleName__":"Global.users.ohshima.ElectricalComponents"},"47":{"onMouseDown":{"__isSmartRef__":true,"id":48},"connectElectricLead":{"__isSmartRef__":true,"id":55}},"48":{"varMapping":{"__isSmartRef__":true,"id":49},"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":54},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"49":{"this":{"__isSmartRef__":true,"id":37},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":50}},"50":{"$super":{"__isSmartRef__":true,"id":51}},"51":{"varMapping":{"__isSmartRef__":true,"id":52},"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":53},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"52":{"obj":{"__isSmartRef__":true,"id":37},"name":"onMouseDown"},"53":{},"54":{"user":"AlanBorning","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Nov 15 2013 13:47:02 GMT-0800 (PST)\")"},"55":{"varMapping":{"__isSmartRef__":true,"id":56},"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":57},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"56":{"this":{"__isSmartRef__":true,"id":37}},"57":{},"58":{"_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)"},"59":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"60":{"partName":"Resistor","requiredModules":["users.ohshima.ElectricalComponents"],"partsSpaceName":"PartsBin/ElectricalComponents/","migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"comment":"no comment","changes":[{"__isSmartRef__":true,"id":61},{"__isSmartRef__":true,"id":62}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Dec 04 2013 15:45:51 GMT-0800 (PST)\")"},"61":{"__serializedExpressions__":["date"],"author":"robertkrahn","message":"no comment","id":"63723B21-C1C2-4737-AA36-0FC9C7AF0D88","date":"new Date(\"Mon Dec 09 2013 15:42:44 GMT-0800 (PST)\")"},"62":{"__serializedExpressions__":["date"],"author":"robertkrahn","message":"no comment","id":"D2AD4E3F-1F2F-41B9-9DF0-A0699ED442C0","date":"new Date(\"Mon Dec 09 2013 16:41:32 GMT-0800 (PST)\")"},"63":{"lead1":{"__isSmartRef__":true,"id":46},"lead2":{"__isSmartRef__":true,"id":25},"$1$1lead1":{"__isSmartRef__":true,"id":46},"$1$1lead2":{"__isSmartRef__":true,"id":25},"resistance":100,"__LivelyClassName__":"users.ohshima.ElectricalComponents.Resistor","__SourceModuleName__":"Global.users.ohshima.ElectricalComponents"},"64":{"onLeadConnected":{"__isSmartRef__":true,"id":65},"setupComponent":{"__isSmartRef__":true,"id":68},"reset":{"__isSmartRef__":true,"id":71},"valueChanged":{"__isSmartRef__":true,"id":74}},"65":{"varMapping":{"__isSmartRef__":true,"id":66},"source":"function onLeadConnected(myLead,otherLead) {\n     this.owner.connectLeads(myLead, otherLead);\n}","funcProperties":{"__isSmartRef__":true,"id":67},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"66":{"this":{"__isSmartRef__":true,"id":0}},"67":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Wed Dec 04 2013 15:30:42 GMT-0800 (PST)\")"},"68":{"varMapping":{"__isSmartRef__":true,"id":69},"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":70},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"69":{"this":{"__isSmartRef__":true,"id":0}},"70":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Wed Dec 04 2013 15:30:42 GMT-0800 (PST)\")"},"71":{"varMapping":{"__isSmartRef__":true,"id":72},"source":"function reset() {\n        this.getPartsBinMetaInfo().addRequiredModule('users.ohshima.ElectricalComponents');\n    }","funcProperties":{"__isSmartRef__":true,"id":73},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"72":{"this":{"__isSmartRef__":true,"id":0}},"73":{},"74":{"varMapping":{"__isSmartRef__":true,"id":75},"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":76},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"75":{"this":{"__isSmartRef__":true,"id":0}},"76":{},"isSimplifiedRegistry":true}}