{"versions":{"1.4.2":{"title":"html2canvas","name":"@wtto00/html2canvas","description":"Screenshots with JavaScript","main":"dist/html2canvas.js","module":"dist/html2canvas.esm.js","typings":"dist/types/index.d.ts","browser":"dist/html2canvas.js","version":"1.4.2","author":{"name":"wtto00","email":"wtto00@outlook.com","url":"https://github.com/wtto00"},"engines":{"node":">=8.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/wtto00/html2canvas.git"},"bugs":{"url":"https://github.com/wtto00/html2canvas/issues"},"devDependencies":{"@babel/cli":"^7.4.3","@babel/core":"^7.4.3","@babel/preset-env":"^7.4.3","@babel/preset-flow":"^7.0.0","@rollup/plugin-commonjs":"^19.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-typescript":"^8.2.1","@types/chai":"^4.1.7","@types/express":"^4.17.13","@types/glob":"^7.1.1","@types/jest":"^26.0.24","@types/jest-image-snapshot":"^4.3.1","@types/karma":"^6.3.0","@types/mocha":"^8.2.3","@types/node":"^16.3.1","@types/platform":"^1.3.4","@types/promise-polyfill":"^6.0.3","@typescript-eslint/eslint-plugin":"^4.28.2","@typescript-eslint/parser":"^4.28.2","appium-ios-simulator":"^3.10.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.5","babel-plugin-add-module-exports":"^1.0.2","babel-plugin-dev-expression":"^0.2.1","base64-arraybuffer":"1.0.1","body-parser":"^1.19.0","chai":"4.1.1","chromeless":"^1.5.2","cors":"^2.8.5","es6-promise":"^4.2.8","eslint":"^7.30.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"3.4.0","express":"^4.17.1","filenamify-url":"1.0.0","glob":"7.1.3","html2canvas-proxy":"1.0.1","jest":"^27.0.6","jest-image-snapshot":"^4.5.1","jquery":"^3.5.1","js-polyfills":"^0.1.42","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-edge-launcher":"^0.4.2","karma-firefox-launcher":"^2.1.0","karma-ie-launcher":"^1.0.0","karma-junit-reporter":"^2.0.1","karma-mocha":"^2.0.1","karma-safarinative-launcher":"^1.1.0","karma-sauce-launcher":"^2.0.2","mocha":"^9.0.2","node-simctl":"^5.3.0","platform":"^1.3.6","prettier":"^2.3.2","replace-in-file":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.53.1","rollup-plugin-sourcemaps":"^0.6.3","serve-index":"^1.9.1","slash":"1.0.0","standard-version":"^8.0.2","ts-jest":"^27.0.3","ts-loader":"^8.3.0","ts-node":"^10.1.0","tslib":"^2.3.0","typescript":"^4.3.5","uglify-js":"^3.13.10","uglifyjs-webpack-plugin":"^2.2.0","webpack":"^4.46.0","webpack-cli":"^3.3.12","yargs":"^17.0.1"},"scripts":{"prebuild":"rimraf dist/ && rimraf build/ && mkdirp dist && mkdirp build","build":"tsc --module commonjs && rollup -c rollup.config.ts && npm run build:create-reftest-list && npm run build:testrunner && npm run build:minify","build:testrunner":"rollup -c tests/rollup.config.ts","build:minify":"uglifyjs --compress --comments /^!/ -o dist/html2canvas.min.js --mangle -- dist/html2canvas.js","build:reftest-result-list":"ts-node scripts/create-reftest-result-list.ts","build:create-reftest-list":"ts-node scripts/create-reftest-list.ts tests/reftests/ignore.txt build/reftests.ts","build:reftest-preview":"webpack --config www/webpack.config.js","release":"standard-version","format":"prettier --write \"{src,www/src,tests,scripts}/**/*.ts\"","lint":"eslint src/**/*.ts --max-warnings 0","test":"npm run lint && npm run unittest && npm run karma","unittest":"jest","reftests-diff":"mkdirp tmp/snapshots && jest --roots=tests --testMatch=**/reftest-diff.ts","karma":"ts-node tests/karma","watch":"rollup -c rollup.config.ts -w","watch:unittest":"mocha --require ts-node/register --watch-extensions ts -w src/**/__tests__/*.ts","start":"ts-node tests/server --port=8080 --cors=8081"},"homepage":"https://html2canvas.hertzen.com","license":"MIT","dependencies":{"css-line-break":"^2.1.0","text-segmentation":"^1.0.3"},"gitHead":"5b4ea0e3a86ab5d481d6c5b104691ebc2a3479eb","_id":"@wtto00/html2canvas@1.4.2","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-vku1tqhKnET3/ft3bhfroyZGj2u/skeCRiUQ1s7uumDgJBfPqvs3d/jkTUo6ilIadk5hbWVsH9cyoIh1Rs+5sA==","shasum":"47e6c9322062683174abf39233b930e90d92343b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@wtto00/html2canvas/-/html2canvas-1.4.2.tgz","fileCount":394,"unpackedSize":3408557,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFmMNs2yKjxZDvIf2LF4HgmRu0DLirQVBUD4RXzbDhyVAiAGA71Hr/wy7RIP3gwOYbFg4ySTsljicCF7eFWi87wH8w=="}]},"_npmUser":{"name":"anonymous","email":"wtto00@outlook.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"wtto00@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html2canvas_1.4.2_1692278117965_0.32115119164850325"},"_hasShrinkwrap":false,"contributors":[]},"1.4.3":{"title":"html2canvas","name":"@wtto00/html2canvas","description":"Screenshots with JavaScript","main":"dist/html2canvas.js","module":"dist/html2canvas.esm.js","typings":"dist/types/index.d.ts","browser":"dist/html2canvas.js","version":"1.4.3","author":{"name":"wtto00","email":"wtto00@outlook.com","url":"https://github.com/wtto00"},"engines":{"node":">=8.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/wtto00/html2canvas.git"},"bugs":{"url":"https://github.com/wtto00/html2canvas/issues"},"devDependencies":{"@babel/cli":"^7.4.3","@babel/core":"^7.4.3","@babel/preset-env":"^7.4.3","@babel/preset-flow":"^7.0.0","@rollup/plugin-commonjs":"^19.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-typescript":"^8.2.1","@types/chai":"^4.1.7","@types/express":"^4.17.13","@types/glob":"^7.1.1","@types/jest":"^26.0.24","@types/jest-image-snapshot":"^4.3.1","@types/karma":"^6.3.0","@types/mocha":"^8.2.3","@types/node":"^16.3.1","@types/platform":"^1.3.4","@types/promise-polyfill":"^6.0.3","@typescript-eslint/eslint-plugin":"^4.28.2","@typescript-eslint/parser":"^4.28.2","appium-ios-simulator":"^3.10.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.5","babel-plugin-add-module-exports":"^1.0.2","babel-plugin-dev-expression":"^0.2.1","base64-arraybuffer":"1.0.1","body-parser":"^1.19.0","chai":"4.1.1","chromeless":"^1.5.2","cors":"^2.8.5","es6-promise":"^4.2.8","eslint":"^7.30.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"3.4.0","express":"^4.17.1","filenamify-url":"1.0.0","glob":"7.1.3","html2canvas-proxy":"1.0.1","jest":"^27.0.6","jest-image-snapshot":"^4.5.1","jquery":"^3.5.1","js-polyfills":"^0.1.42","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-edge-launcher":"^0.4.2","karma-firefox-launcher":"^2.1.0","karma-ie-launcher":"^1.0.0","karma-junit-reporter":"^2.0.1","karma-mocha":"^2.0.1","karma-safarinative-launcher":"^1.1.0","karma-sauce-launcher":"^2.0.2","mocha":"^9.0.2","node-simctl":"^5.3.0","platform":"^1.3.6","prettier":"^2.3.2","replace-in-file":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.53.1","rollup-plugin-sourcemaps":"^0.6.3","serve-index":"^1.9.1","slash":"1.0.0","standard-version":"^8.0.2","ts-jest":"^27.0.3","ts-loader":"^8.3.0","ts-node":"^10.1.0","tslib":"^2.3.0","typescript":"^4.3.5","uglify-js":"^3.13.10","uglifyjs-webpack-plugin":"^2.2.0","webpack":"^4.46.0","webpack-cli":"^3.3.12","yargs":"^17.0.1"},"scripts":{"prebuild":"rimraf dist/ && rimraf build/ && mkdirp dist && mkdirp build","build":"tsc --module commonjs && rollup -c rollup.config.ts && npm run build:create-reftest-list && npm run build:testrunner && npm run build:minify","build:testrunner":"rollup -c tests/rollup.config.ts","build:minify":"uglifyjs --compress --comments /^!/ -o dist/html2canvas.min.js --mangle -- dist/html2canvas.js","build:reftest-result-list":"ts-node scripts/create-reftest-result-list.ts","build:create-reftest-list":"ts-node scripts/create-reftest-list.ts tests/reftests/ignore.txt build/reftests.ts","build:reftest-preview":"webpack --config www/webpack.config.js","release":"standard-version","format":"prettier --write \"{src,www/src,tests,scripts}/**/*.ts\"","lint":"eslint src/**/*.ts --max-warnings 0","test":"npm run lint && npm run unittest && npm run karma","unittest":"jest","reftests-diff":"mkdirp tmp/snapshots && jest --roots=tests --testMatch=**/reftest-diff.ts","karma":"ts-node tests/karma","watch":"rollup -c rollup.config.ts -w","watch:unittest":"mocha --require ts-node/register --watch-extensions ts -w src/**/__tests__/*.ts","start":"ts-node tests/server --port=8080 --cors=8081"},"homepage":"https://html2canvas.hertzen.com","license":"MIT","dependencies":{"css-line-break":"^2.1.0","text-segmentation":"^1.0.3"},"gitHead":"3c7c3653dcdc916c158b54bea837888c3363c912","_id":"@wtto00/html2canvas@1.4.3","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-jwsb+xL8N+gjrSNABSaFdxmWtE4c7RNFjP20lo1G7gs63Qqo1phhxVBTzxc/apDVh6LgXsU2l5bwKtXd9uz65w==","shasum":"2f788f26d4be7c0b53900557f5b9090fa06a37a8","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@wtto00/html2canvas/-/html2canvas-1.4.3.tgz","fileCount":394,"unpackedSize":3409544,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkKv+UOkmGLnieDficY3Qvd4rXsiRmI7oh1OeTe615SgIhAM5BSuZVWdnvV+PgijQZaZ7iUnXpr/E7ROxooWYWBmC1"}]},"_npmUser":{"name":"anonymous","email":"wtto00@outlook.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"wtto00@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html2canvas_1.4.3_1695300436203_0.564000866367723"},"_hasShrinkwrap":false,"contributors":[]}},"dist-tags":{"latest":"1.4.3"},"name":"@wtto00/html2canvas","time":{"created":"2023-08-17T13:16:51.537Z","1.4.2":"2023-08-17T13:15:18.221Z","modified":"2023-09-21T12:48:45.196Z","1.4.3":"2023-09-21T12:47:16.513Z"},"readme":"# html2canvas\n\nThis project is a fork of [niklasvh/html2canvas](https://github.com/niklasvh/html2canvas). It fixs some bugs, and adds some features.\n\n-   🌟 Support `object-fit` of `<img/>`\n\nIf this helps you a lot, please buy me a coffee.\n\n<a href=\"https://www.buymeacoffee.com/wtto00\" target=\"_blank\"><img src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" style=\"height: 60px !important;width: 217px !important;\" ></a>\n<a href=\"https://afdian.net/a/wtto00\" target=\"_blank\"><img style=\"height: 60px !important;width: 217px !important;\" src=\"https://pic1.afdiancdn.com/static/img/welcome/button-sponsorme.jpg\" alt=\"sponsorme\"></a >\n\n---\n\n[Homepage](https://wtto00.github.io/html2canvas) | [Downloads](https://github.com/wtto00/html2canvas/releases) | [Questions](https://github.com/wtto00/html2canvas/discussions/categories/q-a)\n\n[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/niklasvh/html2canvas?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)\n![CI](https://github.com/wtto00/html2canvas/workflows/CI/badge.svg?branch=master)\n[![NPM Downloads](https://img.shields.io/npm/dm/@wtto00/html2canvas.svg)](https://www.npmjs.org/package/@wtto00/html2canvas)\n[![NPM Version](https://img.shields.io/npm/v/@wtto00/html2canvas.svg)](https://www.npmjs.org/package/@wtto00/html2canvas)\n\n#### JavaScript HTML renderer\n\nThe script allows you to take \"screenshots\" of webpages or parts of it, directly on the users browser. The screenshot is based on the DOM and as such may not be 100% accurate to the real representation as it does not make an actual screenshot, but builds the screenshot based on the information available on the page.\n\n### How does it work?\n\nThe script renders the current page as a canvas image, by reading the DOM and the different styles applied to the elements.\n\nIt does **not require any rendering from the server**, as the whole image is created on the **client's browser**. However, as it is heavily dependent on the browser, this library is _not suitable_ to be used in nodejs.\nIt doesn't magically circumvent any browser content policy restrictions either, so rendering cross-origin content will require a [proxy](https://github.com/niklasvh/html2canvas/wiki/Proxies) to get the content to the [same origin](http://en.wikipedia.org/wiki/Same_origin_policy).\n\nThe script is still in a **very experimental state**, so I don't recommend using it in a production environment nor start building applications with it yet, as there will be still major changes made.\n\n### Browser compatibility\n\nThe library should work fine on the following browsers (with `Promise` polyfill):\n\n-   Firefox 3.5+\n-   Google Chrome\n-   Opera 12+\n-   IE9+\n-   Safari 6+\n\nAs each CSS property needs to be manually built to be supported, there are a number of properties that are not yet supported.\n\n### Install\n\n```shell\npnpm add @wtto00/html2canvas\n# yarn add @wtto00/html2canvas\n# npm i @wtto00/html2canvas\n```\n\n### Usage\n\nThe html2canvas library utilizes `Promise`s and expects them to be available in the global context. If you wish to\nsupport [older browsers](http://caniuse.com/#search=promise) that do not natively support `Promise`s, please include a polyfill such as\n[es6-promise](https://github.com/jakearchibald/es6-promise) before including `html2canvas`.\n\nTo render an `element` with html2canvas, simply call:\n` html2canvas(element[, options]);`\n\nThe function returns a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) containing the `<canvas>` element. Simply add a promise fulfillment handler to the promise using `then`:\n\n```js\nhtml2canvas(document.body).then(function (canvas) {\n    document.body.appendChild(canvas);\n});\n```\n\n### Building\n\nYou can download ready builds [here](https://github.com/niklasvh/html2canvas/releases).\n\nClone git repository:\n\n```shell\ngit clone git://github.com/wtto00/html2canvas.git\n```\n\nInstall dependencies:\n\n```shell\nnpm install\n```\n\nBuild browser bundle\n\n```shell\nnpm run build\n```\n\n### Examples\n\nFor more information and examples, please visit the [homepage](https://wtto00.github.io/html2canvas) or try the [test console](https://wtto00.github.io/html2canvas/tests/).\n\n### Contributing\n\nIf you wish to contribute to the project, please send the pull requests to the develop branch. Before submitting any changes, try and test that the changes work with all the support browsers. If some CSS property isn't supported or is incomplete, please create appropriate tests for it as well before submitting any code changes.","users":{}}