@flowaccount/pdfmake 0.2.20-staging.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowaccount/pdfmake",
3
- "version": "0.2.20-staging.2",
3
+ "version": "1.0.0",
4
4
  "description": "Client/server side PDF printing in pure JavaScript",
5
5
  "main": "src/printer.js",
6
6
  "browser": "build/pdfmake.js",
@@ -194,8 +194,8 @@ TableProcessor.prototype.beginRow = function (rowIndex, writer) {
194
194
  writer.context().moveDown(this.rowPaddingTop);
195
195
  };
196
196
 
197
- TableProcessor.prototype.drawHorizontalLine = function (lineIndex, writer, overrideY, moveDown = true, forcePage) {
198
- var lineWidth = this.layout.hLineWidth(lineIndex, this.tableNode, writer);
197
+ TableProcessor.prototype.drawHorizontalLine = function (lineIndex, writer, overrideY, moveDown = true, forcePage, isPageBreak = false) {
198
+ var lineWidth = this.layout.hLineWidth(lineIndex, this.tableNode, writer, isPageBreak);
199
199
  if (lineWidth) {
200
200
  var style = this.layout.hLineStyle(lineIndex, this.tableNode);
201
201
  var dash;
@@ -474,10 +474,10 @@ TableProcessor.prototype.endRow = function (rowIndex, writer, pageBreaks) {
474
474
 
475
475
  // Draw horizontal lines before the vertical lines so they are not overridden
476
476
  if (willBreak && this.layout.hLineWhenBroken !== false) {
477
- this.drawHorizontalLine(rowIndex + 1, writer, y2);
477
+ this.drawHorizontalLine(rowIndex + 1, writer, y2, true, null, true);
478
478
  }
479
479
  if (rowBreakWithoutHeader && this.layout.hLineWhenBroken !== false) {
480
- this.drawHorizontalLine(rowIndex, writer, y1);
480
+ this.drawHorizontalLine(rowIndex, writer, y1, true, null, true);
481
481
  }
482
482
 
483
483
  for (i = 0, l = xs.length; i < l; i++) {