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

Function getMainTitleDyAdj

src/plot_api/subroutines.js:596–604  ·  view source on GitHub ↗
(yanchor)

Source from the content-addressed store, hash-verified

594}
595
596function getMainTitleDyAdj(yanchor) {
597 if(yanchor === 'top') {
598 return alignmentConstants.CAP_SHIFT + 0.3 + 'em';
599 } else if(yanchor === 'bottom') {
600 return '-0.3em';
601 } else {
602 return alignmentConstants.MID_SHIFT + 'em';
603 }
604}
605
606function getMainTitleTextAnchor(fullLayout) {
607 var title = fullLayout.title;

Callers 1

subroutines.jsFile · 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…