JavaScript for panning and zooming an SVG image from the mouse and programmatically.