node-pirit-printer
Advanced tools
Comparing version 0.1.6 to 0.1.7
{ | ||
"name": "node-pirit-printer", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Pirit Printer COM Node.js API", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
27
Pirit.js
@@ -209,4 +209,4 @@ /** | ||
Pirit.prototype.ALIGN_LEFT = 0.48; | ||
Pirit.prototype.ALIGN_CENTER = 2.50; | ||
Pirit.prototype.ALIGN_RIGHT = 1.49; | ||
Pirit.prototype.ALIGN_RIGHT = 2.50; | ||
Pirit.prototype.ALIGN_CENTER = 1.49; | ||
@@ -221,5 +221,26 @@ /** | ||
return this.writeHex([0x1B, 0x61, type]); | ||
} | ||
}; | ||
Pirit.prototype.drawLine = function(symbol) { | ||
var line = ''; | ||
while(line.length < 44) { | ||
line += symbol; | ||
} | ||
this.align(this.ALIGN_CENTER); | ||
return this.writeLine(line); | ||
}; | ||
Pirit.prototype.writeSepLine = function(a, b, symbol){ | ||
a = a.toString(); | ||
b = b.toString(); | ||
var line = a; | ||
while(line.length < 44 - b.length) { | ||
line += symbol; | ||
} | ||
line += b; | ||
this.align(this.ALIGN_CENTER); | ||
return this.writeLine(line); | ||
}; | ||
module.exports = Pirit; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9318
274