Re: You Got Your SVG in my Canvas! Mmm, Delicious! (was: hit testing and retained graphics)

Hi Rich,

I'm just trying to optimize for the most common use case – which is, to me, mapping the clickable area to anything that is not transparent. Again, this would not only solve our issues with clicking on semi transparent images, but also countless others, involving GUIs, rounded borders etc. Your proposal is definitely interesting as it seems it would solve more specific cases (I.e. Hitting the red circle on a canvas with a yellow background), but I see it as an addition, not replacement for my proposal. Additionally spec-wise, your proposal looks like a super charged image map, so I would just enhance the image map spec in your case.

Cheers,
Paul

Von: Richard Schwerdtfeger <schwer@us.ibm.com<mailto:schwer@us.ibm.com>>
Datum: Fri, 1 Jul 2011 09:09:04 -0700
An: Paul Bakaus <pbakaus@zynga.com<mailto:pbakaus@zynga.com>>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com<mailto:jackalmage@gmail.com>>, "public-canvas-api@w3.org<mailto:public-canvas-api@w3.org>" <public-canvas-api@w3.org<mailto:public-canvas-api@w3.org>>, "public-canvas-api-request@w3.org<mailto:public-canvas-api-request@w3.org>" <public-canvas-api-request@w3.org<mailto:public-canvas-api-request@w3.org>>, Doug Schepers <schepers@w3.org<mailto:schepers@w3.org>>
Betreff: Re: You Got Your SVG in my Canvas! Mmm, Delicious! (was: hit testing and retained graphics)


Hi Paul,

I need to be able to assign a path on canvas and associate it with a dom element that has the accessibility information. My only reason for using the path to do hit testing and wire the pointer events, when the path is hit, to route the events to that same DOM object was to provide a vehicle to get the bounds of the dom element by providing a vehicle that authors to get hit testing and provide this accessibility aspect for free.

Why would you not be able to create a huge rounded boarder with the path and process the events? Is that you are only interested in a hit on the transparent edges of the path? What happens to you if the mouse event results in a click within the rounded edges of the circle? ... Just trying to understand.

Rich


Rich Schwerdtfeger
CTO Accessibility Software Group

[cid:1__=09BBF253DFCB860C8f9e8a93df938@us.ibm.com]Paul Bakaus ---07/01/2011 03:57:43 AM---Guys, I just wanted to be crystal clear again what our needs are - they're well

From: Paul Bakaus <pbakaus@zynga.com<mailto:pbakaus@zynga.com>>
To: "Tab Atkins Jr." <jackalmage@gmail.com<mailto:jackalmage@gmail.com>>, Richard Schwerdtfeger/Austin/IBM@IBMUS
Cc: "public-canvas-api@w3.org<mailto:public-canvas-api@w3.org>" <public-canvas-api@w3.org<mailto:public-canvas-api@w3.org>>, "public-canvas-api-request@w3.org<mailto:public-canvas-api-request@w3.org>" <public-canvas-api-request@w3.org<mailto:public-canvas-api-request@w3.org>>, Doug Schepers <schepers@w3.org<mailto:schepers@w3.org>>
Date: 07/01/2011 03:57 AM
Subject: Re: You Got Your SVG in my Canvas! Mmm, Delicious! (was: hit testing and retained graphics)
Sent by: public-canvas-api-request@w3.org<mailto:public-canvas-api-request@w3.org>

________________________________



Guys,

I just wanted to be crystal clear again what our needs are - they're well
defined over here:
http://lists.w3.org/Archives/Public/www-svg/2011Apr/0050.html

I would like to solve one problem at hand. I don't want a path. I don't
want to use Canvas. I want to take a DOM element, put "pointer-events:
opacity" on it and have it work. I want to be able to design a GUI with
huge rounded borders and be able to click through the transparent edges at
the borders. This is not just relevant to game devs. I only answered to
this discussion because I thought my proposal might be relevant, when I
read "hit testing" in the message title.

I am *not* trying to solve the accessibility problem for our games at this
time. It's definitely very desired, but not something we can tackle
through tech alone, and it must be well planned.

Am 01.07.11 00:15 schrieb "Tab Atkins Jr." unter <jackalmage@gmail.com<mailto:jackalmage@gmail.com>>:

>On Thu, Jun 30, 2011 at 1:01 PM, Richard Schwerdtfeger
><schwer@us.ibm.com<mailto:schwer@us.ibm.com>> wrote:
>> You are wasting people's time and going around in circles - just like
>>Ian.
>> You know nothing about accessibility and what is important for
>> accessibility.
>
>I'm glad we can have useful and productive discussions. I apologize
>for being dense as concrete, and offering nothing of value. I try my
>best. ;_;
>
>~TJ

Received on Monday, 4 July 2011 07:50:11 UTC