You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
intext_tool.rs
. Currently it usesdocument.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 fromto_path.rs
would then be applied, which would be transformed by thetransform_to_viewport
and intersected with the cursor.The text was updated successfully, but these errors were encountered: