supervision-js
    Preparing search index...

    Interface AnnotationOverlayStyle

    Renderer-neutral presentation for editing affordances and previews.

    interface AnnotationOverlayStyle {
        editingPreview?: {
            stroke?: DetectionStyleValue<
                StrokeStyle,
                AnnotationEditingPreviewStyleContext,
            >;
            boxFill?: DetectionStyleValue<
                FillStyle,
                AnnotationEditingPreviewStyleContext,
            >;
            polygonFill?: DetectionStyleValue<
                FillStyle,
                AnnotationEditingPreviewStyleContext,
            >;
            closeZoneStroke?: DetectionStyleValue<
                StrokeStyle,
                AnnotationEditingPreviewStyleContext,
            >;
        };
        selectionHandle?: {
            fill?: DetectionStyleValue<FillStyle, AnnotationStyleContext>;
            stroke?: DetectionStyleValue<StrokeStyle, AnnotationStyleContext>;
            addVertexAlpha?: number;
            keypointAlpha?: number;
        };
        marquee?: { fill?: FillStyle };
        guide?: { stroke?: StrokeStyle; shadowStroke?: StrokeStyle };
        externalPreview?: {
            hoverFill?: FillStyle;
            hoverStroke?: StrokeStyle;
            draftFill?: FillStyle;
            draftStroke?: StrokeStyle;
            positivePointFill?: FillStyle;
            negativePointFill?: FillStyle;
            pointStroke?: StrokeStyle;
        };
        loading?: { stroke?: StrokeStyle };
    }
    Index
    editingPreview?: {
        stroke?: DetectionStyleValue<
            StrokeStyle,
            AnnotationEditingPreviewStyleContext,
        >;
        boxFill?: DetectionStyleValue<
            FillStyle,
            AnnotationEditingPreviewStyleContext,
        >;
        polygonFill?: DetectionStyleValue<
            FillStyle,
            AnnotationEditingPreviewStyleContext,
        >;
        closeZoneStroke?: DetectionStyleValue<
            StrokeStyle,
            AnnotationEditingPreviewStyleContext,
        >;
    }

    Type Declaration

    selectionHandle?: {
        fill?: DetectionStyleValue<FillStyle, AnnotationStyleContext>;
        stroke?: DetectionStyleValue<StrokeStyle, AnnotationStyleContext>;
        addVertexAlpha?: number;
        keypointAlpha?: number;
    }

    Type Declaration

    • Optional Readonlyfill?: DetectionStyleValue<FillStyle, AnnotationStyleContext>

      Static or annotation-aware handle fills. Resolver support keeps handles visually aligned with each selected annotation, including multi-select.

    • Optional Readonlystroke?: DetectionStyleValue<StrokeStyle, AnnotationStyleContext>
    • Optional ReadonlyaddVertexAlpha?: number
    • Optional ReadonlykeypointAlpha?: number

      Alpha for keypoint handles. Keypoint markers are already drawn by the keypoint style, so consumers that treat the marker itself as the handle set 0 to keep hit testing without a second disc over every point.

    marquee?: { fill?: FillStyle }
    guide?: { stroke?: StrokeStyle; shadowStroke?: StrokeStyle }
    externalPreview?: {
        hoverFill?: FillStyle;
        hoverStroke?: StrokeStyle;
        draftFill?: FillStyle;
        draftStroke?: StrokeStyle;
        positivePointFill?: FillStyle;
        negativePointFill?: FillStyle;
        pointStroke?: StrokeStyle;
    }
    loading?: { stroke?: StrokeStyle }