This sample shows how to use Diagram.makeSvg function to render all or part of a diagram and to initiate a file download.