Type Alias ContextMenuTargetKind

ContextMenuTargetKind:
    | "drawing"
    | "indicator"
    | "legend"
    | "primitive"
    | "series"
    | "price-scale"
    | "time-scale"
    | "empty"

What the pointer was over when the context menu was raised. The chart cannot know which menu items an app wants, but it does know what was hit, which is the part an app cannot work out for itself: a canvas gives it a pixel, not an object. primitive is anything hit-testable that is not one of the named kinds (a price line, an order pill, a marker).