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

Function getScaleLabelHeight

static/plugins/chart.js/Chart.js:11286–11297  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

11284}
11285
11286function getScaleLabelHeight(options) {
11287 var font, padding;
11288
11289 if (!options.display) {
11290 return 0;
11291 }
11292
11293 font = helpers$1.options._parseFont(options);
11294 padding = helpers$1.options.toPadding(options.padding);
11295
11296 return font.lineHeight + padding.height;
11297}
11298
11299function parseFontOptions(options, nestedOpts) {
11300 return helpers$1.extend(helpers$1.options._parseFont({

Callers 1

Chart.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected