ISSUE-2192 (script-implemented-objects): Consider allowing script to implement certain objects [SVG Core 2.0]

ISSUE-2192 (script-implemented-objects): Consider allowing script to implement certain objects [SVG Core 2.0]

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

Raised by: Cameron McCormack
On product: SVG Core 2.0

It would be convenient to allow certain SVG interface types to be implemented by script.  For example, allowing an SVGRect to be implemented with an ECMAScript object would simplify calls to getIntersectionList():

  svgElement.getIntersectionList({ x: 0, y: 0, width: 100, height: 50 }, e);

SVGPoint and SVGMatrix are more troublesome perhaps, since they have operations on them.  Maybe these datatype interfaces can have constructors, e.g.:

  svgElement.getIntersectionList(new SVGRect(0, 0, 100, 50), e);

Received on Monday, 15 December 2008 03:33:12 UTC