supervision-js
    Preparing search index...

    Interface MediaRendererPresentation

    Current annotation renderer, interaction, visibility, and scene presentation.

    interface MediaRendererPresentation {
        backgroundColor?: number;
        annotationOverlayStyle?: AnnotationOverlayStyle | null;
        annotationAntialiasing?: AnnotationAntialiasing;
        renderers?: readonly AnnotationRenderer[];
        boxStyle?: BoxStyle | null;
        boxCornerStyle?: BoxCornerStyle | null;
        focusStyle?: FocusStyle | null;
        interactionStyle?: InteractionStyle | null;
        labelStyle?: LabelStyle | null;
        maskHaloStyle?: MaskHaloStyle | null;
        maskStyle?: MaskStyle | null;
        markerStyle?: MarkerStyle | null;
        orientedBoxStyle?: OrientedBoxStyle | null;
        percentageBarStyle?: PercentageBarStyle | null;
        polygonStyle?: PolygonStyle | null;
        polylineStyle?: PolylineStyle | null;
        ellipseStyle?: EllipseStyle | null;
        keypointStyle?: KeypointStyle | null;
        visibility?: AnnotationVisibility;
    }

    Hierarchy (View Summary)

    Index
    backgroundColor?: number

    Renderer canvas color shown around media that is letterboxed or not yet presented. Hosts can update this with their color theme without recreating the media session.

    annotationOverlayStyle?: AnnotationOverlayStyle | null
    annotationAntialiasing?: AnnotationAntialiasing

    Smooth annotation edges independently of video and canvas resolution. Applies to fills, borders, focus and interaction overlays. Media region effects smooth their coverage while preserving the sampled video. true enables FXAA at output density; 2 captures at twice that density. Label backgrounds are smoothed while text stays sharp. Separated label runs share captures; overlaps split captures to preserve blending and draw order. Defaults to false. The 2× capture preserves more mask detail, up to the original resolution, increasing preparation work, cache bytes and GPU memory.

    renderers?: readonly AnnotationRenderer[]

    Built-in renderers that contribute semantic annotations to the renderer-owned scene. When present, this list selects the enabled built-in layers. Style-backed descriptors resolve into their established presentation fields, while direct descriptors such as region retain their semantic configuration for the backend. Existing style fields remain supported for compatibility and source-specific presentation overrides.

    boxStyle?: BoxStyle | null
    boxCornerStyle?: BoxCornerStyle | null
    focusStyle?: FocusStyle | null
    interactionStyle?: InteractionStyle | null
    labelStyle?: LabelStyle | null
    maskHaloStyle?: MaskHaloStyle | null
    maskStyle?: MaskStyle | null
    markerStyle?: MarkerStyle | null
    orientedBoxStyle?: OrientedBoxStyle | null
    percentageBarStyle?: PercentageBarStyle | null
    polygonStyle?: PolygonStyle | null
    polylineStyle?: PolylineStyle | null
    ellipseStyle?: EllipseStyle | null
    keypointStyle?: KeypointStyle | null