Skip to content

Commit f6c5e83

Browse files
committed
Build v0.10.1
1 parent 0b9de5e commit f6c5e83

12 files changed

+28
-11765
lines changed

dist/html2pdf.bundle.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
*/
@@ -1229,7 +1229,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
12291229
// Import dependencies.
12301230
// Get dimensions of a PDF page, as determined by jsPDF.
12311231

1232-
jspdf__WEBPACK_IMPORTED_MODULE_7__.default.getPageSize = function (orientation, unit, format) {
1232+
jspdf__WEBPACK_IMPORTED_MODULE_7__.jsPDF.getPageSize = function (orientation, unit, format) {
12331233
// Decode options object
12341234
if (_typeof(orientation) === 'object') {
12351235
var options = orientation;
@@ -1369,7 +1369,7 @@ jspdf__WEBPACK_IMPORTED_MODULE_7__.default.getPageSize = function (orientation,
13691369
return info;
13701370
};
13711371

1372-
/* harmony default export */ __webpack_exports__["default"] = (jspdf__WEBPACK_IMPORTED_MODULE_7__.default);
1372+
/* harmony default export */ __webpack_exports__["default"] = (jspdf__WEBPACK_IMPORTED_MODULE_7__.jsPDF);
13731373

13741374
/***/ }),
13751375

@@ -1867,7 +1867,7 @@ Worker.prototype.toCanvas = function toCanvas() {
18671867
// Handle old-fashioned 'onrendered' argument.
18681868
var options = Object.assign({}, this.opt.html2canvas);
18691869
delete options.onrendered;
1870-
return html2canvas__WEBPACK_IMPORTED_MODULE_9___default()(this.prop.container, options);
1870+
return html2canvas__WEBPACK_IMPORTED_MODULE_9__(this.prop.container, options);
18711871
}).then(function toCanvas_post(canvas) {
18721872
// Handle old-fashioned 'onrendered' argument.
18731873
var onRendered = this.opt.html2canvas.onrendered || function () {};
@@ -1913,7 +1913,7 @@ Worker.prototype.toPdf = function toPdf() {
19131913
pageCanvas.width = canvas.width;
19141914
pageCanvas.height = pxPageHeight; // Initialize the PDF.
19151915

1916-
this.prop.pdf = this.prop.pdf || new jspdf__WEBPACK_IMPORTED_MODULE_8__.default(opt.jsPDF);
1916+
this.prop.pdf = this.prop.pdf || new jspdf__WEBPACK_IMPORTED_MODULE_8__.jsPDF(opt.jsPDF);
19171917

19181918
for (var page = 0; page < nPages; page++) {
19191919
// Trim the final page to reduce file size.
@@ -2085,7 +2085,7 @@ Worker.prototype.setMargin = function setMargin(margin) {
20852085
Worker.prototype.setPageSize = function setPageSize(pageSize) {
20862086
return this.then(function setPageSize_main() {
20872087
// Retrieve page-size based on jsPDF settings, if not explicitly provided.
2088-
pageSize = pageSize || jspdf__WEBPACK_IMPORTED_MODULE_8__.default.getPageSize(this.opt.jsPDF); // Add 'inner' field if not present.
2088+
pageSize = pageSize || jspdf__WEBPACK_IMPORTED_MODULE_8__.jsPDF.getPageSize(this.opt.jsPDF); // Add 'inner' field if not present.
20892089

20902090
if (!pageSize.hasOwnProperty('inner')) {
20912091
pageSize.inner = {

dist/html2pdf.bundle.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/html2pdf.bundle.min.js.LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414

1515
/*!
16-
* html2pdf.js v0.10.0
16+
* html2pdf.js v0.10.1
1717
* Copyright (c) 2021 Erik Koopmans
1818
* Released under the MIT License.
1919
*/

dist/html2pdf.bundle.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/html2pdf.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
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__) {
1616
return /******/ (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) {
990990
Worker.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

dist/html2pdf.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/html2pdf.min.js.LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
/*!
10-
* html2pdf.js v0.10.0
10+
* html2pdf.js v0.10.1
1111
* Copyright (c) 2021 Erik Koopmans
1212
* Released under the MIT License.
1313
*/

dist/html2pdf.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)