W3C home > Mailing lists > Public > www-svg@w3.org > November 2010

Re: Allowing path data to start with any segment type

From: Alex Danilo <alex@abbra.com>
Date: Fri, 12 Nov 2010 07:32:43 +1100
Message-Id: <JEMQBL.48YJ9XFDWFE@abbra.com>
To: Jonathan Watt <jwatt@jwatt.org>
Cc: www-svg <www-svg@w3.org>
Jonathan,

	I think this is an extremely bad idea. Akmnost every graphics language
in the world requires some form of moveto as the first thing when drawing
polylines, paths etc.

	If authors are that silly and don't realize their mistake they need
to RTFM IMHO.

	As an implementer I'd strongly oppose this as it's totally unnecessary.

Alex

--Original Message--:
>The spec currently says that paths must start with a moveto command. I see no
>benefit in that requirement, and it acts as yet another gotcha. For authors who
>happen to want to start their path at {0,0} and assume they can omit the initial
>moveto, it's annoying to find their path is rejected. It's also unhelpful in
>cases when the path should start at a point other than {0,0}; rather than just
>causing the path to start at {0,0} which would provide a clear visual indication
>that the the moveto was forgotten, forgetting the moveto causes the path to fail
>to draw completely, providing no visual cue as to why.
>
>Would anyone have any objections to changing the spec to drop the requirement
>that path data must start with a moveto segment? It would say instead that path
>data that does not start with a moveto command should behave as if it started
>with the segment "M0,0", although such an "implicit" moveto would not appear in
>the DOM of course, since the author did not specify a moveto segment.
>
>Jonathan
>
>
>
Received on Thursday, 11 November 2010 20:33:24 GMT

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