supervision-js
    Preparing search index...

    Interface InteractionStyleContext

    Per-frame context passed to an interaction style while resolving hover and selected highlight instructions.

    interface InteractionStyleContext {
        state: DetectionInteractionState;
        target: DetectionPickTarget;
        point: DetectionPickPoint;
        geometryIndex?: number;
        mediaTime: number;
        frame: DetectionFrame;
        detectionIndex: number;
        viewportScale?: number;
        ephemeral?: boolean;
        isCreating?: boolean;
        hidden?: boolean;
        loading?: boolean;
        hovered?: boolean;
        selected?: boolean;
    }

    Hierarchy

    • AnnotationStyleContext
      • InteractionStyleContext
    Index
    geometryIndex?: number

    Index of the picked keypoint or edge when the target has sub-geometry.

    mediaTime: number
    detectionIndex: number
    viewportScale?: number

    Media-to-screen scale. Screen-space style values are divided by this.

    ephemeral?: boolean
    isCreating?: boolean
    hidden?: boolean
    loading?: boolean
    hovered?: boolean
    selected?: boolean