- From: Rik Cabanier <cabanier@gmail.com>
- Date: Sat, 15 Jun 2013 19:54:00 -0700
- To: "Dr. Olaf Hoffmann" <Dr.O.Hoffmann@gmx.de>
- Cc: www-svg@w3.org
- Message-ID: <CAGN7qDASQbo4cnQ1+2gtMV-J78kK=hOQN8RCGdKT1bVvwp-fCg@mail.gmail.com>
yes, moveto-moveto-moveto should never result in visible strokes or contribute to some sort of path filling. The exception is markers where this becomes a trick to draw a marker at a certain point. On Sat, Jun 15, 2013 at 4:19 AM, Dr. Olaf Hoffmann <Dr.O.Hoffmann@gmx.de>wrote: > Hello, > > just to avoid misunderstandings. > In the definition of the stroke proptery it is defined, that > "A subpath (see Paths) consisting of a single moveto shall not be stroked." > http://www.w3.org/TR/2011/REC-SVG11-20110816/painting.html#StrokeProperty > > Of course stroke-linecap applies only to stroked subpaths: > "‘stroke-linecap’ specifies the shape to be used at the end of open > subpaths > when they are stroked.' > > http://www.w3.org/TR/2011/REC-SVG11-20110816/painting.html#StrokeLinecapProperty > > > Therefore in the following path only the last subpath results in a visible > presentation, if stroke-linecap is round or square, but not the previous > moves: > d="M50,50m1400,-1200m-500,-200 0,0" > This notation of two or more m-commands can be pretty useful to move > around larger amounts of path data containing only relative commands, > possibly realised with path fragments represented by own entities. > The rule above ensures, that these additional moves have no > visual residuals... > > On the other hand the following path creates three stroked subpaths > of zero length, which become visible, if stroke-linecap is round or > square: > d="M50,50 50,50m1400,-1200 0,0m-500,-200 0,0" > > > Olaf > >
Received on Sunday, 16 June 2013 02:54:27 UTC