getBoxQuads-API - Transform a 3d point into 2D
Hello, maybe here someone can help me.
I'm currently workin on a polyfill for the getBoxQuads API (see https://github.com/jogibear9988/getBoxQuadsPolyfill). My problem now is, it's working for 2D transforms, but not for 3d. Anyone here, who knows how a browser transforms 3d-points to the 2d view?
On my sample page you see some wrongly calculated overlays: https://jogibear9988.github.io/getBoxQuadsPolyfill/
In the screenshots you see, chrome with my polyfill and the wrong overlays, firefox with a native working implementation.
here I tried some things: https://github.com/jogibear9988/getBoxQuadsPolyfill/commit/856fd111f14a496b77f6b2e2633876efab48911b
Someone a little bit more information?
Also found a few specs:
https://drafts.csswg.org/css-transforms-2/#3d-rendering-contexts
but couldn't get it fixed atm


0 Replies