W3C home > Mailing lists > Public > public-svg-wg@w3.org > July to September 2011

Re: rotated path segment proposal

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 26 Jul 2011 12:06:46 +1200
To: Dirk Schulze <dirk@dschulze.com>
Cc: public-svg-wg@w3.org
Message-ID: <20110726000646.GC10475@wok.mcc.id.au>
Dirk Schulze:
> I just had another thought with the direction of a path. It could be
> possible to take the direction of the path as the rotation level: M0,0
> L100,100 F 100. Forward would continue the direction of the first
> two segments. You'd see a straight line. Means without setting the
> rotation to 45 degree we would take it, since the last point points
> into this direction. But I'm neither sure if it is always possible to
> get the direction, nor if it makes sense.

I guess I wasn’t clear in my earlier messages.  The above is what my
proposal would support. :)  The current rotation for a path segment is
given by the tangent at the end of the preceding path segment.  In
addition, R/r could be used to specify a new current rotation.

For the cases where it’s not possible to get a direction, we already
have definitions in the Implementation Requirements appendix to
determine a direction:

  http://www.w3.org/TR/SVG11/implnote.html#PathElementImplementationNotes

> PS: Should these kind of discussion go to www-svg as well?

Yes, my mistake for sending the initial mail to public-svg-wg. :(

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Tuesday, 26 July 2011 00:07:11 UTC

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