Home Reference Source Test
import {_DOMManager} from 'seed-engine/src/manager/DOMManager.js'
private class | source

_DOMManager

You can directly use an instance of this class. DOMManager

Extends:

Manager → _DOMManager

Manages the connection between the DOM and the Game & Engine.

The DOMManager sets up and holds reference to the DOM elements required to display the game.

Constructor Summary

Public Constructor
public

Initializes defaults for the DOMManager to hold once started.

Member Summary

Public Members
public

GL: *

public

canvas: *

public
public
public
public

Method Summary

Public Methods
public

adjust()

public

Loads the canvas & sets up a WebGL2 context to be used by the engine by the id 'game'.

public

start()

Loads the canvas & setup for WebGL.

Inherited Summary

From class Manager
public

end()

public

pause()

public

start()

public
public

update()

Public Constructors

public constructor() source

Initializes defaults for the DOMManager to hold once started.

Override:

Manager#constructor

Public Members

public GL: * source

public canvas: * source

public canvasDPIHeight: number source

public canvasDPIWidth: number source

public canvasHeight: number source

public canvasWidth: number source

Public Methods

public adjust() source

public loadCanvas() source

Loads the canvas & sets up a WebGL2 context to be used by the engine by the id 'game'. If nothing is happening on screen, ensure that the canvas you are using has this id in its HTML tag.

public start() source

Loads the canvas & setup for WebGL.

Override:

Manager#start