MCPcopy Create free account
hub / github.com/plotly/plotly.js / getDfltStartingPositions

Function getDfltStartingPositions

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

Source from the content-addressed store, hash-verified

55};
56
57function getDfltStartingPositions(vec) {
58 var len = vec.length;
59 var s;
60
61 if(len > 2) {
62 s = vec.slice(1, len - 1);
63 } else if(len === 2) {
64 s = [(vec[0] + vec[1]) / 2];
65 } else {
66 s = vec;
67 }
68 return s;
69}
70
71function getBoundPads(vec) {
72 var len = vec.length;

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…