What I want to do is take a screenshot using html2canvas.js library but of the whole div not part of it which is only included in the client's view.
What happens with my way of doing it is that it crops me only a part of the div, which is being visibile in the client. For example this Picture1 out of this Picture2. It cuts it based on the view from the browser.
I reasearched and found out that Element.scrollWidth might solve the issue, but it does the same job as trying with Element.clientWidth or with HTMLElement.offsetWidth.
Was using bad version of html canvas, 1.4.0 worked fine and solved my problem https://www.npmjs.com/package/html2canvas https://html2canvas.hertzen.com/dist/html2canvas.min.js