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

Function getMainTitleTextAnchor

src/plot_api/subroutines.js:606–617  ·  view source on GitHub ↗
(fullLayout)

Source from the content-addressed store, hash-verified

604}
605
606function getMainTitleTextAnchor(fullLayout) {
607 var title = fullLayout.title;
608
609 var textAnchor = SVG_TEXT_ANCHOR_MIDDLE;
610 if(Lib.isRightAnchor(title)) {
611 textAnchor = SVG_TEXT_ANCHOR_END;
612 } else if(Lib.isLeftAnchor(title)) {
613 textAnchor = SVG_TEXT_ANCHOR_START;
614 }
615
616 return textAnchor;
617}
618
619function getMainTitleDy(fullLayout) {
620 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…