W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2012

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

From: Jeff Muizelaar <jmuizelaar@mozilla.com>
Date: Tue, 13 Nov 2012 16:46:38 -0800
Message-Id: <254F3EC3-38AE-4451-921E-02C081968083@mozilla.com>
To: whatwg <whatwg@lists.whatwg.org>
Cc: Tobias Schneider <schneider@jancona.com>
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)

-Jeff
Received on Wednesday, 14 November 2012 01:54:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:11 GMT