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

Support transparent rectangles derived from top level HTML/CSS boxes #1

Open
cgrobb opened this issue Feb 23, 2022 · 1 comment
Open

Comments

@cgrobb
Copy link

cgrobb commented Feb 23, 2022

This is to facilitate drawing connecting lines between HTML/CSS box model boxes.

Design Ideas

  • Separate "Automagical" arrow tool
  • Limit the boxes that can be connected to those that are some combo of large, visual (<img>, <video>, etc), semantic (<section>, <article>, <main>), and terminating (have no child elements).
  • Recalc these "Automagical" connecting lines upon browser window/viewport resize
@nimeshnayaju
Copy link
Owner

Hi, this is a really cool idea. I believe tldraw bindings (arrows) have a from and to property that represents the from and to nodes/shapes respectively. So, this might require creating a new ShapeType that represents the HTML elements (img, video, etc.). Not sure what might be the best way to go about it but I'd love to spend more time thinking about it. Thanks for bringing this up!

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

2 participants