Making a block to screenshot snap is pretty easy since Snap uses the HTML5 <canvas>:
const world = document.getElementById('world');
const link = document.createElement('a');
const worldScreenshot = world.toDataURL();
link.setAttribute('href',worldScreenshot);
link.setAttribute('download','Snap_Screenshot.png');
link.click();