Skip to content

Commit 95ab7ef

Browse files
author
Ben Gribaudo
committed
rect() now allows postponed style setting
1 parent 281568f commit 95ab7ef

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

jspdf.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,9 +1104,13 @@ var jsPDF = (function(global) {
11041104
f2((pageHeight - y) * k),
11051105
f2(w * k),
11061106
f2(-h * k),
1107-
're',
1108-
op
1107+
're'
11091108
].join(' '));
1109+
1110+
if (style !== null) {
1111+
out(getStyle(style));
1112+
}
1113+
11101114
return this;
11111115
};
11121116

0 commit comments

Comments
 (0)