Merge pull request #16 from karashiiro/master

Add proper type annotations for canvasSize
This commit is contained in:
karashiiro 2021-05-31 11:47:52 -07:00 committed by GitHub
commit e4325d51aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,8 +88,15 @@ 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}
*/
get canvasSize() {
return {