mcut
@mcut/compositor

applyChrome

Generated TypeScript API reference for the public mcut SDK.

mcut SDK


mcut SDK / compositor/src / applyChrome

Function: applyChrome()

function applyChrome(
   ctx,
   chrome,
   draw): void;

Defined in: packages/compositor/src/backend.ts:91

Transform + opacity + effect-stack filter + blend mode around a canvas2d draw (the original withTransform). ctx.filter is unsupported in some older engines; there the stack degrades to an unfiltered render rather than failing.

Parameters

ctx

Canvas2D

chrome

LayerChrome

draw

() => void

Returns

void

On this page