MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / fillText

Function fillText

static/plugins/chart.js/Chart.bundle.js:13582–13594  ·  view source on GitHub ↗
(ctx, text, position, lineHeight)

Source from the content-addressed store, hash-verified

13580}
13581
13582function fillText(ctx, text, position, lineHeight) {
13583 var y = position.y + lineHeight / 2;
13584 var i, ilen;
13585
13586 if (helpers$1.isArray(text)) {
13587 for (i = 0, ilen = text.length; i < ilen; ++i) {
13588 ctx.fillText(text[i], position.x, y);
13589 y += lineHeight;
13590 }
13591 } else {
13592 ctx.fillText(text, position.x, y);
13593 }
13594}
13595
13596function adjustPointPositionForLabelHeight(angle, textSize, position) {
13597 if (angle === 90 || angle === 270) {

Callers 2

drawPointLabelsFunction · 0.70
Chart.bundle.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected