-
-
Notifications
You must be signed in to change notification settings - Fork 415
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(edgeless): support rotating shapes #2931
feat(edgeless): support rotating shapes #2931
Conversation
This branch is running in CodeSandbox. Use the links below to review this PR faster. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
c700db0
to
422c3b1
Compare
|
||
color: string; | ||
} | ||
|
||
export const DebugElementDefaultProps: IElementDefaultProps<'debug'> = { | ||
type: 'debug', | ||
xywh: '[0,0,0,0]', | ||
rotate: 0, |
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.
I think using xywhr
that packs rotate value may be a better choice.
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.
Well, we can add rotate at the end.
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.
I think we can consider adding the matrix
, width
height
fields.
@@ -9,26 +9,31 @@ import type { ShapeMethods } from '../types.js'; | |||
export const DiamondMethods: ShapeMethods = { | |||
render( | |||
ctx: CanvasRenderingContext2D, | |||
matrix: DOMMatrix, |
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.
@Flrande are there render
methods still being used after you switch to roughjs?
* master: feat: update edgeless toolbar ui and zoom bar position (toeverything#3281)
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.
Thanks for fixing all the test cases!
With this landed, I'd suggest postpone new arch-refactoring-required features in edgeless mode for a while. We need to focus on bug fixes and housekeepings in the next stage.
close #2608
update hover-rectflip shapesremoved this featureScreen.Recording.2023-06-21.at.2.48.16.AM.mov
Screen.Recording.2023-06-21.at.5.19.09.AM.mov
Screen.Recording.2023-06-23.at.12.06.36.PM.mov