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

[css-omview] add a offset Property to the getBoxQuads API #10539

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

[css-omview] add a offset Property to the getBoxQuads API #10539

jogibear9988 opened this issue Jul 8, 2024 · 0 comments

Comments

@jogibear9988
Copy link

The getBoxQuads calculates the transformed corner points of an element, where it is really drawn.
if you want to use these information to draw for example an selection rectangle wich is offset of the element it would be a nice addition to the getBoxQuads API to add an offset property to the options object.
It should be of type DOMQuad, so you could specify an offset for each of the 4 corner points.

I already added this to my polyfill: https://github.com/jogibear9988/getBoxQuadsPolyfill

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