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);
setCTM(g, g.getCTM().multiply(k));
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.
Thanks,
Mukesh
------------------------------------
-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/