Yeah! That's pretty nice with setting a % value for stroke-width.
But i have a Problem, if i zoom in, the stroke-width is getting bigger
and bigger (as i have it before), so the % solution doesn't help, and i
dont know why =(
i have set: stroke-width="0.1%" (a little bit bigger than 0.01%)
it shows me the stroke with right thickness, but when i zoom into my
world map (only coastlines) the stroke-width dousn't seem to be 0.1%
(its bigger), maybe something isn't right with the viewbox
(viewbox-transform)?
Bruce Rindahl schrieb:
Another approach is to use a % value in the stroke-width attribute of the
SVG. For example, if you specify stroke-width="0.01%" then the line width
will always be the viewBox width * 0.0001 and will resize when ever the view
box changes.
Bruce Rindahl
yes, you could listen to eventlisteners: e.g. SVGZoom and/or SVGResize and
adopt the stroke-width using the DOM and scripting or Java. It would help
if you centrally specify the stroke-width (e.g. in a parent group) in your
original SVG and not for each element. That way you only have to change
the stroke-width once.
Andreas
Hello!
I have loaded a Worldmap (in SVG Format) into a JSVGCanvas.
The map has transparent background and black contour of the Continents.
Is it possible to decrease the thickness of the contour with Batik?
Because
i need it to make the contour-thickness thin when i zoom in
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]