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

Function boundLineWidth

src/components/legend/style.js:32–42  ·  view source on GitHub ↗
(mlw, cont, max, cst)

Source from the content-addressed store, hash-verified

30 var centerTransform = strTranslate(centerPos, 0);
31
32 var boundLineWidth = function (mlw, cont, max, cst) {
33 var v;
34 if (mlw + 1) {
35 v = mlw;
36 } else if (cont && cont.width > 0) {
37 v = cont.width;
38 } else {
39 return 0;
40 }
41 return constantItemSizing ? cst : Math.min(v, max);
42 };
43
44 s.each(function (d) {
45 var traceGroup = d3.select(this);

Callers 7

styleLinesFunction · 0.85
styleWaterfallsFunction · 0.85
styleBarLikeFunction · 0.85
styleBoxesFunction · 0.85
styleCandlesFunction · 0.85
styleOHLCFunction · 0.85
stylePieLikeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…