Skip to content

Commit

Permalink
feat: pick line add pickPadding
Browse files Browse the repository at this point in the history
  • Loading branch information
neuqzxy committed Jan 7, 2025
1 parent 14fcf37 commit 1848cf8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,8 @@ export class TransformController extends AbstractComponent<Required<ControllerAt
{ x: item[0] * width, y: item[1] * height },
{ x: item[2] * width, y: item[3] * height }
],
pickStrokeBuffer: 2,
boundsPadding: 1,
cursor,
...resizeBorder
},
Expand Down Expand Up @@ -942,6 +944,7 @@ export class TransformController extends AbstractComponent<Required<ControllerAt
}

// 从吸附到未吸附,将实际的bounds重置回去
// TODO x和y都分两边,如果有一边已经吸附,那就不生效
if (!_snappedX) {
out.x = this._actualSnapBounds.x1;
out.width = this._actualSnapBounds.width();
Expand Down

0 comments on commit 1848cf8

Please sign in to comment.