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

  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:

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