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.
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.