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

Function getBoundPads

src/traces/streamtube/convert.js:71–78  ·  view source on GitHub ↗
(vec)

Source from the content-addressed store, hash-verified

69}
70
71function getBoundPads(vec) {
72 var len = vec.length;
73 if(len === 1) {
74 return [0.5, 0.5];
75 } else {
76 return [vec[1] - vec[0], vec[len - 1] - vec[len - 2]];
77 }
78}
79
80function convert(scene, trace) {
81 var sceneLayout = scene.fullSceneLayout;

Callers 1

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