Skip to content

Commit

Permalink
build 0.1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
bpampuch committed Dec 22, 2014
1 parent f6e9014 commit 92dac13
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 19 deletions.
22 changes: 8 additions & 14 deletions build/pdfmake.js
Original file line number Diff line number Diff line change
Expand Up @@ -16586,8 +16586,7 @@ By Devon Govett
}).call(this,_dereq_("buffer").Buffer)
},{"./object":63,"buffer":16,"zlib":15}],67:[function(_dereq_,module,exports){
// Generated by CoffeeScript 1.7.1
var UnicodeTrie,
__slice = [].slice;
var UnicodeTrie;

UnicodeTrie = (function() {
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;
Expand Down Expand Up @@ -16656,16 +16655,6 @@ UnicodeTrie = (function() {
return this.data[this.data.length - DATA_GRANULARITY];
};

UnicodeTrie.prototype.toJSON = function() {
var res;
res = {
data: __slice.call(this.data),
highStart: this.highStart,
errorValue: this.errorValue
};
return res;
};

return UnicodeTrie;

})();
Expand Down Expand Up @@ -17434,7 +17423,8 @@ function buildColumnWidths(columns, availableWidth) {
starColumns = [],
starMaxMin = 0,
starMaxMax = 0,
fixedColumns = [];
fixedColumns = [],
initial_availableWidth = availableWidth;

columns.forEach(function(column) {
if (isAutoColumn(column)) {
Expand All @@ -17451,6 +17441,10 @@ function buildColumnWidths(columns, availableWidth) {
});

fixedColumns.forEach(function(col) {
// width specified as %
if (typeof col.width === 'string' && /\d+%/.test(col.width) ) {
col.width = parseFloat(col.width)*initial_availableWidth/100;
}
if (col.width < (col._minWidth) && col.elasticWidth) {
col._calcWidth = col._minWidth;
} else {
Expand Down Expand Up @@ -19636,7 +19630,7 @@ FontProvider.prototype.provideFont = function(familyName, bold, italics) {
if (cached) return cached;

var fontCache = (this.cache[familyName] = this.cache[familyName] || {});
fontCache[type] = this.pdfDoc.font(this.fonts[familyName][type])._font;
fontCache[type] = this.pdfDoc.font(this.fonts[familyName][type], familyName)._font;
return fontCache[type];
};

Expand Down
6 changes: 3 additions & 3 deletions build/pdfmake.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/pdfmake.min.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/vfs_fonts.js

Large diffs are not rendered by default.

0 comments on commit 92dac13

Please sign in to comment.