Constructor of canvas manager
the engine managing the whole library
the parent container
OptionaldomThe source DOM canvas element, if available.
ReadonlyrenderThe render manager
OptionalrenderThe canvas used for rendering and as source for the 2D context. This is an OffscreenCanvas when a DOM canvas is provided.
ReadonlysizeThe particles canvas dimension
Current zoom level
Destroying object actions
Initializes the canvas element
Initializes the canvas background
Initializes the plugins needed by canvas
Loads the canvas HTML element
the canvas source element or OffscreenCanvas
Calculates the size of the canvas
true if the size changed
Sets the pointer events style on the canvas
The pointer-events value to apply.
Sets the zoom level and center point
the new zoom level
Optionalcenter: ICoordinatesoptional center point for zoom (default is canvas center)
Stops the canvas manager
The window resize event handler
Canvas manager