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

Re: API for Retrieving Stroke Outline?

From: Rik Cabanier <cabanier@gmail.com>
Date: Sun, 13 Nov 2011 20:55:38 -0700
Message-ID: <CAGN7qDBp4OYH6YUjC3Fz+pZOdX-mRvqUsPrnHrO-nHJ1Yd=Mnw@mail.gmail.com>
To: Vincent Hardy <vhardy@adobe.com>
Cc: "www-svg@w3.org" <www-svg@w3.org>
Hi Vincent,

SVG has stroke features such as markers and dashing that Canvas does not
have.
The end result of an outlined stroke might also be sensitive to winding
rules. Canvas only seems to implement non-zero winding (and I'm unsure how
well it implements that since it's just a footnote in the spec).

Are you thinking that we should extend canvas or should we make sure that
the 'svg style stroke' is compatible with canvas?

Rik

On Thu, Nov 10, 2011 at 7:29 PM, Vincent Hardy <vhardy@adobe.com> wrote:

> Hi Mike,
>
> I share your interest in having an API for geometry manipulation, I think
> it would be extremely helpful and if we create such an API, I think we
> should be careful to make it work for both Canvas and SVG.
>
> Vincent
>
> > I think Mike is looking for a JavaScript API to get the outlined stroke.
> > The vector effects don't specify how you can do this.
>
> Correct.
>
> Mike
>
>
>
Received on Monday, 14 November 2011 03:56:06 GMT

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