Re: [svg-paths] Define normalised path

A path with consecutive "M" commands is a valid path.  If you made this
rule then normalized path would render differently from the original.

Section 8.4.1 of SVG2 says:


   - If markers are specified, then a marker is drawn on every applicable
   vertex, even if the given vertex is the end point of a zero-length path
   segment and even if "moveto" commands follow each other.

In addition, an "M" followed by a "Z" is also a valid path.

Paul

On 2 November 2015 at 12:41, Jarek Foksa <jarek@boxy-svg.com> wrote:

> > It already says this, yes?
> > http://www.w3.org/TR/svg-paths/#InterfaceSVGPathDataSettings
>
>
> The spec only states that the normalized path data must consist from “M”,
> “L”, “C” and “Z” segs. The normalized path might still contain redundant
> data such as multiple subsequent "M" segs. The current definition also
> allows for the normalized subpaths to start with either implicit or
> explicit “M” seg.
>

Received on Monday, 2 November 2015 13:34:59 UTC