nhn/tui.image-editor

Resize and rotate handles are too small for large images

fweinaug opened this issue · 1 comments

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.

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