Gathering detailed insights and metrics for @types/chartjs-plugin-crosshair
Gathering detailed insights and metrics for @types/chartjs-plugin-crosshair
Gathering detailed insights and metrics for @types/chartjs-plugin-crosshair
Gathering detailed insights and metrics for @types/chartjs-plugin-crosshair
The repository for high quality TypeScript type definitions.
npm install @types/chartjs-plugin-crosshair
Typescript
Module System
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
50,040 Stars
89,741 Commits
30,435 Forks
640 Watchers
6 Branches
9,957 Contributors
Updated on Jul 15, 2025
Latest Version
1.1.4
Package Id
@types/chartjs-plugin-crosshair@1.1.4
Unpacked Size
6.65 kB
Size
2.08 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
npm install --save @types/chartjs-plugin-crosshair
This package contains type definitions for chartjs-plugin-crosshair (https://chartjs-plugin-crosshair.netlify.com).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chartjs-plugin-crosshair.
1import * as Chart from "chart.js"; 2 3declare module "chart.js" { 4 interface ChartPluginsOptions { 5 crosshair?: CrosshairOptions | undefined; 6 } 7 8 interface InteractionModeRegistry { 9 "interpolate": "interpolate"; 10 } 11 12 interface ChartDataSets { 13 interpolate?: boolean | undefined; 14 } 15} 16 17// This is a workaround needed because: 18// classes exported with `export = ` can't be augmented by normal module augmentation (like we use above) 19// see https://github.com/Microsoft/TypeScript/issues/14080 20declare global { 21 interface Chart { 22 panZoom: (increment: number) => void; 23 } 24} 25 26export interface CrosshairOptions { 27 line?: LineOptions | undefined; 28 sync?: SyncOptions | undefined; 29 zoom?: ZoomOptions | undefined; 30 snap?: SnapOptions | undefined; 31 callbacks?: CallbackOptions | undefined; 32} 33 34/** https://chartjs-plugin-crosshair.netlify.app/options.html#crosshair-line-options */ 35export interface LineOptions { 36 color?: string | undefined; 37 width?: number | undefined; 38 dashPattern?: number[] | undefined; 39} 40 41/** https://chartjs-plugin-crosshair.netlify.app/options.html#chart-interaction-syncing */ 42export interface SyncOptions { 43 enabled?: boolean | undefined; 44 group?: number | undefined; 45 suppressTooltips?: boolean | undefined; 46} 47 48/** https://chartjs-plugin-crosshair.netlify.app/options.html#zooming */ 49export interface ZoomOptions { 50 enabled?: boolean | undefined; 51 zoomboxBackgroundColor?: string | undefined; 52 zoomboxBorderColor?: string | undefined; 53 zoomButtonText?: string | undefined; 54 zoomButtonClass?: string | undefined; 55} 56 57/** https://chartjs-plugin-crosshair.netlify.app/options.html#snapping */ 58export interface SnapOptions { 59 enabled?: boolean | undefined; 60} 61 62/** https://chartjs-plugin-crosshair.netlify.app/options.html#callbacks */ 63export interface CallbackOptions { 64 beforeZoom?: ((start: number, end: number) => boolean) | undefined; 65 afterZoom?: ((start: number, end: number) => void) | undefined; 66} 67
These definitions were written by Dan Manastireanu.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More