textmode.js / errors / ErrorLayerController
Class: ErrorLayerController
Controls the dedicated internal error layer lifecycle and rendering behavior.
Extends
InternalLayerController<ErrorScreenRendererContext>
Constructors
Constructor
ts
new ErrorLayerController(textmodifier): ErrorLayerController;Create an internal error-layer controller.
Parameters
| Parameter | Type | Description |
|---|---|---|
textmodifier | Textmodifier | Textmodifier instance to render on. |
Returns
ErrorLayerController
Overrides
ts
InternalLayerController<ErrorScreenRendererContext>.constructorMethods
draw()
ts
draw(callback?): void;Set a custom renderer for the internal layer.
Parameters
| Parameter | Type | Description |
|---|---|---|
callback? | (context) => void | Custom draw callback that receives the rendering context. |
Returns
void
Inherited from
ts
InternalLayerController.draw