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

feat(draw): render align lines #WIK-14486 #750

Merged
merged 6 commits into from
Feb 6, 2024
Merged

Conversation

huanhuanwa
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Feb 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
plait ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2024 10:12am
plait-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2024 10:12am

@@ -44,7 +44,7 @@ export function getResizeAlignRef(
activeRectangle,
originPoint,
handlePoint,
directionFactors: [getDirectionFactorByVectorComponent(x), getDirectionFactorByVectorComponent(y)],
directionFactors: [getDirectionFactorByVectorComponent(x) as DirectionFactor, getDirectionFactorByVectorComponent(y) as DirectionFactor],
Copy link
Collaborator

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 {
Copy link
Collaborator

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[][] = [];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

类型:[Point, Point][]

@pubuzhixing8 pubuzhixing8 merged commit 51953bc into develop Feb 6, 2024
3 checks passed
@pubuzhixing8 pubuzhixing8 deleted the w/WIK-14487 branch February 6, 2024 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants