diff --git a/create-card.js b/create-card.js index 18fddbc..49de0c8 100644 --- a/create-card.js +++ b/create-card.js @@ -2,12 +2,6 @@ const fetch = require("node-fetch"); const path = require("path"); const { createCanvas, loadImage, registerFont } = require("canvas"); -/** - * @typedef {Object} CardCreator~CanvasDimensions - * @property {number} width The width of the canvas. - * @property {number} height The height of the canvas. - */ - function absolute(relativePath) { return path.join(__dirname, relativePath); } @@ -94,6 +88,12 @@ class CardCreator { this.isInit = false; } + /** + * @typedef {Object} CardCreator~CanvasDimensions + * @property {number} width The width of the canvas. + * @property {number} height The height of the canvas. + */ + /** * The canvas's dimensions. * @type {CardCreator~CanvasDimensions}