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

Text tool selection behaviour #2128

Open
0HyperCube opened this issue Dec 4, 2024 · 0 comments
Open

Text tool selection behaviour #2128

0HyperCube opened this issue Dec 4, 2024 · 0 comments

Comments

@0HyperCube
Copy link
Member

Currently selection in the viewport with the text tool is based on a geometry intersection. Since the geometry of the text is usually very intricate, this can be annoying.

The code for selecting existing text is in the fn interact in text_tool.rs. Currently it uses document.click(...). The new functionality would need to replace this with an iteration over the layers (from top to bottom), attempting to get their text node. The bounding box function from to_path.rs would then be applied, which would be transformed by the transform_to_viewport and intersected with the cursor.

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

No branches or pull requests

1 participant