You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Herman Gábor <g....@flexiton.hu> on 2004/08/09 17:28:21 UTC
JSVGCanvas and viewBox
Hello,
In my application I use the JSVGCanvas componnent to view an SVG document
generated using the batik DOM implementation. I set a viewBox on the root
SVG
element. I would like this box to be visible when the document appears
but the user should be able to see parts of the document outside this
viewBox when he or she zooms out. My problem is that the SVG document is
clipped to the initial viewBox and nothing can be seen outside it when I
zoom out. Does this behaviour correspond to the SVG standard? In the Adobe
SVG Viewer plugin parts outside the viewBox can be seen when I zoom out.
Can I changed this behaviour of JSVGCanvas some way?
Thanks in advance.
Regards,
Gábor Herman
Software Developer
FlexiTon Kft
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Re: JSVGCanvas and viewBox
Posted by Archie Cobbs <ar...@dellroad.org>.
Herman G�bor wrote:
> In my application I use the JSVGCanvas componnent to view an SVG document
> generated using the batik DOM implementation. I set a viewBox on the root
> SVG
> element. I would like this box to be visible when the document appears
> but the user should be able to see parts of the document outside this
> viewBox when he or she zooms out. My problem is that the SVG document is
> clipped to the initial viewBox and nothing can be seen outside it when I
> zoom out. Does this behaviour correspond to the SVG standard? In the Adobe
> SVG Viewer plugin parts outside the viewBox can be seen when I zoom out.
> Can I changed this behaviour of JSVGCanvas some way?
Just a guess.. try adding overflow="visible" to the top level svg element?
-Archie
__________________________________________________________________________
Archie Cobbs * CTO, Awarix * http://www.awarix.com
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org