W3C home > Mailing lists > Public > www-svg@w3.org > March 2002

path closing

From: iztok jeras <iztok.jeras@rattus.info>
Date: Wed, 13 Mar 2002 13:53:13 +0100 (CET)
To: www-svg@w3.org
Message-ID: <1016023993.3c8f4bb96e957@webmail.domenca.com>
In the current SVG spec. the only way to close a path is with a straight line.

I propose to add a way for closing with arcs and curves:
- closing a path defines that it\'s last point is the same as the first (within 
a path segment)
- a path may be closed with a curve if there would be no ending point for the 
curve buth a \'z\' that would define the that the end point of the curve is the 
same as the end point of the path segment and the first point of the path 
segment
- than the definition of S,s,T and t should be changed to use the control 
points of the last curve in a path for the first control point

All this can be inplemented with compatibility to SVG 1.0

EXAMPLE:
NOW:
<path class=\"SamplePath\" d=\"M100,200 ... C100,100 250,100 100,200 z\" />
PROPOSED:
<path class=\"SamplePath\" d=\"M100,200 ... C100,100 250,100 z\" />
<path class=\"SamplePath\" d=\"M100,200 ... S100,100 z\" />
...


iztok jeras
www.rattus.info
Received on Wednesday, 13 March 2002 07:53:46 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:21 GMT