Skip to content

Commit

Permalink
gh-pages v4.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
grud committed Nov 16, 2018
1 parent 0967240 commit 81b1c21
Show file tree
Hide file tree
Showing 252 changed files with 68,491 additions and 124 deletions.
40 changes: 27 additions & 13 deletions docs/grunt-scripts/pdfmake.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! pdfmake v0.1.38, @license MIT, @link http://pdfmake.org */
/*! pdfmake v0.1.39, @license MIT, @link http://pdfmake.org */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand Down Expand Up @@ -7397,24 +7397,24 @@ function measure(fontProvider, textArray, styleContextStack) {
var linkToPage = getStyleProperty(item, styleContextStack, 'linkToPage', null);
var noWrap = getStyleProperty(item, styleContextStack, 'noWrap', null);
var preserveLeadingSpaces = getStyleProperty(item, styleContextStack, 'preserveLeadingSpaces', false);
var preserveTrailingSpaces = getStyleProperty(item, styleContextStack, 'preserveTrailingSpaces', false);

var font = fontProvider.provideFont(fontName, bold, italics);

item.width = widthOfString(item.text, font, fontSize, characterSpacing, fontFeatures);
item.height = font.lineHeight(fontSize) * lineHeight;

var leadingSpaces = item.text.match(LEADING);

if (!item.leadingCut) {
item.leadingCut = 0;
}

if (leadingSpaces && !preserveLeadingSpaces) {
var leadingSpaces;
if (!preserveLeadingSpaces && (leadingSpaces = item.text.match(LEADING))) {
item.leadingCut += widthOfString(leadingSpaces[0], font, fontSize, characterSpacing, fontFeatures);
}

var trailingSpaces = item.text.match(TRAILING);
if (trailingSpaces) {
var trailingSpaces;
if (!preserveTrailingSpaces && (trailingSpaces = item.text.match(TRAILING))) {
item.trailingCut = widthOfString(trailingSpaces[0], font, fontSize, characterSpacing, fontFeatures);
} else {
item.trailingCut = 0;
Expand Down Expand Up @@ -13800,6 +13800,7 @@ function renderVector(vector, pdfKitDoc) {
}

function renderImage(image, x, y, pdfKitDoc) {
pdfKitDoc.opacity(image.opacity || 1);
pdfKitDoc.image(image.image, image.x, image.y, {width: image._width, height: image._height});
if (image.link) {
pdfKitDoc.link(image.x, image.y, image._width, image._height, image.link);
Expand Down Expand Up @@ -48140,6 +48141,12 @@ DocMeasure.prototype.measureTable = function (node) {
vLineColor: function (i, node) {
return 'black';
},
hLineStyle: function (i, node) {
return null;
},
vLineStyle: function (i, node) {
return null;
},
paddingLeft: function (i, node) {
return 4;
},
Expand Down Expand Up @@ -49198,7 +49205,7 @@ PageElementWriter.prototype.moveToNextPage = function (pageOrientation) {
this.writer.tracker.emit('pageChanged', {
prevPage: nextPage.prevPage,
prevY: nextPage.prevY,
y: nextPage.y
y: this.writer.context.y
});
};

Expand Down Expand Up @@ -49754,6 +49761,12 @@ TableProcessor.prototype.beginRow = function (rowIndex, writer) {
TableProcessor.prototype.drawHorizontalLine = function (lineIndex, writer, overrideY) {
var lineWidth = this.layout.hLineWidth(lineIndex, this.tableNode);
if (lineWidth) {
var style = this.layout.hLineStyle(lineIndex, this.tableNode);
var dash;
if (style && style.dash) {
dash = style.dash;
}

var offset = lineWidth / 2;
var currentLine = null;
var body = this.tableNode.table.body;
Expand Down Expand Up @@ -49801,6 +49814,7 @@ TableProcessor.prototype.drawHorizontalLine = function (lineIndex, writer, overr
y1: y,
y2: y,
lineWidth: lineWidth,
dash: dash,
lineColor: isFunction(this.layout.hLineColor) ? this.layout.hLineColor(lineIndex, this.tableNode) : this.layout.hLineColor
}, false, overrideY);
currentLine = null;
Expand All @@ -49817,21 +49831,26 @@ TableProcessor.prototype.drawVerticalLine = function (x, y0, y1, vLineIndex, wri
if (width === 0) {
return;
}
var style = this.layout.vLineStyle(vLineIndex, this.tableNode);
var dash;
if (style && style.dash) {
dash = style.dash;
}
writer.addVector({
type: 'line',
x1: x + width / 2,
x2: x + width / 2,
y1: y0,
y2: y1,
lineWidth: width,
dash: dash,
lineColor: isFunction(this.layout.vLineColor) ? this.layout.vLineColor(vLineIndex, this.tableNode) : this.layout.vLineColor
}, false, true);
};

TableProcessor.prototype.endTable = function (writer) {
if (this.cleanUpRepeatables) {
writer.popFromRepeatables();
this.headerRepeatableHeight = null;
}
};

Expand Down Expand Up @@ -49863,10 +49882,6 @@ TableProcessor.prototype.endRow = function (rowIndex, writer, pageBreaks) {
ys[ys.length - 1].y1 = pageBreak.prevY;

ys.push({y0: pageBreak.y, page: pageBreak.prevPage + 1});

if (this.headerRepeatableHeight) {
ys[ys.length - 1].y0 += this.headerRepeatableHeight;
}
}
}

Expand Down Expand Up @@ -49983,7 +49998,6 @@ TableProcessor.prototype.endRow = function (rowIndex, writer, pageBreaks) {
}

if (this.headerRepeatable && (rowIndex === (this.rowsWithoutPageBreak - 1) || rowIndex === this.tableNode.table.body.length - 1)) {
this.headerRepeatableHeight = this.headerRepeatable.height;
writer.commitUnbreakableBlock();
writer.pushToRepeatables(this.headerRepeatable);
this.cleanUpRepeatables = true;
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ <h1 class="text-center">Angular UI Grid</h1>
Code on Github
</a>

<a class="btn btn-danger btn-large" href="https://github.com/angular-ui/ui-grid.info/tree/gh-pages/release" title="Download 4.6.6">
<a class="btn btn-danger btn-large" href="https://github.com/angular-ui/ui-grid.info/tree/gh-pages/release" title="Download 4.6.5">
<i class="fa fa-download fa-fw"></i>
<!-- Download <small>( 4.6.6 / 4.6.6 )</small> --> <!-- TODO(c0bra): note: not showing stable version till 3.0.0 is released -->
<!-- Download <small>( 4.6.5 / 4.6.5 )</small> --> <!-- TODO(c0bra): note: not showing stable version till 3.0.0 is released -->

Download <small>( 4.6.6 )</small>
Download <small>( 4.6.5 )</small>
</a>

<a class="btn btn-success btn-large" href="/docs/#!/tutorial" title="Tutorial">
Expand Down
Binary file added release/4.6.5/fonts/ui-grid.eot
Binary file not shown.
56 changes: 56 additions & 0 deletions release/4.6.5/fonts/ui-grid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added release/4.6.5/fonts/ui-grid.ttf
Binary file not shown.
Binary file added release/4.6.5/fonts/ui-grid.woff
Binary file not shown.
Loading

0 comments on commit 81b1c21

Please sign in to comment.