MCPcopy Create free account
hub / github.com/chartjs/Chart.js / borderAlphaAtMidHide

Function borderAlphaAtMidHide

test/specs/core.controller.spec.js:3033–3037  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

3031
3032 // The border colour of the line half way through the hide animation.
3033 function borderAlphaAtMidHide(line) {
3034 const animation = line.options.$animations.borderColor;
3035 animation.tick(animation._start + animation._duration / 2);
3036 return alphaOf(line.options.borderColor);
3037 }
3038
3039 function legendItemCenter(chart, index) {
3040 const hitBox = chart.legend.legendHitBoxes[index];

Callers 1

Calls 2

alphaOfFunction · 0.85
tickMethod · 0.80

Tested by

no test coverage detected