arian / cssmatrix Goto Github PK
View Code? Open in Web Editor NEWCSSMatrix polyfill
Home Page: https://npmjs.org/package/CSSMatrix
CSSMatrix polyfill
Home Page: https://npmjs.org/package/CSSMatrix
I now understand what this code is for (I finally read it) and was thinking:
rotate3d(rx,ry,rz)
matrix
code for 2D operations?Whoa that's alot of stuff :)
This code isn't working, see this fiddle
to be honest, I don't really understand which number corresponds to what transformation in the matrix, but I've noticed when I initialize the matrix without arguments and call .toString on it, it creates this -
matrix3d(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)
instead of:
matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
(notice the sixth 0 in place of 1).
this second matrix is the default matrix from matrix3d generator website - http://ds-overdesign.com/transform/matrix3d.html
which makes me think that it should be the default in this library too.
again, I don't really know, but thought I'd bring it up. thanks.
edit: just realized I was initializing it with scale Y value of 0. ๐
I need something to quickly build matrix / matrix3d or decompose them into pieces, can this code do all that? If yes, please write a 2-3 rows example.
Thanks
Hi there, the trouble maker again. I've encountered an issue with rotations of multiples of 360.
I also posted a question on stackoverflow. Meanwhile I found that there could be a workaround.
Please have a look.
I noticed this library has no license, and I was wondering if you would be open to adding one. If you don't mind, I'd like to add the MIT license. Thoughts?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.