Make Text tool use click targets based on rectangles instead of precise glyph shapes
Closed this issue · 1 comments
0HyperCube commented
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.
Nitish-bot commented
commenting here so it can be assigned to me