function loadChip(){ chip = new Component("main",true,'{"type":"main","inputs":1,"pins":[0,0],"subComponents":["not"],"positions":[{"x":300,"y":178}],"wires":[{"source":{"component":0,"pin":0},"destination":{"component":1,"pin":0},"wireId":0},{"source":{"component":1,"pin":1},"destination":{"component":0,"pin":1},"wireId":1}]}'); setTimeout(function(){ wireVisuals = JSON.parse( '[{"wireId":0,"path":[{"component":1,"pin":0,"shift":false,"rev":-1},{"component":0,"pin":0,"shift":false,"offset":0}]},{"wireId":1,"path":[{"component":1,"pin":1,"shift":false,"rev":1},{"component":0,"pin":1,"shift":false,"offset":0}]}]'); },50); }