MCPcopy Create free account
hub / github.com/leeoniya/uPlot / syncFontSize

Function syncFontSize

src/uPlot.js:281–289  ·  view source on GitHub ↗
(axis)

Source from the content-addressed store, hash-verified

279}
280
281function syncFontSize(axis) {
282 if (axis.show) {
283 [axis.font, axis.labelFont].forEach(f => {
284 let size = roundDec(f[2] * pxRatio, 1);
285 f[0] = f[0].replace(/[0-9.]+px/, size + 'px');
286 f[1] = size;
287 });
288 }
289}
290
291export default function uPlot(opts, data, then) {
292 const self = {

Callers

nothing calls this directly

Calls 1

roundDecFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…