<!-- Public documentation export; not library implementation source. -->
# ContextMenuPosition

[Integration guide](https://docs.lumencharts.com/charting-library/reference/compatibility) · [Reference index](https://docs.lumencharts.com/charting-library/api/)

Public contract reference. This declaration describes types and callback shapes; availability is constrained by the linked integration guide and the runtime capability. Legacy product-specific fields are not a promise of implementation.

## clientX {#clientx}

```ts
clientX: number;
```

Use the type signature above and the integration guide for the owning capability.

## clientY {#clienty}

```ts
clientY: number;
```

Use the type signature above and the integration guide for the owning capability.

## touches {#touches}

```ts
touches?: readonly {
    clientX: number;
    clientY: number;
  }[];
```

Use the type signature above and the integration guide for the owning capability.

## attachToXBy {#attachtoxby}

```ts
attachToXBy?: "left" | "right" | "auto";
```

Use the type signature above and the integration guide for the owning capability.

## attachToYBy {#attachtoyby}

```ts
attachToYBy?: "auto" | "auto-strict" | "top" | "bottom";
```

Use the type signature above and the integration guide for the owning capability.

## box {#box}

```ts
box?: {
    x: number;
    y: number;
    w: number;
    h: number;
    overlapX?: boolean;
  };
```

Use the type signature above and the integration guide for the owning capability.

## marginX {#marginx}

```ts
marginX?: number;
```

Use the type signature above and the integration guide for the owning capability.

## marginY {#marginy}

```ts
marginY?: number;
```

Use the type signature above and the integration guide for the owning capability.

---
Documentation page: https://docs.lumencharts.com/charting-library/api/ContextMenuPosition
