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

Method fillLineOfText

src/plugins/plugin.tooltip.js:880–883  ·  src/plugins/plugin.tooltip.js::Tooltip.fillLineOfText
(line)

Source from the content-addressed store, hash-verified

878 const rtlHelper = getRtlAdapter(options.rtl, this.x, this.width);
879
880 const fillLineOfText = function(line) {
881 ctx.fillText(line, rtlHelper.x(pt.x + xLinePadding), pt.y + bodyLineHeight / 2);
882 pt.y += bodyLineHeight + bodySpacing;
883 };
884
885 const bodyAlignForCalculation = rtlHelper.textAlign(bodyAlign);
886 let bodyItem, textColor, lines, i, j, ilen, jlen;

Callers

nothing calls this directly

Calls 2

fillTextMethod · 0.80
xMethod · 0.80

Tested by

no test coverage detected