lib/utils/draw1D.js
function Barcode1D() {
  this.mode = MODE_BARWIDTH;
  this.width = 0;
  this.height = 0;
  this.background = '#FFF';
  this.barcolor = '#000';
  this.type = 'PNG';
  this.offset = 0;
  this.modulewidth = 1;
}
function Barcode1D() {
  this.mode = MODE_BARWIDTH;
  this.width = 0;
  this.height = 0;
  this.background = '#FFF';
  this.barcolor = '#000';
  this.type = 'PNG';
  this.offset = 0;
  this.modulewidth = 1;
}
constructor with defaults