Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions types/plotly.js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,15 @@ export interface Layout {
hovermode: "closest" | "x" | "y" | "x unified" | "y unified" | false;
hoverdistance: number;
hoverlabel: Partial<HoverLabel>;
/**
* Determines expansion of hover effects to other subplots.
* If "single" just the axis pair of the primary point is included without overlaying subplots.
* If "overlaying" all subplots using the main axis and occupying the same space are included.
* If "axis", also include stacked subplots using the same axis
* when `hovermode` is set to "x", "x unified", "y" or "y unified".
* @default "overlaying"
*/
hoversubplots: "single" | "overlaying" | "axis";
calendar: Calendar;

// these are just the most common nested property updates that you might
Expand Down
3 changes: 2 additions & 1 deletion types/plotly.js/test/core-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ const layout = {
datarevision: 0,
editrevision: 0,
selectionrevision: 0,
};
hoversubplots: "overlaying",
} satisfies Partial<Layout>;

//////////////////////////////////////////////////////////////////////
// Plotly.newPlot
Expand Down
9 changes: 9 additions & 0 deletions types/plotly.js/v2/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,15 @@ export interface Layout {
hovermode: "closest" | "x" | "y" | "x unified" | "y unified" | false;
hoverdistance: number;
hoverlabel: Partial<HoverLabel>;
/**
* Determines expansion of hover effects to other subplots.
* If "single" just the axis pair of the primary point is included without overlaying subplots.
* If "overlaying" all subplots using the main axis and occupying the same space are included.
* If "axis", also include stacked subplots using the same axis
* when `hovermode` is set to "x", "x unified", "y" or "y unified".
* @default "overlaying"
*/
hoversubplots: "single" | "overlaying" | "axis";
calendar: Calendar;
"xaxis.range": [Datum, Datum];
"xaxis.range[0]": Datum;
Expand Down
3 changes: 2 additions & 1 deletion types/plotly.js/v2/test/core-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ const layout = {
datarevision: 0,
editrevision: 0,
selectionrevision: 0,
};
hoversubplots: "overlaying",
} satisfies Partial<Layout>;

//////////////////////////////////////////////////////////////////////
// Plotly.newPlot
Expand Down
1 change: 1 addition & 0 deletions types/react-dom/canary.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ declare module "react" {
listener: EventListener,
optionsOrUseCapture?: Parameters<Element["removeEventListener"]>[2],
): void;
dispatchEvent(event: Event): boolean;
scrollIntoView(alignToTop?: boolean): void;
}
}