Skip to content

Commit 81b1c21

Browse files
committed
gh-pages v4.6.5
1 parent 0967240 commit 81b1c21

File tree

252 files changed

+68491
-124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+68491
-124
lines changed

docs/grunt-scripts/pdfmake.js

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! pdfmake v0.1.38, @license MIT, @link http://pdfmake.org */
1+
/*! pdfmake v0.1.39, @license MIT, @link http://pdfmake.org */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory();
@@ -7397,24 +7397,24 @@ function measure(fontProvider, textArray, styleContextStack) {
73977397
var linkToPage = getStyleProperty(item, styleContextStack, 'linkToPage', null);
73987398
var noWrap = getStyleProperty(item, styleContextStack, 'noWrap', null);
73997399
var preserveLeadingSpaces = getStyleProperty(item, styleContextStack, 'preserveLeadingSpaces', false);
7400+
var preserveTrailingSpaces = getStyleProperty(item, styleContextStack, 'preserveTrailingSpaces', false);
74007401

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

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

7406-
var leadingSpaces = item.text.match(LEADING);
7407-
74087407
if (!item.leadingCut) {
74097408
item.leadingCut = 0;
74107409
}
74117410

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

7416-
var trailingSpaces = item.text.match(TRAILING);
7417-
if (trailingSpaces) {
7416+
var trailingSpaces;
7417+
if (!preserveTrailingSpaces && (trailingSpaces = item.text.match(TRAILING))) {
74187418
item.trailingCut = widthOfString(trailingSpaces[0], font, fontSize, characterSpacing, fontFeatures);
74197419
} else {
74207420
item.trailingCut = 0;
@@ -13800,6 +13800,7 @@ function renderVector(vector, pdfKitDoc) {
1380013800
}
1380113801

1380213802
function renderImage(image, x, y, pdfKitDoc) {
13803+
pdfKitDoc.opacity(image.opacity || 1);
1380313804
pdfKitDoc.image(image.image, image.x, image.y, {width: image._width, height: image._height});
1380413805
if (image.link) {
1380513806
pdfKitDoc.link(image.x, image.y, image._width, image._height, image.link);
@@ -48140,6 +48141,12 @@ DocMeasure.prototype.measureTable = function (node) {
4814048141
vLineColor: function (i, node) {
4814148142
return 'black';
4814248143
},
48144+
hLineStyle: function (i, node) {
48145+
return null;
48146+
},
48147+
vLineStyle: function (i, node) {
48148+
return null;
48149+
},
4814348150
paddingLeft: function (i, node) {
4814448151
return 4;
4814548152
},
@@ -49198,7 +49205,7 @@ PageElementWriter.prototype.moveToNextPage = function (pageOrientation) {
4919849205
this.writer.tracker.emit('pageChanged', {
4919949206
prevPage: nextPage.prevPage,
4920049207
prevY: nextPage.prevY,
49201-
y: nextPage.y
49208+
y: this.writer.context.y
4920249209
});
4920349210
};
4920449211

@@ -49754,6 +49761,12 @@ TableProcessor.prototype.beginRow = function (rowIndex, writer) {
4975449761
TableProcessor.prototype.drawHorizontalLine = function (lineIndex, writer, overrideY) {
4975549762
var lineWidth = this.layout.hLineWidth(lineIndex, this.tableNode);
4975649763
if (lineWidth) {
49764+
var style = this.layout.hLineStyle(lineIndex, this.tableNode);
49765+
var dash;
49766+
if (style && style.dash) {
49767+
dash = style.dash;
49768+
}
49769+
4975749770
var offset = lineWidth / 2;
4975849771
var currentLine = null;
4975949772
var body = this.tableNode.table.body;
@@ -49801,6 +49814,7 @@ TableProcessor.prototype.drawHorizontalLine = function (lineIndex, writer, overr
4980149814
y1: y,
4980249815
y2: y,
4980349816
lineWidth: lineWidth,
49817+
dash: dash,
4980449818
lineColor: isFunction(this.layout.hLineColor) ? this.layout.hLineColor(lineIndex, this.tableNode) : this.layout.hLineColor
4980549819
}, false, overrideY);
4980649820
currentLine = null;
@@ -49817,21 +49831,26 @@ TableProcessor.prototype.drawVerticalLine = function (x, y0, y1, vLineIndex, wri
4981749831
if (width === 0) {
4981849832
return;
4981949833
}
49834+
var style = this.layout.vLineStyle(vLineIndex, this.tableNode);
49835+
var dash;
49836+
if (style && style.dash) {
49837+
dash = style.dash;
49838+
}
4982049839
writer.addVector({
4982149840
type: 'line',
4982249841
x1: x + width / 2,
4982349842
x2: x + width / 2,
4982449843
y1: y0,
4982549844
y2: y1,
4982649845
lineWidth: width,
49846+
dash: dash,
4982749847
lineColor: isFunction(this.layout.vLineColor) ? this.layout.vLineColor(vLineIndex, this.tableNode) : this.layout.vLineColor
4982849848
}, false, true);
4982949849
};
4983049850

4983149851
TableProcessor.prototype.endTable = function (writer) {
4983249852
if (this.cleanUpRepeatables) {
4983349853
writer.popFromRepeatables();
49834-
this.headerRepeatableHeight = null;
4983549854
}
4983649855
};
4983749856

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

4986549884
ys.push({y0: pageBreak.y, page: pageBreak.prevPage + 1});
49866-
49867-
if (this.headerRepeatableHeight) {
49868-
ys[ys.length - 1].y0 += this.headerRepeatableHeight;
49869-
}
4987049885
}
4987149886
}
4987249887

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

4998550000
if (this.headerRepeatable && (rowIndex === (this.rowsWithoutPageBreak - 1) || rowIndex === this.tableNode.table.body.length - 1)) {
49986-
this.headerRepeatableHeight = this.headerRepeatable.height;
4998750001
writer.commitUnbreakableBlock();
4998850002
writer.pushToRepeatables(this.headerRepeatable);
4998950003
this.cleanUpRepeatables = true;

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ <h1 class="text-center">Angular UI Grid</h1>
7676
Code on Github
7777
</a>
7878

79-
<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">
79+
<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">
8080
<i class="fa fa-download fa-fw"></i>
81-
<!-- Download <small>( 4.6.6 / 4.6.6 )</small> --> <!-- TODO(c0bra): note: not showing stable version till 3.0.0 is released -->
81+
<!-- Download <small>( 4.6.5 / 4.6.5 )</small> --> <!-- TODO(c0bra): note: not showing stable version till 3.0.0 is released -->
8282

83-
Download <small>( 4.6.6 )</small>
83+
Download <small>( 4.6.5 )</small>
8484
</a>
8585

8686
<a class="btn btn-success btn-large" href="/docs/#!/tutorial" title="Tutorial">

release/4.6.5/fonts/ui-grid.eot

10.1 KB
Binary file not shown.

release/4.6.5/fonts/ui-grid.svg

Lines changed: 56 additions & 0 deletions
Loading

release/4.6.5/fonts/ui-grid.ttf

9.92 KB
Binary file not shown.

release/4.6.5/fonts/ui-grid.woff

5.59 KB
Binary file not shown.

0 commit comments

Comments
 (0)