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

Re: API for Retrieving Stroke Outline?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 10 Nov 2011 09:42:51 -0800
Message-ID: <CAAWBYDA+WNCv4bXnrNFenu1c7n7rW2ftEC-MCyn_avWxECS=WQ@mail.gmail.com>
To: Mike Bostock <mbostock@cs.stanford.edu>
Cc: www-svg <www-svg@w3.org>
On Thu, Nov 10, 2011 at 8:39 AM, Mike Bostock <mbostock@cs.stanford.edu> wrote:
> One feature I occasionally need with visualization is to create a
> polyline with variable line width and stroke color. Since this can't
> (currently) be done with a single polyline or path element, I
> implemented miter joins in Protovis, allowing me to render each
> segment of the polyline as a distinct path element:

Variable stroke widths along a single path has been brought up several
times before, and will likely appear in some form in SVG2.  You can
search the mailing list archives for some recent discussions on it.
Variable colors along the stroke is an interesting case.


> We've already been discussing a text-to-path API [1]. How about a
> stroke-to-path API?

This sort of thing is already present in the Vector Effects spec for
SVG 1.2, which will be migrating into SVG2.

~TJ
Received on Thursday, 10 November 2011 17:43:50 GMT

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