-
Notifications
You must be signed in to change notification settings - Fork 17
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(draw): support rotate resize #WIK-14735 #773
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
return movePointByZoomAndOriginPoint(p, originPoint, resizeAlignRef.xZoom, resizeAlignRef.yZoom); | ||
}) as [Point, Point]; | ||
const adjustTargetPoints = points.map(p => [ | ||
p[0] + bulkRotationRef!.offsetX, |
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.
不需要加 ! 号,前面有 if 判断
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.
const { originPoint, handlePoint } = getResizeOriginPointAndHandlePoint(board, resizeRef); | ||
const angle = getSelectionAngle(resizeRef.element); | ||
let bulkRotationRef: BulkRotationRef | undefined; | ||
if (angle) { |
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.
这里的三个判断可以写在一起
No description provided.