Skip to content

defaultBox

defaultBox(ctx, view): Box

The default box: the view (where the camera image is, with any backdrop), so the avatar stands where the child stands and is their size; without a view, the whole canvas. In the canvas’s drawing units (a devicePixelRatio scale set with setTransform is taken into account).

CanvasRenderingContext2D

BackdropView | null

Box