-
Notifications
You must be signed in to change notification settings - Fork 11
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): render align lines #WIK-14486 #750
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -44,7 +44,7 @@ export function getResizeAlignRef( | |||
activeRectangle, | |||
originPoint, | |||
handlePoint, | |||
directionFactors: [getDirectionFactorByVectorComponent(x), getDirectionFactorByVectorComponent(y)], | |||
directionFactors: [getDirectionFactorByVectorComponent(x) as DirectionFactor, getDirectionFactorByVectorComponent(y) as DirectionFactor], |
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.
类型应该没问题了呀
alignG: SVGGElement; | ||
} | ||
|
||
export interface ResizeAlignDistance { |
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.
参数能否和 deltaX, deltaY 对应
|
||
drawAlignLines(activePoints: Point[]) { | ||
const activeRectangle = RectangleClient.getRectangleByPoints(activePoints); | ||
let alignLinePoints: number[][] = []; |
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.
类型:[Point, Point][]
No description provided.