g3-toolkit API Reference
    Preparing search index...

    Interface MenuTarget

    Context about the right-click target.

    interface MenuTarget {
        data?: Record<string, unknown>;
        id?: string;
        position: { x: number; y: number };
        type: MenuTargetType;
    }
    Index

    Properties

    Properties

    data?: Record<string, unknown>

    Arbitrary data the target element carries (node/edge attributes).

    id?: string

    Element ID (undefined for background clicks).

    position: { x: number; y: number }

    Screen coordinates of the click.