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

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

From: Charles Pritchard <chuck@jumis.com>
Date: Tue, 05 Oct 2010 11:10:03 -0700
Message-ID: <4CAB69FB.7050103@jumis.com>
To: Jonathan Watt <jwatt@jwatt.org>
CC: www-dom@w3.org
  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).
> I've uploaded a JavaScript implemented demo of this method here:
>    http://jwatt.org/svg/tmp/mouse-relative-positioning.svg

Do you see this proposal applying to more than just SVG elements?
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?
And if so, will this proposal remain as useful?

Received on Tuesday, 5 October 2010 18:10:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:16 UTC