What's wrong with html2canvas screenshots and incomplete screenshots?

for example, my content area is the height of 3000px, but html2canvas can only capture the visual area of the screen.
does any big boss know how to solve it?

Apr.22,2021

Link description


modify the source code: customize width and height
var width = options.width! = null? Options.width: node.ownerDocument.defaultView.innerWidth;

var height = options.height! = null? Options.height: node.ownerDocument.defaultView.innerHeight;
return renderDocument (node.ownerDocument, options, width, height, index). Then (function (canvas) {* *

if (typeof(options.onrendered) === "function") {
    log("options.onrendered is deprecated, html2canvas returns a Promise containing the canvas");
    options.onrendered(canvas);
}
return canvas;

});

call:
var height = $('- sharphtmlcanvas') .outerHeight (true);

     if(height <= 650 || height>=1024){height += 53;}//
     html2canvas($("-sharphtmlcanvas"),{ 
         height:height,
        // window.devicePixelRatio

/ / dpi: 192magnifying pixels (2x) so as not to blur the picture

         dpi: window.devicePixelRatio,
     }).then(function(....)}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e476d1-44c20.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e476d1-44c20.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?