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

Ian Hickson ian at hixie.ch
Fri May 3 17:10:36 PDT 2013


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.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list