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

Function parseAlignmentY

src/traces/scatter3d/convert.js:135–139  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

133}
134
135function parseAlignmentY(a) {
136 if (a === null || a === undefined) return 0;
137
138 return a.indexOf('top') > -1 ? -1 : a.indexOf('bottom') > -1 ? 1 : 0;
139}
140
141function calculateTextOffset(tp) {
142 // Read out text properties

Callers 1

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