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>

	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

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


--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.
Received on Thursday, 11 November 2010 20:33:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:29 UTC