W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2010

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

From: Jonathan Watt <jwatt@jwatt.org>
Date: Tue, 05 Oct 2010 21:48:49 +0100
Message-ID: <4CAB8F31.8020700@jwatt.org>
To: Charles Pritchard <chuck@jumis.com>
CC: www-dom@w3.org
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?

...yes.

Jonathan
Received on Tuesday, 5 October 2010 20:48:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:06 GMT