supervision-js
    Preparing search index...

    Interface BaseBoxStyleOptions

    interface BaseBoxStyleOptions {
        cornerRadius?: DetectionStyleValue<
            number
            | undefined,
            AnnotationStyleContext,
        >;
        fill?: DetectionStyleValue<
            Partial<BoxFillStyle>
            | null,
            AnnotationStyleContext,
        >;
        shape?: DetectionStyleValue<BoxShape, AnnotationStyleContext>;
        shouldRender?: DetectionStylePredicate<AnnotationStyleContext>;
        stroke?: DetectionStyleValue<
            Partial<BoxStrokeStyle>
            | null,
            AnnotationStyleContext,
        >;
    }
    Index
    cornerRadius?: DetectionStyleValue<number | undefined, AnnotationStyleContext>

    Rounded rectangle corner radius in media pixels.

    fill?: DetectionStyleValue<Partial<BoxFillStyle> | null, AnnotationStyleContext>

    Optional box fill. Pass a resolver for per-class or confidence-aware fills.

    shape?: DetectionStyleValue<BoxShape, AnnotationStyleContext>

    Box geometry. Pass a resolver for per-class or per-state shape changes.

    shouldRender?: DetectionStylePredicate<AnnotationStyleContext>

    Return false to skip rendering a detection in this box style.

    stroke?: DetectionStyleValue<
        Partial<BoxStrokeStyle>
        | null,
        AnnotationStyleContext,
    >

    Box stroke. Pass null to disable strokes, or a resolver for per-detection stroke styling.