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

Function textLayout

src/components/legend/draw.js:737–742  ·  view source on GitHub ↗
(s, g, gd, legendObj, aTitle)

Source from the content-addressed store, hash-verified

735
736
737function textLayout(s, g, gd, legendObj, aTitle) {
738 if(legendObj._inHover) s.attr('data-notex', true); // do not process MathJax for unified hover
739 svgTextUtils.convertToTspans(s, gd, function() {
740 computeTextDimensions(g, gd, legendObj, aTitle);
741 });
742}
743
744function computeTextDimensions(g, gd, legendObj, aTitle) {
745 var legendItem = g.data()[0][0];

Callers 2

drawOneFunction · 0.70
drawTextsFunction · 0.70

Calls 1

computeTextDimensionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…