Re: [DOM Level 3 Events] MouseEvent.getCoordsAt(element)

On 05/10/2010 19:10, Charles Pritchard wrote:
>   On 10/5/2010 3:06 AM, Jonathan Watt wrote:
>> Proposal:
>> To make life easier for authors I'd like to propose the addition of a
>> 'getCoordsAt' method to the MouseEvent interface. This method would be passed
>> the element at which the local coordinates of the event are required, and return
>> an object implementing the SVGPoint interface[1] (or a new interface
>> implementing 'x' and 'y' properties).
> Do you see this proposal applying to more than just SVG elements?

Yes. I mentioned CSS-transforms and HTML in my email and in the comments in the
demo's source.

> Something like this would make coordinate management in interactive 
> canvas-based elements easier as well.
> As CSS and SVG become more closely integrated (reintegrated), is it 
> likely that CSS transforms will deprecate existing SVG transformations?

Whether that happens or not, a transform will still exist, so...

> And if so, will this proposal remain as useful?



Received on Tuesday, 5 October 2010 20:48:58 UTC