mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add types for @types/chart.js (tooltip model) (#42740)
* Add new tooltip model types * Fix mistyping
This commit is contained in:
parent
c59c876a6a
commit
f581dbb72f
8
types/chart.js/index.d.ts
vendored
8
types/chart.js/index.d.ts
vendored
@ -24,6 +24,7 @@
|
||||
// Oscar Cabrera <https://github.com/mrjack88>
|
||||
// Carlos Anoceto <https://github.com/canoceto>
|
||||
// Nobuhiko Futagami <https://github.com/nobu222>
|
||||
// Marco Ru <https://github.com/Marcoru97>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@ -370,26 +371,33 @@ declare namespace Chart {
|
||||
}
|
||||
|
||||
interface ChartTooltipModel {
|
||||
afterBody: string[];
|
||||
backgroundColor: string;
|
||||
beforeBody: string[];
|
||||
body: ChartTooltipModelBody[];
|
||||
bodyFontColor: string;
|
||||
bodyFontSize: number;
|
||||
bodySpacing: number;
|
||||
borderColor: string;
|
||||
borderWidth: number;
|
||||
caretPadding: number;
|
||||
caretSize: number;
|
||||
caretX: number;
|
||||
caretY: number;
|
||||
cornerRadius: number;
|
||||
dataPoints: ChartTooltipItem[];
|
||||
displayColors: boolean;
|
||||
footer: string[];
|
||||
footerFontColor: string;
|
||||
footerFontSize: number;
|
||||
footerMarginTop: number;
|
||||
footerSpacing: number;
|
||||
height: number;
|
||||
labelColors: string[];
|
||||
labelTextColors: string[];
|
||||
legendColorBackground: string;
|
||||
opacity: number;
|
||||
title: string[];
|
||||
titleFontColor: string;
|
||||
titleFontSize: number;
|
||||
titleMarginBottom: number;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user