W3C home > Mailing lists > Public > public-fxtf-archive@w3.org > April 2017

Re: [fxtf-drafts] Consider using Typed Arrays for matrices and static transform operations

From: Simon Pieters via GitHub <sysbot+gh@w3.org>
Date: Tue, 04 Apr 2017 11:32:25 +0000
To: public-fxtf-archive@w3.org
Message-ID: <issue_comment.created-291472901-1491305543-sysbot+gh@w3.org>
This seems interesting but I think we should somehow keep compatibility with web content that uses `WebKitCSSMatrix`. That could be done by renaming `DOMMatrix` to `WebKitCSSMatrix` and specifying a new `DOMMatrix` that just has static operations for typed arrays... or we could add static operations to `DOMMatrix` as well.

`DOMMatrix` currently has `fromFloat32Array()` and `fromFloat64Array()` statics (and corresponding `to*` operations). In your proposal would it return a `Float64Array` if a `Float64Array` is passed in?

-- 
GitHub Notification of comment by zcorpan
Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/123#issuecomment-291472901 using your GitHub account
Received on Tuesday, 4 April 2017 11:32:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 November 2018 00:45:57 UTC