textmode.js / plugins / TextmodePluginContext / registerLayerPostRenderHook
Method: registerLayerPostRenderHook()
ts
registerLayerPostRenderHook(callback): () => void;Register a callback to be invoked after each layer's render cycle. This happens after the user draw callback but before the ASCII resolve pass.
Parameters
| Parameter | Type | Description |
|---|---|---|
callback | LayerRenderHook | The callback to invoke with the layer and render context. |
Returns
A function to unregister the hook.
() => void