Skip to content

textmode.js / errors / ErrorLayerController

Class: ErrorLayerController ​

Controls the dedicated internal error layer lifecycle and rendering behavior.

Extends ​

Constructors ​

Constructor ​

ts
new ErrorLayerController(textmodifier): ErrorLayerController;

Create an internal error-layer controller.

Parameters ​

ParameterTypeDescription
textmodifierTextmodifierTextmodifier instance to render on.

Returns ​

ErrorLayerController

Overrides ​

ts
InternalLayerController<ErrorScreenRendererContext>.constructor

Methods ​

draw() ​

ts
draw(callback?): void;

Set a custom renderer for the internal layer.

Parameters ​

ParameterTypeDescription
callback?(context) => voidCustom draw callback that receives the rendering context.

Returns ​

void

Inherited from ​

ts
InternalLayerController.draw