Skip to content

Convenience Center Zoom Function#320

Open
calebmcelroy wants to merge 1 commit intoanvaka:mainfrom
calebmcelroy:zoom-api
Open

Convenience Center Zoom Function#320
calebmcelroy wants to merge 1 commit intoanvaka:mainfrom
calebmcelroy:zoom-api

Conversation

@calebmcelroy
Copy link

I added a function to the API, zoom(ratio: number, smooth?: boolean), which will zoom towards the center of the scene of DOM or SVG. I believe this addresses a common use case, allowing users to build UI buttons without worrying about clientX and clientY when zooming.

@calebmcelroy
Copy link
Author

This is a great package thanks so much your work on this!

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.

1 participant