From 3694fbea39aac1815256951bcd30410b908661db Mon Sep 17 00:00:00 2001 From: Michal Dybizbanski Date: Wed, 3 Jul 2024 15:14:56 +0200 Subject: [PATCH] XEOK-49 Include html2canvas as a part of the repository --- README.md | 7 +- package.json | 3 +- src/viewer/Viewer.js | 2 +- third_party/html2canvas/CHANGELOG.md | 566 ++ third_party/html2canvas/LICENSE | 22 + third_party/html2canvas/README.md | 73 + .../html2canvas/dist/html2canvas.esm.js | 7822 ++++++++++++++++ .../html2canvas/dist/html2canvas.esm.js.map | 1 + third_party/html2canvas/dist/html2canvas.js | 7830 +++++++++++++++++ .../html2canvas/dist/html2canvas.js.map | 1 + .../html2canvas/dist/html2canvas.min.js | 20 + third_party/html2canvas/package.json | 124 + third_party/html2canvas/tsconfig.json | 21 + 13 files changed, 16486 insertions(+), 6 deletions(-) create mode 100644 third_party/html2canvas/CHANGELOG.md create mode 100644 third_party/html2canvas/LICENSE create mode 100644 third_party/html2canvas/README.md create mode 100644 third_party/html2canvas/dist/html2canvas.esm.js create mode 100644 third_party/html2canvas/dist/html2canvas.esm.js.map create mode 100644 third_party/html2canvas/dist/html2canvas.js create mode 100644 third_party/html2canvas/dist/html2canvas.js.map create mode 100644 third_party/html2canvas/dist/html2canvas.min.js create mode 100644 third_party/html2canvas/package.json create mode 100644 third_party/html2canvas/tsconfig.json 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