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

Function getMainTitleDy

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

Source from the content-addressed store, hash-verified

617}
618
619function getMainTitleDy(fullLayout) {
620 var title = fullLayout.title;
621
622 var dy = '0em';
623 if(Lib.isTopAnchor(title)) {
624 dy = alignmentConstants.CAP_SHIFT + 'em';
625 } else if(Lib.isMiddleAnchor(title)) {
626 dy = alignmentConstants.MID_SHIFT + 'em';
627 }
628
629 return dy;
630}
631
632exports.doTraceStyle = function(gd) {
633 var calcdata = gd.calcdata;

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…