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

Function getTitleSize

src/components/legend/draw.js:834–849  ·  view source on GitHub ↗
(legendObj)

Source from the content-addressed store, hash-verified

832}
833
834function getTitleSize(legendObj) {
835 var w = 0;
836 var h = 0;
837
838 var side = legendObj.title.side;
839 if(side) {
840 if(side.indexOf('left') !== -1) {
841 w = legendObj._titleWidth;
842 }
843 if(side.indexOf('top') !== -1) {
844 h = legendObj._titleHeight;
845 }
846 }
847
848 return [w, h];
849}
850
851/*
852 * Computes in fullLayout[legendId]:

Callers 1

computeLegendDimensionsFunction · 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…