Skip to content

How to scale stage by its center #1687

Answered by BASEFlyer
ghost asked this question in Q&A
Dec 15, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

https://konvajs.org/docs/sandbox/Zooming_Relative_To_Pointer.html

Use this as an example, just replace mouse position for center of canvas.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant