Skip to content

Commit 98d37b9

Browse files
build: install html2canvas-pro
1 parent f56dd81 commit 98d37b9

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"react-dom": ">=16.8"
6565
},
6666
"dependencies": {
67-
"html2canvas": "^1.4.1",
67+
"html2canvas-pro": "^1.5.8",
6868
"jspdf": "^3.0.1"
6969
},
7070
"publishConfig": {

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useRef, useCallback } from "react";
2-
import html2canvas from "html2canvas";
2+
import html2canvas from "html2canvas-pro";
33

44
import Converter from "./converter";
55
import { Options, TargetElementFinder, UsePDFResult } from "./types";

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { MutableRefObject } from "react";
22
import { jsPDFOptions } from "jspdf";
3-
import { Options as Html2CanvasOptions } from "html2canvas";
3+
import { Options as Html2CanvasOptions } from "html2canvas-pro";
44
import { Margin, Resolution } from "./constants";
55

66
export type DetailedMargin = {

yarn.lock

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3176,7 +3176,15 @@ html-encoding-sniffer@^4.0.0:
31763176
dependencies:
31773177
whatwg-encoding "^3.1.1"
31783178

3179-
html2canvas@^1.0.0-rc.5, html2canvas@^1.4.1:
3179+
html2canvas-pro@^1.5.8:
3180+
version "1.5.8"
3181+
resolved "https://registry.yarnpkg.com/html2canvas-pro/-/html2canvas-pro-1.5.8.tgz#d40ba9732c455943fc269f0606895ac00bb0c864"
3182+
integrity sha512-bVGAU7IvhBwBlRAmX6QhekX8lsaxmYoF6zIwf/HNlHscjx+KN8jw/U4PQRYqeEVm9+m13hcS1l5ChJB9/e29Lw==
3183+
dependencies:
3184+
css-line-break "^2.1.0"
3185+
text-segmentation "^1.0.3"
3186+
3187+
html2canvas@^1.0.0-rc.5:
31803188
version "1.4.1"
31813189
resolved "https://registry.yarnpkg.com/html2canvas/-/html2canvas-1.4.1.tgz#7cef1888311b5011d507794a066041b14669a543"
31823190
integrity sha512-fPU6BHNpsyIhr8yyMpTLLxAbkaK8ArIBcmZIRiBLiDhjeqvXolaEmDGmELFuX9I4xDcaKKcJl+TKZLqruBbmWA==

0 commit comments

Comments
 (0)