W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2013

Re: [whatwg] [canvas] Proposal isPointInStroke(x, y)

From: Dirk Schulze <dschulze@adobe.com>
Date: Sat, 4 May 2013 17:30:14 -0700
To: Ian Hickson <ian@hixie.ch>
Message-ID: <2FCE46B2-AE3B-40ED-AAF1-CAF03D964617@adobe.com>
Cc: whatwg <whatwg@lists.whatwg.org>, Jeff Muizelaar <jmuizelaar@mozilla.com>, Tobias Schneider <schneider@jancona.com>

On May 4, 2013, at 5:27 PM, Dirk Schulze <dschulze@adobe.com> wrote:

> 
> On May 3, 2013, at 5:10 PM, Ian Hickson <ian@hixie.ch> wrote:
> 
>> On Tue, 13 Nov 2012, Jeff Muizelaar wrote:
>>> 
>>> We have recently implemented isPointInStroke(x,y) in Firefox 
>>> (https://bugzilla.mozilla.org/show_bug.cgi?id=803124). This is a 
>>> parallel to isPointInPath(x,y) and returns true if the point is inside 
>>> the area contained by the stroking of a path. It was easily implemented 
>>> on top of Direct2D, Cairo, Skia, and CoreGraphics and shouldn't be 
>>> difficult for other systems.
>>> 
>>> We implemented this to help support functionality needed for shumway 
>>> (flash on html)
>> 
>> Thanks for the heads-up. This is now in the spec as well.
> 
> Sorry for the late interference. isPointInStroke is implemented in WebKit and Blink for quite some time and should be in release versions already. No objection from this side :)
> 
> I would suggest a third argument:
> 
> 	optional CanvasFillRule fillRule = "nonzero"
> 
> As we have for fill. (This is implemented in WebKit and Blink as well.)

Sorry, the third argument doesn't make sense. I slipped into the wrong line on reading our code.

Dirk

> 
> Greetings,
> Dirk
> 
>> 
>> -- 
>> Ian Hickson               U+1047E                )\._.,--....,'``.    fL
>> http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
>> Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
> 
Received on Sunday, 5 May 2013 00:30:43 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:59 UTC