StaticgetGets the currently active canvas instance
The current canvas instance or undefined if none exists
StaticgetGets a specific canvas instance by type
The canvas type to retrieve
The canvas type to retrieve
The canvas instance of the specified type or undefined
StaticloadLoads and initializes an canvas instance
The canvas type to load
Promise resolving to the initialized canvas instance
This method will destroy any previously loaded canvas instance before creating a new one. Use getInstance to access the currently active canvas.
Example