11/*!
2- * html2pdf.js v0.10.0
2+ * html2pdf.js v0.10.1
33 * Copyright (c) 2021 Erik Koopmans
44 * Released under the MIT License.
55 */
66( function webpackUniversalModuleDefinition ( root , factory ) {
77 if ( typeof exports === 'object' && typeof module === 'object' )
8- module . exports = factory ( ) ;
8+ module . exports = factory ( require ( "jspdf" ) , require ( "html2canvas" ) ) ;
99 else if ( typeof define === 'function' && define . amd )
10- define ( "html2pdf" , [ ] , factory ) ;
10+ define ( "html2pdf" , [ "jspdf" , "html2canvas" ] , factory ) ;
1111 else if ( typeof exports === 'object' )
12- exports [ "html2pdf" ] = factory ( ) ;
12+ exports [ "html2pdf" ] = factory ( require ( "jspdf" ) , require ( "html2canvas" ) ) ;
1313 else
14- root [ "html2pdf" ] = factory ( ) ;
15- } ) ( self , function ( ) {
14+ root [ "html2pdf" ] = factory ( root [ "jspdf" ] , root [ "html2canvas" ] ) ;
15+ } ) ( self , function ( __WEBPACK_EXTERNAL_MODULE_jspdf__ , __WEBPACK_EXTERNAL_MODULE_html2canvas__ ) {
1616return /******/ ( function ( ) { // webpackBootstrap
1717/******/ var __webpack_modules__ = ( {
1818
@@ -133,7 +133,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
133133// Import dependencies.
134134 // Get dimensions of a PDF page, as determined by jsPDF.
135135
136- ( jspdf__WEBPACK_IMPORTED_MODULE_7___default ( ) . getPageSize ) = function ( orientation , unit , format ) {
136+ jspdf__WEBPACK_IMPORTED_MODULE_7__ . jsPDF . getPageSize = function ( orientation , unit , format ) {
137137 // Decode options object
138138 if ( _typeof ( orientation ) === 'object' ) {
139139 var options = orientation ;
@@ -273,7 +273,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
273273 return info ;
274274} ;
275275
276- /* harmony default export */ __webpack_exports__ [ "default" ] = ( ( jspdf__WEBPACK_IMPORTED_MODULE_7___default ( ) ) ) ;
276+ /* harmony default export */ __webpack_exports__ [ "default" ] = ( jspdf__WEBPACK_IMPORTED_MODULE_7__ . jsPDF ) ;
277277
278278/***/ } ) ,
279279
@@ -772,7 +772,7 @@ Worker.prototype.toCanvas = function toCanvas() {
772772 // Handle old-fashioned 'onrendered' argument.
773773 var options = Object . assign ( { } , this . opt . html2canvas ) ;
774774 delete options . onrendered ;
775- return html2canvas__WEBPACK_IMPORTED_MODULE_9___default ( ) ( this . prop . container , options ) ;
775+ return html2canvas__WEBPACK_IMPORTED_MODULE_9__ ( this . prop . container , options ) ;
776776 } ) . then ( function toCanvas_post ( canvas ) {
777777 // Handle old-fashioned 'onrendered' argument.
778778 var onRendered = this . opt . html2canvas . onrendered || function ( ) { } ;
@@ -818,7 +818,7 @@ Worker.prototype.toPdf = function toPdf() {
818818 pageCanvas . width = canvas . width ;
819819 pageCanvas . height = pxPageHeight ; // Initialize the PDF.
820820
821- this . prop . pdf = this . prop . pdf || new ( jspdf__WEBPACK_IMPORTED_MODULE_8___default ( ) ) ( opt . jsPDF ) ;
821+ this . prop . pdf = this . prop . pdf || new jspdf__WEBPACK_IMPORTED_MODULE_8__ . jsPDF ( opt . jsPDF ) ;
822822
823823 for ( var page = 0 ; page < nPages ; page ++ ) {
824824 // Trim the final page to reduce file size.
@@ -990,7 +990,7 @@ Worker.prototype.setMargin = function setMargin(margin) {
990990Worker . prototype . setPageSize = function setPageSize ( pageSize ) {
991991 return this . then ( function setPageSize_main ( ) {
992992 // Retrieve page-size based on jsPDF settings, if not explicitly provided.
993- pageSize = pageSize || jspdf__WEBPACK_IMPORTED_MODULE_8___default ( ) . getPageSize ( this . opt . jsPDF ) ; // Add 'inner' field if not present.
993+ pageSize = pageSize || jspdf__WEBPACK_IMPORTED_MODULE_8__ . jsPDF . getPageSize ( this . opt . jsPDF ) ; // Add 'inner' field if not present.
994994
995995 if ( ! pageSize . hasOwnProperty ( 'inner' ) ) {
996996 pageSize . inner = {
@@ -5738,7 +5738,7 @@ return Promise$1;
57385738/***/ ( function ( module ) {
57395739
57405740"use strict" ;
5741- module . exports = self [ "html2canvas" ] ;
5741+ module . exports = __WEBPACK_EXTERNAL_MODULE_html2canvas__ ;
57425742
57435743/***/ } ) ,
57445744
@@ -5749,7 +5749,7 @@ module.exports = self["html2canvas"];
57495749/***/ ( function ( module ) {
57505750
57515751"use strict" ;
5752- module . exports = self [ "jspdf" ] ;
5752+ module . exports = __WEBPACK_EXTERNAL_MODULE_jspdf__ ;
57535753
57545754/***/ } )
57555755
0 commit comments