RE: absolute coordinates on svg paths

Hi, José-

What you need to do is to establish the units for the entire coordinate
space by setting them in the root. Thus, the basic unit will be the one you
establish in the root element, so you should remove all the units from your
circles, rects, and other shapes.

While it is inconsistent between element types (line, circle, ellipse, and
rect versus polyline, polygon, and path), this is a workable solution. I
don't actually understand why some element types can take units in their
geometric attributes, since this is a confusing duplication. 
 
By the way, this list, www-svg, is an W3C forum to discuss issues with the
SVG Spec. For questions about development details and such, you should post
to the very active,  friendly, and helpful list called SVG-Developers:
http://groups.yahoo.com/group/svg-developers/

Regards-
Doug

doug.schepers@vectoreal.com
www.vectoreal.com ...for scalable solutions.
 


Jose Ignacio Villar wrote:
|
| Hi All,
| 
| Are SVG paths so different to other SVG shapes that you 
| should never preffer specifying units as absolute?
| 
| I'm using it to develope a format translator from Gerber 
| to SVG. Gerber is a vectorial format for printed circuit 
| boards used in electronics. 
| In the file there are rects, circles, etc,...  that 
| represents real life shapes with absolute dimensions in 
| inches and mm.
| I've succed to implement circles, ellipses, ovals rects etc, 
| with SVG built in absolute meassures, but i've found I can't 
| do the same with paths :(. 
| The shapes already implemented with absolute units, appears 
| on the screen with it's real dimension and this is very helpful 
| when previewing your design. Is there any alternative to see 
| on the screen paths with its real dimensions? 
| 
| Thanks for your reply, David ;)
| José Ignacio Villar.
| 
| 

Received on Sunday, 1 January 2006 19:41:06 UTC