Skip to content

Commit

Permalink
📦 Release v3.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
lindell committed Oct 18, 2016
1 parent e9531ff commit d0913d7
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 19 deletions.
2 changes: 1 addition & 1 deletion bin/barcodes/CODE128/CODE128.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var CODE128 = function (_Barcode) {
}

return {
text: this.text.replace(/[^\x20-\x7E]/g, ""),
text: this.text == this.data ? this.text.replace(/[^\x20-\x7E]/g, "") : this.text,
data:
// Add the start bits
this.getEncoding(startIndex) +
Expand Down
4 changes: 3 additions & 1 deletion bin/barcodes/EAN_UPC/EAN13.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ var EAN13 = function (_Barcode) {
// Make sure the font is not bigger than the space between the guard bars
var _this = _possibleConstructorReturn(this, _Barcode.call(this, data, options));

if (options.fontSize > options.width * 10) {
if (!options.flat && options.fontSize > options.width * 10) {
_this.fontSize = options.width * 10;
} else {
_this.fontSize = options.fontSize;
}

// Make the guard bars go down half the way of the text
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "JsBarcode",
"main": "dist/JsBarcode.all.min.js",
"version": "3.5.3",
"version": "3.5.4",
"homepage": "https://github.com/lindell/JsBarcode",
"authors": [
"Johan Lindell <[email protected]>"
Expand Down
6 changes: 4 additions & 2 deletions dist/JsBarcode.all.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ var CODE128 = function (_Barcode) {
}

return {
text: this.text.replace(/[^\x20-\x7E]/g, ""),
text: this.text == this.data ? this.text.replace(/[^\x20-\x7E]/g, "") : this.text,
data:
// Add the start bits
this.getEncoding(startIndex) +
Expand Down Expand Up @@ -1407,8 +1407,10 @@ var EAN13 = function (_Barcode) {
// Make sure the font is not bigger than the space between the guard bars
var _this = _possibleConstructorReturn(this, _Barcode.call(this, data, options));

if (options.fontSize > options.width * 10) {
if (!options.flat && options.fontSize > options.width * 10) {
_this.fontSize = options.width * 10;
} else {
_this.fontSize = options.fontSize;
}

// Make the guard bars go down half the way of the text
Expand Down
6 changes: 3 additions & 3 deletions dist/JsBarcode.all.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/barcodes/JsBarcode.codabar.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/barcodes/JsBarcode.code128.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/barcodes/JsBarcode.code39.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/barcodes/JsBarcode.ean-upc.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/barcodes/JsBarcode.itf-14.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/barcodes/JsBarcode.itf.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/barcodes/JsBarcode.msi.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/barcodes/JsBarcode.pharmacode.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsbarcode",
"version": "3.5.3",
"version": "3.5.4",
"description": "JsBarcode is a customizable barcode generator with support for multiple barcode formats.",
"main": "./bin/JsBarcode.js",
"directories": {
Expand Down

0 comments on commit d0913d7

Please sign in to comment.