MCPcopy Index your code
hub / github.com/plotly/plotly.js / recordMinTextSize

Function recordMinTextSize

src/traces/bar/uniform_text.js:39–59  ·  view source on GitHub ↗
(
    traceType, // in
    transform, // inout
    fullLayout // inout
)

Source from the content-addressed store, hash-verified

37}
38
39function recordMinTextSize(
40 traceType, // in
41 transform, // inout
42 fullLayout // inout
43) {
44 if(fullLayout.uniformtext.mode) {
45 var minKey = getMinKey(traceType);
46 var minSize = fullLayout.uniformtext.minsize;
47 var size = transform.scale * transform.fontSize;
48
49 transform.hide = size < minSize;
50
51 fullLayout[minKey] = fullLayout[minKey] || Infinity;
52 if(!transform.hide) {
53 fullLayout[minKey] = Math.min(
54 fullLayout[minKey],
55 Math.max(size, minSize)
56 );
57 }
58 }
59}
60
61function clearMinTextSize(
62 traceType, // in

Callers 8

strTransformFunction · 0.85
plot.jsFile · 0.85
appendBarTextFunction · 0.85
plotFunction · 0.85
toMoveInsideSliceFunction · 0.85
strTransformFunction · 0.85

Calls 1

getMinKeyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…