W3C home > Mailing lists > Public > public-html@w3.org > June 2011

Re: hit testing and retained graphics

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 23 Jun 2011 13:28:32 -0700
Message-ID: <BANLkTimQ-Yw81CiwN3PaWjJs9XON6L-hc76j45-L3ZVZsZ6kww@mail.gmail.com>
To: Richard Schwerdtfeger <schwer@us.ibm.com>
Cc: Cameron McCormack <cam@mcc.id.au>, Charles Pritchard <chuck@jumis.com>, Cynthia Shelly <cyns@microsoft.com>, david.bolter@gmail.com, Frank Olivier <Frank.Olivier@microsoft.com>, Mike@w3.org, public-canvas-api@w3.org, public-html@w3.org, public-html-a11y@w3.org
On Thu, Jun 23, 2011 at 12:56 PM, Richard Schwerdtfeger
<schwer@us.ibm.com> wrote:
>> So normally, I imagine, hit testing would be done either by using
>> isPointInPath() or by custom code looking at a mouse event’s x/y values.
>> I think this proposal doesn’t work with isPointInPath(), though, is that
>> right?
>>
> I think it would but we would need to incorporate Z order and a notion of
> the last drawn element to compute which element is on top. The user agent
> would need to manage this.

You are attempting to recreate a retained-mode API in an
immediate-mode API.  Why is "use SVG" not sufficient for this?

~TJ
Received on Thursday, 23 June 2011 20:29:21 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:45:39 UTC