zxcraxs-canvas
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "zxcraxs-canvas", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "canvas-canvas", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,2 +10,3 @@ const { createCanvas, loadImage, registerFont } = require('canvas'); | ||
this.avatar = "https://i.imgur.com/cNuEFiQ.jpg"; | ||
this.template = "https://i.ibb.co/6wMZWH9/card.png"; | ||
@@ -39,4 +40,2 @@ } | ||
let template = await loadImage('../assets/template/card.jpg'); | ||
const profile = await Canvas.loadImage(this.avatar); | ||
@@ -48,3 +47,3 @@ | ||
// Draw Template | ||
ctx.drawImage(template, 0, 0, canvas.width, canvas.height); | ||
ctx.drawImage(this.template, 0, 0, canvas.width, canvas.height); | ||
@@ -51,0 +50,0 @@ // Card Title |
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
8164707