Re: API for Retrieving Stroke Outline?

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 UTC