Re: Specyfing paths with percentages unit.
HelderMagalhaes <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <920de27e-06cd-4c03-a3a8-c0903441a773@p13g2000yqc.googlegroups.com> |
> I want to draw a simple path, but using percentages as units. By looking into path data [1] and specially it's associated BNF [2], it looks as only relative or absolute coordinates (that is, values in user coordinate system) can be used - percentages don't seem to be possible here. > I can easily draw a line using percentage units: > <line x1="10%" y1="90%" x2="100%" y2="90%" stroke="red" stroke- > width="2" /> > > But the same doesn't work with "path" element - why? The line element [3] uses a more broad coordinate [4] meaning. I'm not sure if this is a specification issue, though... :-| > P.S. > Sorry if I hit the wrong group - is there any more suitable then this > one? Yahoo's SVG Developers group [5] is more appropriate for general SVG questions. ;-) Hope this helps, Helder Magalhães [1] http://www.w3.org/TR/SVG/paths.html#PathData [2] http://www.w3.org/TR/SVG/paths.html#PathDataBNF [3] http://www.w3.org/TR/SVG/shapes.html#LineElement [4] http://www.w3.org/TR/SVG/types.html#DataTypeCoordinate [5] http://tech.groups.yahoo.com/group/svg-developers/