Return an array listing the events for which the emitter has registered listeners.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Add a listener for a given event.
Add a one-time listener for a given event.
Converts coordinates in "pixel space" to coordinates in "tile space". In essence, if you pass in an (x, y) position on the canvas, this returns the corresponding (x, y) position on the grid.
The x position, in pixels, to get the corresponding grid position for
The y position, in pixels, to get the corresponding grid position for
The width of the grid, in grid tiles
The height of the grid, in grid tiles
Remove all listeners, or those of the specified event.
Remove the listeners of a given event.
Update the grid size width and height.
Update, then draw the current state of the app to the canvas element.
The grid to be rendered
Generated using TypeDoc
Calls each of the listeners registered for a given event.