ISSUE-2182 (new evt x/y): Consider adding new interface for easier use of positional properties [SVG Core 2.0]

ISSUE-2182 (new evt x/y): Consider adding new interface for easier use of positional properties [SVG Core 2.0]

http://www.w3.org/Graphics/SVG/WG/track/issues/2182

Raised by: Doug Schepers
On product: SVG Core 2.0

One of the most common hard problems that SVG authors face is getting the absolute coordinate position of an event, adjusting for transformations, nested SVGs, and viewBox factors.

I suggest a new interface on 'event', getPosition(), which would have as properties the adjusted x and y, the CTM, and the other factors that went into the calculation. 

This would make creating related content much easier (things like drag&drop code, map coords, etc.).

Received on Monday, 17 November 2008 09:27:36 UTC