supervision-js
    Preparing search index...

    Interface InteractionStyleContext

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

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

    Hierarchy

    • AnnotationStyleContext
      • InteractionStyleContext
    Index
    detectionIndex: number
    ephemeral?: boolean
    hidden?: boolean
    hovered?: boolean
    isCreating?: boolean
    loading?: boolean
    mediaTime: number
    selected?: boolean
    viewportScale?: number

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