Set a viewBox attribute in the root of the SVG document.
 
<svg viewBox="-200 -200 600 650"/>
 
Michael Bishop

________________________________

From: Saehoon Cheon [mailto:[EMAIL PROTECTED]
Sent: Mon 7/2/2007 6:36 PM
To: batik-users@xmlgraphics.apache.org
Subject: how to set a range in JSVGCANVAS?


Hi,
I set the canvas size (400,450) like this.


svgRoot.setAttributeNS(null, "width", "400");

svgRoot.setAttributeNS(null, "height", "450");

Then, I used scrolllPane like this.


JSVGScrollPane svgScrollPane = new JSVGScrollPane(canvas);


Now how can I show a minus coordinate? For example , I want to draw a text 
located at (-10, 10) in this canvas. 

In this case, I think I need to set a range for the coordinate as well as just 
width and height.
How can I do this?

Thank you in advance.


-- 
Saehoon Cheon
The University of Arizona 
Dept.Electrical and Computer Engineering 

<<winmail.dat>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to