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): rotate demo #WIK-14442 #758

Merged
merged 3 commits into from
Feb 22, 2024
Merged

feat(draw): rotate demo #WIK-14442 #758

merged 3 commits into from
Feb 22, 2024

Conversation

MissLixf
Copy link
Collaborator

@MissLixf MissLixf commented Feb 21, 2024

image

Copy link

vercel bot commented Feb 21, 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 22, 2024 1:56am
plait-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 22, 2024 1:56am

@@ -49,5 +49,6 @@ export const drawRectangle = (board: PlaitBoard, rectangle: RectangleClient, opt
const roughSVG = PlaitBoard.getRoughSVG(board);
const rectangleG = roughSVG.rectangle(rectangle.x, rectangle.y, rectangle.width, rectangle.height, options);
setStrokeLinecap(rectangleG, 'round');
setTransformRotate(rectangleG, rectangle, options.angle || 0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

options 里面有 angle 属性?
尽量还是在 draw 层处理旋转

@pubuzhixing8 pubuzhixing8 merged commit 7343e3b into develop Feb 22, 2024
3 checks passed
@pubuzhixing8 pubuzhixing8 deleted the #WIK-14442 branch February 22, 2024 02:06
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