W3C home > Mailing lists > Public > public-svg-wg@w3.org > April to June 2008

Re: Normalizing a 'z' or 'Z' command

From: Erik Dahlström <ed@opera.com>
Date: Thu, 08 May 2008 09:23:20 +0200
To: "Andreas Neumann" <a.neumann@carto.net>, "public-svg-wg@w3.org" <public-svg-wg@w3.org>
Message-ID: <op.uatqs6qdgqiacl@gnorps.palace.opera.no>

On Thu, 08 May 2008 08:38:11 +0200, Andreas Neumann <a.neumann@carto.net>  

> Hi,
> I would also vote against normalizing the close (z|Z) case with a lineto
> command.
> In the spec it says "When a subpath ends in a 'closepath', it differs in
> behavior from what happens when "manually" closing a subpath via a
> 'lineto' command in how 'stroke-linejoin' and 'stroke-linecap' are
> implemented." [1]

Maybe I wasn't clear enough, I meant a close might be normalized as either  
just close (if the current position is equal to the subpath start  
position), or as a lineto (to the subpath starting position) followed by a  
close. That way a normalized close would mean just "join the path", not  
"draw a line to the subpath start position if current position isn't equal  
to subpath start position, then join the path".

But like I wrote before, I'm fine with normalizing close to be just close.  
I just wanted to clarify what I meant.

Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed
Received on Thursday, 8 May 2008 07:22:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:20:08 UTC