qqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "qqqqqqqqqqqqqqqqqqqqqqqqqqqqqq", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Image manipulation for discord bot or other app", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -33,3 +33,3 @@ const Canvas = require('canvas') | ||
fake: { | ||
value: 1, | ||
value: 0, | ||
text_color: '#ACAEB2', | ||
@@ -139,3 +139,3 @@ value_color: '#FFFFFF' | ||
* | ||
* @param {Number} value User's Regular balance | ||
* @param {Number} value User's wallet balance | ||
* @param {String} textColor Text Color | ||
@@ -145,5 +145,5 @@ * @param {String} valueColor Value Color | ||
setRegular(value = 0, textColor = '#ACAEB2', valueColor = '#FFFFFF') { | ||
if (typeof value !== 'number') throw new TypeError('Regular value needs to be number!') | ||
if (typeof textColor !== 'string') throw new TypeError('Regular text color needs to be string!') | ||
if (typeof valueColor !== 'string') throw new TypeError('Regular value color needs to be string!') | ||
if (typeof value !== 'number') throw new TypeError('regular value needs to be number!') | ||
if (typeof textColor !== 'string') throw new TypeError('regular text color needs to be string!') | ||
if (typeof valueColor !== 'string') throw new TypeError('regular value color needs to be string!') | ||
@@ -245,3 +245,3 @@ this.data.regular.value = value; | ||
ctx.fillText('Regular', 153, 717) | ||
ctx.fillStyle = this.data.top.text_color | ||
ctx.fillStyle = this.data.fake.text_color | ||
ctx.fillText('Fake', 375, 717) | ||
@@ -254,7 +254,7 @@ ctx.fillStyle = this.data.leave.text_color | ||
ctx.fillStyle = this.data.regular.value_color | ||
ctx.fillText(this.data.currency + CurrencyFormat(this.data.regular.value), 153, 782) | ||
ctx.fillText(this.data.currency + CurrencyFormat(this.data.wallet.value), 153, 782) | ||
ctx.fillStyle = this.data.fake.value_color | ||
ctx.fillText(CurrencyFormat(this.data.fake.value), 375, 782) | ||
ctx.fillText(CurrencyFormat(this.data.rank.value), 375, 782) | ||
ctx.fillStyle = this.data.leave.value_color | ||
ctx.fillText(this.data.currency + CurrencyFormat(this.data.leave.value), 599, 782) | ||
ctx.fillText(this.data.currency + CurrencyFormat(this.data.bank.value), 599, 782) | ||
@@ -261,0 +261,0 @@ ctx.fillStyle= this.data.seperator.color |
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
911341