Skip to content

Commit

Permalink
3.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbengtsson committed Apr 12, 2020
1 parent 503bb00 commit 799cd73
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions dist/jspdf.plugin.autotable.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
*
* jsPDF AutoTable plugin v3.4.2
* jsPDF AutoTable plugin v3.4.3
*
* Copyright (c) 2020 Simon Bengtsson, https://github.com/simonbengtsson/jsPDF-AutoTable
* Licensed under the MIT License.
Expand Down Expand Up @@ -291,7 +291,10 @@ function applyStyles(styles, fontOnly) {
lineColor: doc.setDrawColor,
lineWidth: doc.setLineWidth,
};
var styleModifiers = __assign({ font: doc.setFont, fontSize: doc.setFontSize, fontStyle: doc.setFontStyle }, (fontOnly ? {} : nonFontModifiers));
var styleModifiers = __assign({
// Font style needs to be applied before font
// https://github.com/simonbengtsson/jsPDF-AutoTable/issues/632
fontStyle: doc.setFontStyle, font: doc.setFont, fontSize: doc.setFontSize }, (fontOnly ? {} : nonFontModifiers));
Object.keys(styleModifiers).forEach(function (name) {
var style = styles[name];
var modifier = styleModifiers[name];
Expand Down
4 changes: 2 additions & 2 deletions dist/jspdf.plugin.autotable.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jspdf-autotable",
"version": "3.4.2",
"version": "3.4.3",
"description": "Generate pdf tables with javascript (jsPDF plugin)",
"main": "dist/jspdf.plugin.autotable.js",
"types": "dist/index",
Expand Down

0 comments on commit 799cd73

Please sign in to comment.