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

Function maxLineWidth

src/plugins/plugin.tooltip.js:187–189  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

185 // Title width
186 let widthPadding = 0;
187 const maxLineWidth = function(line) {
188 width = Math.max(width, ctx.measureText(line).width + widthPadding);
189 };
190
191 ctx.save();
192

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected