MCPcopy
hub / github.com/chartjs/Chart.js / getHoverColor

Function getHoverColor

src/helpers/helpers.color.ts:28–32  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

26export function getHoverColor(value: CanvasPattern): CanvasPattern;
27export function getHoverColor(value: string): string;
28export function getHoverColor(value) {
29 return isPatternOrGradient(value)
30 ? value
31 : new Color(value).saturate(0.5).darken(0.1).hexString();
32}

Callers 3

constructorMethod · 0.85

Calls 1

isPatternOrGradientFunction · 0.85

Tested by

no test coverage detected