Merge pull request #16 from karashiiro/master
Add proper type annotations for canvasSize
This commit is contained in:
commit
e4325d51aa
1 changed files with 7 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue