Need help in zooming and panning of inline SVG..
- i have a SVG which is inline in a html document(not in a <object> or <embed> tag).
i want to provide zooming and panning support for it.
i am using SVG translate and scale to zoom and pan.
// code snippet
var k = root.createSVGMatrix().translate(p.x, p.y).scale(z).translate(-p.x, -p.y);
but it is not zooming from mouse position rather it is shifting the svg in one direction.
does anyone have better way of zooming an inline SVG.