function draw(t, e) { let n = t.get Context("2d"), o = []; var a = 0; e.for Each(t => { let l = new Image(); l.src = t; l.onload = () => { (a += 1) === e.length && function t() { let canvas Width = t.width; let canvas Height = t.height; let total Image Height = 0; for (let e = 0; e < o.length; e++) { total Image Height += o[e].height; } let startY = (canvas Height - total Image Height) / 2; for (let e = 0; e < o.length; e++) { n.draw Image(o[e], 0, startY); start Y += o[e].height; } }(); }; o.push(l);   }); }