canvas size #57
Unanswered
fangyuanAI
asked this question in
Q&A
Replies: 1 comment
-
|
Hey! You can add a button to control the canvas size by updating the width and height while maintaining the aspect ratio. You can adjust the state values and rerender the canvas accordingly using these references: canva-clone/src/features/editor/hooks/use-editor.ts Lines 589 to 590 in 5532e39 canva-clone/src/features/editor/hooks/use-editor.ts Lines 697 to 698 in 5532e39 Let me know if you'd like more details! 😊 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to create a button that control canvas size and height-width ratio. How can i start?
Beta Was this translation helpful? Give feedback.
All reactions