Skip to content

Commit

Permalink
2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
HackbrettXXX authored Mar 9, 2021
1 parent 20f271a commit 9b8f1e9
Show file tree
Hide file tree
Showing 102 changed files with 310 additions and 234 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ yarn add jspdf
Alternatively, load it from a CDN:

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.3.0/jspdf.umd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.3.1/jspdf.umd.min.js"></script>
```

Or always get latest version via [unpkg](https://unpkg.com/browse/jspdf/)
Expand Down Expand Up @@ -178,7 +178,7 @@ Alternatively, you can load the prebundled polyfill file. This is not recommende
loading polyfills multiple times. Might still be nifty for small applications or quick POCs.

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.3.0/polyfills.umd.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.3.1/polyfills.umd.js"></script>
```

## Use of Unicode Characters / UTF-8:
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jspdf",
"version": "2.3.0",
"version": "2.3.1",
"homepage": "https://github.com/mrrio/jspdf",
"description": "PDF Document creation from JavaScript",
"main": [
Expand Down
31 changes: 21 additions & 10 deletions dist/jspdf.es.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @license
*
* jsPDF - PDF Document creation from JavaScript
* Version 2.3.0 Built on 2021-01-15T15:15:16.557Z
* Version 2.3.1 Built on 2021-03-08T15:44:11.674Z
* CommitID 00000000
*
* Copyright (c) 2010-2020 James Hall <[email protected]>, https://github.com/MrRio/jsPDF
Expand Down Expand Up @@ -179,8 +179,8 @@ var saveAs =
? function saveAs() {
/* noop */
}
: // Use download attribute first if possible (#193 Lumia mobile)
"download" in HTMLAnchorElement.prototype
: // Use download attribute first if possible (#193 Lumia mobile) unless this is a native app
(typeof HTMLAnchorElement !== "undefined" && "download" in HTMLAnchorElement.prototype)
? function saveAs(blob, name, opts) {
var URL = globalObject.URL || globalObject.webkitURL;
var a = document.createElement("a");
Expand Down Expand Up @@ -3971,12 +3971,22 @@ function jsPDF(options) {
*
* If `type` argument is undefined, output is raw body of resulting PDF returned as a string.
*
* @param {string} type A string identifying one of the possible output types. Possible values are 'arraybuffer', 'blob', 'bloburi'/'bloburl', 'datauristring'/'dataurlstring', 'datauri'/'dataurl', 'dataurlnewwindow', 'pdfobjectnewwindow', 'pdfjsnewwindow'.
* @param {Object} options An object providing some additional signalling to PDF generator. Possible options are 'filename'.
*
* @param {string} type A string identifying one of the possible output types.<br/>
* Possible values are: <br/>
* 'arraybuffer' -> (ArrayBuffer)<br/>
* 'blob' -> (Blob)<br/>
* 'bloburi'/'bloburl' -> (string)<br/>
* 'datauristring'/'dataurlstring' -> (string)<br/>
* 'datauri'/'dataurl' -> (undefined) -> change location to generated datauristring/dataurlstring<br/>
* 'dataurlnewwindow' -> (window | null | undefined) throws error if global isn't a window object(node)<br/>
* 'pdfobjectnewwindow' -> (window | null) throws error if global isn't a window object(node)<br/>
* 'pdfjsnewwindow' -> (wind | null)
* @param {Object|string} options An object providing some additional signalling to PDF generator.<br/>
* Possible options are 'filename'.<br/>
* A string can be passed instead of {filename:string} and defaults to 'generated.pdf'
* @function
* @instance
* @returns {jsPDF}
* @returns {string|window|ArrayBuffer|Blob|jsPDF|null|undefined}
* @memberof jsPDF#
* @name output
*/
Expand Down Expand Up @@ -6957,7 +6967,7 @@ jsPDF.API = {
* @type {string}
* @memberof jsPDF#
*/
jsPDF.version = "2.3.0";
jsPDF.version = "2.3.1";

/* global jsPDF */

Expand Down Expand Up @@ -10696,7 +10706,7 @@ var AcroForm = jsPDF.AcroForm;
var result = null;

if (dataUrlParts.length === 2) {
var extractedInfo = /^data:(\w*\/\w*);*(charset=[\w=-]*)*;*$/.exec(
var extractedInfo = /^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(
dataUrlParts[0]
);
if (Array.isArray(extractedInfo)) {
Expand Down Expand Up @@ -12163,6 +12173,7 @@ var AcroForm = jsPDF.AcroForm;
var amountOfLines = 0;
var height = 0;
var tempWidth = 0;
var scope = this;

if (!Array.isArray(text) && typeof text !== "string") {
if (typeof text === "number") {
Expand Down Expand Up @@ -12418,7 +12429,7 @@ var AcroForm = jsPDF.AcroForm;
});
}

if (autoSize) {
if (autoSize || (Array.isArray(headers) && typeof headers[0] === "string")) {
var headerName;
for (i = 0; i < headerNames.length; i += 1) {
headerName = headerNames[i];
Expand Down
2 changes: 1 addition & 1 deletion dist/jspdf.es.js.map

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions dist/jspdf.es.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jspdf.es.min.js.map

Large diffs are not rendered by default.

27 changes: 19 additions & 8 deletions dist/jspdf.node.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @license
*
* jsPDF - PDF Document creation from JavaScript
* Version 2.3.0 Built on 2021-01-15T15:15:16.557Z
* Version 2.3.1 Built on 2021-03-08T15:44:11.674Z
* CommitID 00000000
*
* Copyright (c) 2010-2020 James Hall <[email protected]>, https://github.com/MrRio/jsPDF
Expand Down Expand Up @@ -3787,12 +3787,22 @@ function jsPDF(options) {
*
* If `type` argument is undefined, output is raw body of resulting PDF returned as a string.
*
* @param {string} type A string identifying one of the possible output types. Possible values are 'arraybuffer', 'blob', 'bloburi'/'bloburl', 'datauristring'/'dataurlstring', 'datauri'/'dataurl', 'dataurlnewwindow', 'pdfobjectnewwindow', 'pdfjsnewwindow'.
* @param {Object} options An object providing some additional signalling to PDF generator. Possible options are 'filename'.
*
* @param {string} type A string identifying one of the possible output types.<br/>
* Possible values are: <br/>
* 'arraybuffer' -> (ArrayBuffer)<br/>
* 'blob' -> (Blob)<br/>
* 'bloburi'/'bloburl' -> (string)<br/>
* 'datauristring'/'dataurlstring' -> (string)<br/>
* 'datauri'/'dataurl' -> (undefined) -> change location to generated datauristring/dataurlstring<br/>
* 'dataurlnewwindow' -> (window | null | undefined) throws error if global isn't a window object(node)<br/>
* 'pdfobjectnewwindow' -> (window | null) throws error if global isn't a window object(node)<br/>
* 'pdfjsnewwindow' -> (wind | null)
* @param {Object|string} options An object providing some additional signalling to PDF generator.<br/>
* Possible options are 'filename'.<br/>
* A string can be passed instead of {filename:string} and defaults to 'generated.pdf'
* @function
* @instance
* @returns {jsPDF}
* @returns {string|window|ArrayBuffer|Blob|jsPDF|null|undefined}
* @memberof jsPDF#
* @name output
*/
Expand Down Expand Up @@ -6766,7 +6776,7 @@ jsPDF.API = {
* @type {string}
* @memberof jsPDF#
*/
jsPDF.version = "2.3.0";
jsPDF.version = "2.3.1";

/* global jsPDF */

Expand Down Expand Up @@ -10505,7 +10515,7 @@ var AcroForm = jsPDF.AcroForm;
var result = null;

if (dataUrlParts.length === 2) {
var extractedInfo = /^data:(\w*\/\w*);*(charset=[\w=-]*)*;*$/.exec(
var extractedInfo = /^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(
dataUrlParts[0]
);
if (Array.isArray(extractedInfo)) {
Expand Down Expand Up @@ -11972,6 +11982,7 @@ var AcroForm = jsPDF.AcroForm;
var amountOfLines = 0;
var height = 0;
var tempWidth = 0;
var scope = this;

if (!Array.isArray(text) && typeof text !== "string") {
if (typeof text === "number") {
Expand Down Expand Up @@ -12227,7 +12238,7 @@ var AcroForm = jsPDF.AcroForm;
});
}

if (autoSize) {
if (autoSize || (Array.isArray(headers) && typeof headers[0] === "string")) {
var headerName;
for (i = 0; i < headerNames.length; i += 1) {
headerName = headerNames[i];
Expand Down
2 changes: 1 addition & 1 deletion dist/jspdf.node.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/jspdf.node.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jspdf.node.min.js.map

Large diffs are not rendered by default.

31 changes: 21 additions & 10 deletions dist/jspdf.umd.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @license
*
* jsPDF - PDF Document creation from JavaScript
* Version 2.3.0 Built on 2021-01-15T15:15:16.555Z
* Version 2.3.1 Built on 2021-03-08T15:44:11.672Z
* CommitID 00000000
*
* Copyright (c) 2010-2020 James Hall <[email protected]>, https://github.com/MrRio/jsPDF
Expand Down Expand Up @@ -183,8 +183,8 @@
? function saveAs() {
/* noop */
}
: // Use download attribute first if possible (#193 Lumia mobile)
"download" in HTMLAnchorElement.prototype
: // Use download attribute first if possible (#193 Lumia mobile) unless this is a native app
(typeof HTMLAnchorElement !== "undefined" && "download" in HTMLAnchorElement.prototype)
? function saveAs(blob, name, opts) {
var URL = globalObject.URL || globalObject.webkitURL;
var a = document.createElement("a");
Expand Down Expand Up @@ -3975,12 +3975,22 @@
*
* If `type` argument is undefined, output is raw body of resulting PDF returned as a string.
*
* @param {string} type A string identifying one of the possible output types. Possible values are 'arraybuffer', 'blob', 'bloburi'/'bloburl', 'datauristring'/'dataurlstring', 'datauri'/'dataurl', 'dataurlnewwindow', 'pdfobjectnewwindow', 'pdfjsnewwindow'.
* @param {Object} options An object providing some additional signalling to PDF generator. Possible options are 'filename'.
*
* @param {string} type A string identifying one of the possible output types.<br/>
* Possible values are: <br/>
* 'arraybuffer' -> (ArrayBuffer)<br/>
* 'blob' -> (Blob)<br/>
* 'bloburi'/'bloburl' -> (string)<br/>
* 'datauristring'/'dataurlstring' -> (string)<br/>
* 'datauri'/'dataurl' -> (undefined) -> change location to generated datauristring/dataurlstring<br/>
* 'dataurlnewwindow' -> (window | null | undefined) throws error if global isn't a window object(node)<br/>
* 'pdfobjectnewwindow' -> (window | null) throws error if global isn't a window object(node)<br/>
* 'pdfjsnewwindow' -> (wind | null)
* @param {Object|string} options An object providing some additional signalling to PDF generator.<br/>
* Possible options are 'filename'.<br/>
* A string can be passed instead of {filename:string} and defaults to 'generated.pdf'
* @function
* @instance
* @returns {jsPDF}
* @returns {string|window|ArrayBuffer|Blob|jsPDF|null|undefined}
* @memberof jsPDF#
* @name output
*/
Expand Down Expand Up @@ -6961,7 +6971,7 @@
* @type {string}
* @memberof jsPDF#
*/
jsPDF.version = "2.3.0";
jsPDF.version = "2.3.1";

/* global jsPDF */

Expand Down Expand Up @@ -10700,7 +10710,7 @@
var result = null;

if (dataUrlParts.length === 2) {
var extractedInfo = /^data:(\w*\/\w*);*(charset=[\w=-]*)*;*$/.exec(
var extractedInfo = /^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(
dataUrlParts[0]
);
if (Array.isArray(extractedInfo)) {
Expand Down Expand Up @@ -12167,6 +12177,7 @@
var amountOfLines = 0;
var height = 0;
var tempWidth = 0;
var scope = this;

if (!Array.isArray(text) && typeof text !== "string") {
if (typeof text === "number") {
Expand Down Expand Up @@ -12422,7 +12433,7 @@
});
}

if (autoSize) {
if (autoSize || (Array.isArray(headers) && typeof headers[0] === "string")) {
var headerName;
for (i = 0; i < headerNames.length; i += 1) {
headerName = headerNames[i];
Expand Down
2 changes: 1 addition & 1 deletion dist/jspdf.umd.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 9b8f1e9

Please sign in to comment.