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

Function calculateLegendItemHeight

src/plugins/plugin.legend.js:577–580  ·  view source on GitHub ↗
(legendItem, fontLineHeight)

Source from the content-addressed store, hash-verified

575}
576
577function calculateLegendItemHeight(legendItem, fontLineHeight) {
578 const labelHeight = legendItem.text ? legendItem.text.length : 0;
579 return fontLineHeight * labelHeight;
580}
581
582function isListened(type, opts) {
583 if ((type === 'mousemove' || type === 'mouseout') && (opts.onHover || opts.onLeave)) {

Callers 2

_drawMethod · 0.85
calculateItemHeightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected