-
Notifications
You must be signed in to change notification settings - Fork 289
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
Draw correct overlay for transformed elements (use getBoxQuads) #639
Comments
@argyleink would it be interesting to have it in visbug? should I look to implement it and create a pull req? (If you'd like to see it in action, i us it now in my designer: https://node-projects.github.io/web-component-designer-demo/index.html) |
visbug is definitely interested =) drawing higher accuracy bounding boxes would be super nice. the code for padding boxes, margin boxes and generic bounding boxes gets pretty hairy, but you're welcome to check it out and clean it up with a more modern api! send any questions you have my way, happy to help you and keep you feeling productive in the code. |
the getBoxQuads Api also has functions to transform points, this i use in my sample (https://jogibear9988.github.io/getBoxQuadsPolyfill/) to transform mouse clicks to a untransformed rect, with this adjustments of resize (if needed) should be easy. |
@argyleink I've started to work on this. see: #643 |
looks like you're on track 👍🏻 |
@argyleink |
This would be possible with the getBoxQuads API, I've workin on a polyfill for it: https://github.com/jogibear9988/getBoxQuadsPolyfill
The text was updated successfully, but these errors were encountered: