I'm using fabric.js to draw elements on canvas,
I've used canvas.setZoom() and canvas.getZoom() to resize canvas,
I've also used a pan through canvas.relativePan().
I want to export the elements of the canvas as an image but the export function only exports the elements which are on the screen. Elements which are panned out of the canvas or zoomed in to a point that are no more visible in the current view are not exported.
I tried looping through the elements to get min (top and left) point and max (width, height) point and export toDataURL using these parameters but I still can't get the hidden elements.
Is it possible to export the image without modfiying the zoom and pan parameters?