Skip to content

How to scale stage by its center #1687

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
@giovanni-bertoncelli
Comment options

Comment options

You must be logged in to vote
1 reply
@giovanni-bertoncelli
Comment options

Answer selected by giovanni-bertoncelli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants