Skip to content

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

ParameterTypeDescription
callbackLayerRenderHookThe callback to invoke with the layer and render context.

Returns

A function to unregister the hook.

() => void

Example