I'm currently trying to implement the zoom function for a visual editor based on fabricjs-framework .
I looked around, but became more and more confused since I realized that the development of this function / function was a long and rocky road for the community and developers.
Because of this, many solutions seem to be out of date.
But for now, I found a fabric-viewport developed by RTSGroup on Github .
The implementation was simple, but it could only scale / manipulate objects inside (inside) the canvas. Not a canvas either. But I would also like to enlarge the canvas. (inside of the viewport)
To better understand what I'm looking for, I made a simple image explanation:

Is there a way to do this using the fabricjs-viewport plugin or another not outdated solution?
I have already seen some pages that use a viewfinder such as a zoom function with scroll support. But I was not sure if they belong to fabricjs-framework .
Thanks already for every hint and tipp that can lead me in the right direction.
Hi Sasha
source share