Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getBoxQuads API maybe usable for this component #1126

Open
jogibear9988 opened this issue Jul 26, 2024 · 0 comments
Open

getBoxQuads API maybe usable for this component #1126

jogibear9988 opened this issue Jul 26, 2024 · 0 comments

Comments

@jogibear9988
Copy link

Hello @danish1994 ,
I've worked on a polyfill for the getBoxQuads API(https://github.com/jogibear9988/getBoxQuadsPolyfill).
Info about the API: https://hacks.mozilla.org/2014/03/introducing-the-getboxquads-api/

I needed this API for my designer (https://node-projects.github.io/web-component-designer-demo/index.html), but maybe this could also be usable here.

With this API you could calculate the 4 corner points of an elements, even with complex and nested transformations.
And also you could transform a point into coordinates of another element.
At the moment the polyfill does not work 100% with SVG or MathML, but this is cause of missing offsetLeft/Top properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant