ctx.clearRect ( 0 , 0 , 480 , 480 ); ctx.setTransform(1, 0, 0, 1, 0, 0); var imageObj0 = new Image(); imageObj0.onload = function() { ctx.drawImage(imageObj0, 59.96625, 45.381875, 74.435625, 49.62375); }; imageObj0.src = "https://stemsheets.com/img/e-c-s-f/led.svg"; var imageObj1 = new Image(); imageObj1.onload = function() { ctx.drawImage(imageObj1, 230.64125, 45.381875, 74.435625, 49.62375); }; imageObj1.src = "https://stemsheets.com/img/e-c-s-f/PTM-switch.svg"; var imageObj2 = new Image(); imageObj2.onload = function() { ctx.drawImage(imageObj2, 59.96625, 157.719375, 74.435625, 49.62375); }; imageObj2.src = "https://stemsheets.com/img/e-c-s-f/pnp-trans.svg"; var imageObj3 = new Image(); imageObj3.onload = function() { ctx.drawImage(imageObj3, 230.64125, 157.719375, 74.435625, 49.62375); }; imageObj3.src = "https://stemsheets.com/img/e-c-s-f/ground.svg"; var imageObj4 = new Image(); imageObj4.onload = function() { ctx.drawImage(imageObj4, 59.96625, 270.056875, 74.435625, 49.62375); }; imageObj4.src = "https://stemsheets.com/img/e-c-s-f/opamp.svg"; var imageObj5 = new Image(); imageObj5.onload = function() { ctx.drawImage(imageObj5, 230.64125, 270.056875, 74.435625, 49.62375); }; imageObj5.src = "https://stemsheets.com/img/e-c-s-f/buzzer.svg"; var imageObj6 = new Image(); imageObj6.onload = function() { ctx.drawImage(imageObj6, 59.96625, 382.394375, 74.435625, 49.62375); }; imageObj6.src = "https://stemsheets.com/img/e-c-s-f/transformer.svg"; var imageObj7 = new Image(); imageObj7.onload = function() { ctx.drawImage(imageObj7, 230.64125, 382.394375, 74.435625, 49.62375); }; imageObj7.src = "https://stemsheets.com/img/e-c-s-f/resistor.svg";