Terry Jia
|
e9d5ce7f3f
|
selection rectangle for vueNodes (#7088)
## Summary
fix: render selection rectangle in DOM layer for Vue nodes mode.
When Vue nodes are enabled, the canvas selection rectangle was being
rendered behind Vue node elements due to DOM stacking order (canvas
layer is below the TransformPane layer).
## Changes
- Adds a new SelectionRectangle.vue component that renders the selection
box as a DOM element
- Places it above the Vue nodes layer so it's always visible during drag
selection
- Skips canvas-based selection rectangle rendering when Vue nodes mode
is active
- Bonus: adds a semi-transparent blue fill style for better visibility
## Screenshots
before
https://github.com/user-attachments/assets/a8ee2ca3-00fd-4fdc-925a-dc9f846f4280
after
https://github.com/user-attachments/assets/66b7f2f5-f0a0-486f-9556-3872d07d65be
One more thing, the following improvement will be live selection,
something like:
https://github.com/user-attachments/assets/05a2b7ea-89b1-4568-bd2a-792f4fc11d8e
but I don't want to increase this PR, so I will send live selection
after this selection rectangle
┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7088-selection-rectangle-for-vueNodes-2bd6d73d3650817aa2e9cf4526f179d8)
by [Unito](https://www.unito.io)
|
2025-12-03 08:26:57 -05:00 |
|