-
-
Notifications
You must be signed in to change notification settings - Fork 438
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
feat(edgeless): move selection or shapes with spacebar while dragging like other graphic tools #6219
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
bc9babf
to
f0b8fc7
Compare
This feature looks great to me. But the current edgeless tools API is a little cumbersome and we are likely to simplify this part soon. So a few tests would be better. |
@doouding I have added some tests PTAL. |
Hey, thank you for the continuous follow-up. I also left some comments about the code. You can take a look. |
packages/blocks/src/page-block/edgeless/edgeless-page-service.ts
Outdated
Show resolved
Hide resolved
packages/blocks/src/page-block/edgeless/controllers/tools/shape-tool.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, thanks for contributing!
Feature
Implemented the ability for users to adjust selection or shape positions during creation by holding the spacebar, providing a more intuitive experience reminiscent of tools like Figma.
Extras
Demo
Feature.Preview.mp4