RedactStyle
RedactStyle =
object
Defined in: types.ts:816
How a redacted region is drawn over the page. The mask is an opaque panel applied client side in the live DOM, so the obscured pixels never enter the recording and are never uploaded, and it cannot leak under any renderer.
By default the panel is filled with a color sampled from the surface beneath
it, so it blends in as a clean block. Set color for a fixed fill, or css
to fully style the panel.
Properties
Section titled “Properties”color?
Section titled “color?”
optionalcolor?:string
Defined in: types.ts:821
Opaque fill color, e.g. ‘#fff3d6’. Omit to sample a color from the surface underneath the element.
optionalcss?:string
Defined in: types.ts:832
Extra CSS applied to the mask panel for full custom styling, e.g.
'background: repeating-linear-gradient(45deg,#222 0 6px,#333 6px 12px)'.
Applied last, so it overrides the defaults. Keep the panel opaque, or the
content underneath may show through.
radius?
Section titled “radius?”
optionalradius?:number
Defined in: types.ts:823
Corner radius of the mask in px (default 12).
shadow?
Section titled “shadow?”
optionalshadow?:string|false
Defined in: types.ts:825
CSS box-shadow for the mask, or false to disable it.