Skip to content

Commit c830764

Browse files
committed
quick fix for restoreGraphicsState
1 parent 38732db commit c830764

8 files changed

Lines changed: 2070 additions & 136 deletions

File tree

.babelrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"presets": [
3+
[
4+
"es2015",
5+
{
6+
"modules": false
7+
}
8+
]
9+
],
10+
"plugins": [
11+
"external-helpers"
12+
]
13+
}

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jspdf-yworks",
3-
"version": "1.2.68",
3+
"version": "1.2.69",
44
"homepage": "https://github.com/yWorks/jsPDF",
55
"description": "PDF Document creation from JavaScript",
66
"main": "dist/jspdf.debug.js",

build.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function monkeyPatch() {
2424
}
2525

2626
// Rollup removes local variables unless used within a module.
27-
// This plugin makes sure specified local variables are preserved
27+
// This plugin makes sure specified local variables are preserved
2828
// and kept local. This plugin wouldn't be necessary if es2015
2929
// modules would be used.
3030
function rawjs(opts) {
@@ -62,7 +62,6 @@ function bundle(paths) {
6262
'html2pdf.js': 'html2pdf'
6363
}),
6464
babel({
65-
presets: ['es2015-rollup'],
6665
exclude: ['node_modules/**', 'libs/**'],
6766
compact: false
6867
})
@@ -91,4 +90,4 @@ function renew(code) {
9190
code = code.replace(/1\.0\.0-trunk/, version + ' ' + date + ':' + whoami);
9291

9392
return code;
94-
}
93+
}

0 commit comments

Comments
 (0)