diff --git a/README.md b/README.md index bfdb745303..946ce77029 100644 --- a/README.md +++ b/README.md @@ -107,9 +107,10 @@ which we can pre-convert offline from other formats. ```` +## Included Libraries +This project includes the following third-party libraries: +### html2canvas - - - +This project includes `html2canvas`, which is licensed under the MIT License. The compiled binaries are included in the `third_party/html2canvas` directory. The full text of the license is included in the `third_party/html2canvas/LICENSE` file. \ No newline at end of file diff --git a/package.json b/package.json index 8867cc117e..1a96c98d1a 100644 --- a/package.json +++ b/package.json @@ -57,8 +57,7 @@ "dependencies": { "@loaders.gl/core": "^3.2.6", "@loaders.gl/gltf": "^3.2.6", - "@loaders.gl/las": "^3.2.6", - "html2canvas": "^1.4.1" + "@loaders.gl/las": "^3.2.6" }, "devDependencies": { "@babel/core": "^7.18.6", diff --git a/src/viewer/Viewer.js b/src/viewer/Viewer.js index a0a66753dd..6847a19219 100644 --- a/src/viewer/Viewer.js +++ b/src/viewer/Viewer.js @@ -3,7 +3,7 @@ import {CameraFlightAnimation} from "./scene/camera/CameraFlightAnimation.js"; import {CameraControl} from "./scene/CameraControl/CameraControl.js"; import {MetaScene} from "./metadata/MetaScene.js"; import {LocaleService} from "./localization/LocaleService.js"; -import html2canvas from 'html2canvas/dist/html2canvas.esm.js'; +import html2canvas from '../../third_party/html2canvas/dist/html2canvas.esm.js'; /** * The 3D Viewer at the heart of the xeokit SDK. diff --git a/third_party/html2canvas/CHANGELOG.md b/third_party/html2canvas/CHANGELOG.md new file mode 100644 index 0000000000..3e16e58d9f --- /dev/null +++ b/third_party/html2canvas/CHANGELOG.md @@ -0,0 +1,566 @@ +# Changelog + +All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +## [1.4.1](https://github.com/niklasvh/html2canvas/compare/v1.4.0...v1.4.1) (2022-01-22) + + +### deps + +* fix source maps (#2812) ([67c5e8d](https://github.com/niklasvh/html2canvas/commit/67c5e8dec4b2af9260a2b5b75b3399495fd1fee9)), closes [#2812](https://github.com/niklasvh/html2canvas/issues/2812) + +### feat + +* add support for