Skip to content
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

Resize and rotate handles are too small for large images #878

Open
fweinaug opened this issue Jul 14, 2023 · 1 comment
Open

Resize and rotate handles are too small for large images #878

fweinaug opened this issue Jul 14, 2023 · 1 comment
Labels

Comments

@fweinaug
Copy link

Describe the bug
When editing large pictures (eg. 6000x8000 pixels) the green boxes as resize and rotate handles of all shapes and icons are very small and impossible to use.

Also, when using the drawing tool or adding shapes, icons or text boxes they are by default very small. But that I could solve by providing a scaled strokeWidth/fontSize/width/scale depending on the type.

To Reproduce
Steps to reproduce the behavior:

  1. Edit a large image (eg. 6000x8000)
  2. Add a rectangle or use any other kind of tool
  3. Make sure the rectangle is selected and try to resize or rotate by using the green boxes

Expected behavior
Scale the size of the green boxes based on the image/canvas size. If I see correctly, the size is currently hardcoded to 10.

@fweinaug fweinaug added the Bug label Jul 14, 2023
@zijie-wei
Copy link

现在呢 这个问题解决了吗, 遇到了同样的问题首先可以在 selectionStyle: {
cornerSize: 80, // 控制点的大小
cornerStyle: 'square', // 控制点的形状('circle' 或 'square')
}, 去控制点的大小,但是这有个问题 就是旋转点 和缩放点距离没办法修改不知道怎么去修改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants