W3C home > Mailing lists > Public > public-svg-wg@w3.org > October to December 2008

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

From: SVG Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Mon, 15 Dec 2008 03:33:03 +0000 (GMT)
To: public-svg-wg@w3.org
Message-Id: <20081215033303.D9DFEC6DB6@barney.w3.org>


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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 15 December 2008 03:33:17 GMT