Skip to content

Commit 92dac13

Browse files
committed
build 0.1.15
1 parent f6e9014 commit 92dac13

File tree

4 files changed

+13
-19
lines changed

4 files changed

+13
-19
lines changed

build/pdfmake.js

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16586,8 +16586,7 @@ By Devon Govett
1658616586
}).call(this,_dereq_("buffer").Buffer)
1658716587
},{"./object":63,"buffer":16,"zlib":15}],67:[function(_dereq_,module,exports){
1658816588
// Generated by CoffeeScript 1.7.1
16589-
var UnicodeTrie,
16590-
__slice = [].slice;
16589+
var UnicodeTrie;
1659116590

1659216591
UnicodeTrie = (function() {
1659316592
var DATA_BLOCK_LENGTH, DATA_GRANULARITY, DATA_MASK, INDEX_1_OFFSET, INDEX_2_BLOCK_LENGTH, INDEX_2_BMP_LENGTH, INDEX_2_MASK, INDEX_SHIFT, LSCP_INDEX_2_LENGTH, LSCP_INDEX_2_OFFSET, OMITTED_BMP_INDEX_1_LENGTH, SHIFT_1, SHIFT_1_2, SHIFT_2, UTF8_2B_INDEX_2_LENGTH, UTF8_2B_INDEX_2_OFFSET;
@@ -16656,16 +16655,6 @@ UnicodeTrie = (function() {
1665616655
return this.data[this.data.length - DATA_GRANULARITY];
1665716656
};
1665816657

16659-
UnicodeTrie.prototype.toJSON = function() {
16660-
var res;
16661-
res = {
16662-
data: __slice.call(this.data),
16663-
highStart: this.highStart,
16664-
errorValue: this.errorValue
16665-
};
16666-
return res;
16667-
};
16668-
1666916658
return UnicodeTrie;
1667016659

1667116660
})();
@@ -17434,7 +17423,8 @@ function buildColumnWidths(columns, availableWidth) {
1743417423
starColumns = [],
1743517424
starMaxMin = 0,
1743617425
starMaxMax = 0,
17437-
fixedColumns = [];
17426+
fixedColumns = [],
17427+
initial_availableWidth = availableWidth;
1743817428

1743917429
columns.forEach(function(column) {
1744017430
if (isAutoColumn(column)) {
@@ -17451,6 +17441,10 @@ function buildColumnWidths(columns, availableWidth) {
1745117441
});
1745217442

1745317443
fixedColumns.forEach(function(col) {
17444+
// width specified as %
17445+
if (typeof col.width === 'string' && /\d+%/.test(col.width) ) {
17446+
col.width = parseFloat(col.width)*initial_availableWidth/100;
17447+
}
1745417448
if (col.width < (col._minWidth) && col.elasticWidth) {
1745517449
col._calcWidth = col._minWidth;
1745617450
} else {
@@ -19636,7 +19630,7 @@ FontProvider.prototype.provideFont = function(familyName, bold, italics) {
1963619630
if (cached) return cached;
1963719631

1963819632
var fontCache = (this.cache[familyName] = this.cache[familyName] || {});
19639-
fontCache[type] = this.pdfDoc.font(this.fonts[familyName][type])._font;
19633+
fontCache[type] = this.pdfDoc.font(this.fonts[familyName][type], familyName)._font;
1964019634
return fontCache[type];
1964119635
};
1964219636

build/pdfmake.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/pdfmake.min.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/vfs_fonts.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)