</p><pre><code>html2canvas(document.getElementById('map')).then(canvas => { console.log('canvas=', canvas) let oImg = new Image() oImg.src = canvas.toDataURL() // 导出图片 document.body.appendChild(oImg) // 将生成的图片添加到body })</code></pre> https://segmentfault.com...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
"name": "wxa-plugin-canvas", "version": "1.1.10", "lockfileVersion": 1, "requires": true, "dependencies": { "ansi-escapes": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.4.0.tgz", "integrity": "sha1-06ioOzGapneTZisT52HHkRQiMG...
"integrity" "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==" "resolved" "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz" "version" "0.3.0" "memfs@^3.4.3": "integrity" "sha512-UERzLsxzllchadvbPs5aolHh65...
tsutils "^3.21.0" "@typescript-eslint/experimental-utils@4.33.0": version "4.33.0" resolved "https://mirrors.tencent.com/npm/@typescript-eslint/experimental-utils/-/experimental-utils-4.33.0.tgz" integrity sha512-zeQjOoES5JFjTnAhI5QY7ZviczMzDptls15GFsI6jyUOq0kOf9+WonkhtlIhh0RgHRnqj...
tsutils@^3.21.0: version "3.21.0" resolved "https://mirrors.tencent.com/npm/tsutils/-/tsutils-3.21.0.tgz" integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== dependencies: ...
"integrity": "sha1-TCu8inWJmP7r9e1oWA921GdotLw=", "dev": true, "requires": { "parse-passwd": "^1.0.0" } }, "iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", "integrity": "sha512-v3MXnZAcvnywkTUEZomIA...
master wxa-plugin-canvas/package-lock.json Go to file Go to file T Go to line L Copy path Cannot retrieve contributors at this time 1364 lines (1364 sloc) 45.1 KB Raw Blame { "name": "wxa-plugin-canvas", "version": "1.1.4", "lockfileVersion": 1, "requires": true, "...
tsutils@^3.21.0: version "3.21.0" resolved "https://mirrors.tencent.com/npm/tsutils/-/tsutils-3.21.0.tgz" integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== dependencies: ...
integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== memoize-one@^6.0.0: version "6.0.0" resolved "https://registry.npmjs.org/memoize-one/-/memoize-one-6.0.0.tgz"