Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#68794 [@types/plotly.js] Add legend types …
Browse files Browse the repository at this point in the history
…to shapes by @MathisLeclair

Co-authored-by: mathis <[email protected]>
  • Loading branch information
MathisLeclair and aj1084865 authored Mar 6, 2024
1 parent e03b7cc commit 054f0ec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion types/plotly.js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ export interface ShapeLabel {
}

export interface Shape {
visible: boolean;
visible: boolean | "legendonly";
layer: "below" | "above";
type: "rect" | "circle" | "line" | "path";
path: string;
Expand All @@ -909,6 +909,13 @@ export interface Shape {
opacity: number;
line: Partial<ShapeLine>;
label: Partial<ShapeLabel>;
showlegend: boolean;
legendgroup: string;
legendgrouptitle: {
text: string;
font?: Partial<Font>;
};
legendrank: number;
}

export interface Margin {
Expand Down

0 comments on commit 054f0ec

Please sign in to comment.