{"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","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"],"id":"FE5C167C-9C7D-46C5-AD4D-D29655DF70DD","droppingEnabled":false,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":59},"name":"Battery","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":60},"magnets":[],"isLockOwner":true,"component":{"__isSmartRef__":true,"id":69},"__serializedExpressions__":["distanceToDragEvent","_Position"],"_Scale":1,"_Rotation":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":70},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","withoutLayers":["Global.lively.morphic.GrabbingLayer"],"distanceToDragEvent":"lively.pt(82.0,-11.0)","_Position":"lively.pt(0.0,0.0)"},"1":{"submorphs":[],"scripts":[],"id":"8ACEB6B5-4FAB-475B-A94B-524C876EAD1A","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":"Voltage","partsBinMetaInfo":{"__isSmartRef__":true,"id":3},"textChunks":[{"__isSmartRef__":true,"id":11}],"charsReplaced":"4","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","1150F6CB-C3EE-4AB0-B44C-C1CCE1285EB9","A4940761-7533-40E4-83F6-94D530C27EDC","DD8A0D2E-B375-4433-808E-88E5A42EF406"],"_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":"16 volts","_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.8,40.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(67.0,-17.0)"},"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(-45.9,-13.0)","_Extent":"lively.pt(91.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":"_5","storedString":"16 volts","__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":"53BD5D6E-9604-49B8-BB45-9305A69294DC","eventHandler":{"__isSmartRef__":true,"id":18},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":19},"name":"Lead1","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","B3B99D86-5006-42F3-97D1-1AA9B61C241E","53C1F276-60C1-4BBB-B05C-93F19ECF24AA","0E8C6F7E-7916-4415-82F6-ABD5021ED6DA"],"_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(34.5,-15.3)","_Position":"lively.pt(-65.5,-4.6)"},"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(-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)"},"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":"32F0F614-0BA7-4877-A08A-470A02560C74","eventHandler":{"__isSmartRef__":true,"id":39},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":40},"name":"Lead2","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","3C29AA6D-8D5E-44FF-94C4-F58CF78069E8","F9C59146-7BA0-4770-8922-70A503437A3D","2631E5A6-F392-4024-86AC-964D73FB6294","F2865DE4-C04F-41BB-B88B-03FB21E7CEE4"],"_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(39.5,-11.3)","_Position":"lively.pt(57.5,-4.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.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)"},"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":16,"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+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)"},"59":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"60":{"partName":"Battery","requiredModules":["users.ohshima.ElectricalComponents"],"partsSpaceName":"PartsBin/ElectricalComponents/","migrationLevel":8,"comment":"Battery","changes":[{"__isSmartRef__":true,"id":61},{"__isSmartRef__":true,"id":62},{"__isSmartRef__":true,"id":63},{"__isSmartRef__":true,"id":64},{"__isSmartRef__":true,"id":65},{"__isSmartRef__":true,"id":66},{"__isSmartRef__":true,"id":67},{"__isSmartRef__":true,"id":68}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Mon Dec 09 2013 16:40:14 GMT-0800 (PST)\")"},"61":{"author":"ohshima","message":"no comment","id":"A9E86C73-E1B0-4AEE-AF25-6724F5BAC4C4","__serializedExpressions__":["date"],"date":"new Date(\"Wed Dec 04 2013 20:06:42 GMT-0800 (PST)\")"},"62":{"__serializedExpressions__":["date"],"author":"robertkrahn","message":"no comment","id":"3F2394CC-CDCB-4697-A877-65CC0F89F9E2","date":"new Date(\"Mon Dec 09 2013 13:52:57 GMT-0800 (PST)\")"},"63":{"__serializedExpressions__":["date"],"author":"robertkrahn","message":"no comment","id":"D5157028-1C13-4FCF-9C2F-05CE2B00DA5E","date":"new Date(\"Mon Dec 09 2013 14:02:00 GMT-0800 (PST)\")"},"64":{"__serializedExpressions__":["date"],"author":"robertkrahn","message":"no comment","id":"6C96A87B-B968-4A65-B1FF-37E2BCC2AEB7","date":"new Date(\"Mon Dec 09 2013 15:43:37 GMT-0800 (PST)\")"},"65":{"__serializedExpressions__":["date"],"author":"robertkrahn","message":"no comment","id":"416969DE-FDCC-47A1-861B-B2A8FFAB79BB","date":"new Date(\"Mon Dec 09 2013 16:35:18 GMT-0800 (PST)\")"},"66":{"__serializedExpressions__":["date"],"author":"robertkrahn","message":"no comment","id":"DAE56EE6-1977-40E5-98BC-E10615320AA8","date":"new Date(\"Mon Dec 09 2013 16:39:25 GMT-0800 (PST)\")"},"67":{"__serializedExpressions__":["date"],"author":"robertkrahn","message":"no comment","id":"368323F0-5902-49DB-9ACE-23AC3E139184","date":"new Date(\"Mon Dec 09 2013 16:40:14 GMT-0800 (PST)\")"},"68":{"__serializedExpressions__":["date"],"author":"robertkrahn","message":"no comment","id":"081FB958-3031-4F27-ADF6-539476C48881","date":"new Date(\"Mon Dec 09 2013 16:41:27 GMT-0800 (PST)\")"},"69":{"lead1":{"__isSmartRef__":true,"id":25},"lead2":{"__isSmartRef__":true,"id":46},"$1$1lead1":{"__isSmartRef__":true,"id":25},"$1$1lead2":{"__isSmartRef__":true,"id":46},"supplyVoltage":16,"__LivelyClassName__":"users.ohshima.ElectricalComponents.Battery","__SourceModuleName__":"Global.users.ohshima.ElectricalComponents"},"70":{"onLeadConnected":{"__isSmartRef__":true,"id":71},"setupComponent":{"__isSmartRef__":true,"id":74},"reset":{"__isSmartRef__":true,"id":77},"valueChanged":{"__isSmartRef__":true,"id":80}},"71":{"varMapping":{"__isSmartRef__":true,"id":72},"source":"function onLeadConnected(myLead,otherLead) {\n    this.owner.connectLeads(myLead, otherLead);\n}","funcProperties":{"__isSmartRef__":true,"id":73},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"72":{"this":{"__isSmartRef__":true,"id":0}},"73":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Wed Dec 04 2013 15:18:45 GMT-0800 (PST)\")"},"74":{"varMapping":{"__isSmartRef__":true,"id":75},"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":76},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"75":{"this":{"__isSmartRef__":true,"id":0}},"76":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Wed Dec 04 2013 15:18:45 GMT-0800 (PST)\")"},"77":{"varMapping":{"__isSmartRef__":true,"id":78},"source":"function reset() {\n        this.getPartsBinMetaInfo().addRequiredModule('users.ohshima.ElectricalComponents');\n    }","funcProperties":{"__isSmartRef__":true,"id":79},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"78":{"this":{"__isSmartRef__":true,"id":0}},"79":{},"80":{"varMapping":{"__isSmartRef__":true,"id":81},"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":82},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"81":{"this":{"__isSmartRef__":true,"id":0}},"82":{},"isSimplifiedRegistry":true}}