feat: support selecting multiple points when editing line#4373
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/excalidraw/excalidraw/3Mso4Pwxgt9VJQJ5MTxCtfiijaf4 |
f8b8fbb to
b9c696e
Compare
Yeah, I had to make a decision between adding friction to exiting the editor or making it harder to select points when inside the editor (needing to be careful if the box selection doesn't cover neighboring elements). Since the whole point of being in a line editor to edit the line, I thought the former is more appropriate. This also aligns it with Figma, Affinity etc. I also wanna investigate supporting editing multiple lines at the same time, which would only exacerbate the problem if we allow selecting outside elements. |
I think the behaviour of just allowing multiple points and not any other shape during box selection is fine, but if user tries to interact with any other shape then we should exit the line editor ? |
If you mean exiting the editor on pointerdown, then we can't do that if we wanna support box-selecting the points. Maybe when you box-select no points, but it'd again result a lot of false-positive editor exits. All in all, I'd rather align with the vector-editor standard here. Btw, long-term the line editor is meant to be something you do sparingly. We will add basic support for adding line points outside the editor as well. The line editor will become more of a power-user feature. |

(Reviewable by commits.)