W3C home > Mailing lists > Public > www-style@w3.org > May 2014

[geometry] Add matrixTransform to DOMPoint

From: Dirk Schulze <dschulze@adobe.com>
Date: Thu, 22 May 2014 08:54:30 +0000
To: FX <public-fx@w3.org>, www-style <www-style@w3.org>
Message-ID: <EB7D0765-CE64-418A-BA75-BACD8CFA3FF2@adobe.com>

SVG has an interface SVGPoint which will be an alias for DOMPoint with Geometry Interfaces. However, SVGPoint has a method called matrixTransform [1]:

interface SVGPoint {
	SVGPoint matrixTransform(SVGMatrix);

(SVGMatrix is an alias to DOMMatrix.)

matrixTransform is not part of DOMPoint yet. I plan to add it to DOMPointReadOnly to be compatible with SVGPoint. The method is actually used by JS libraries such as d3.js which makes it (more or less) an integral part of the web platform. The function will look like:

interface DOMPointReadOnly {
	DOMPoint matrixTransform(DOMMatrixReadOnly);

Please reply if you object to the change.

Note: DOMMatrix has a similar functionality called transformPoint(DOMPointInit) which take a DOMPointInit dictionary such as {x: 0, y: 0, z: 0}. I believe that this is a valid functionality as well. We expect authors to use dictionaries more often in the future.


[1] http://dev.w3.org/fxtf/geometry/#issue-c1e303d0
Received on Thursday, 22 May 2014 08:55:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:42 UTC