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

Function toDataCoords

src/traces/mesh3d/convert.js:61–68  ·  view source on GitHub ↗
(axis, coord, scale, calendar)

Source from the content-addressed store, hash-verified

59
60// Unpack position data
61function toDataCoords(axis, coord, scale, calendar) {
62 var b = [];
63 var len = coord.length;
64 for(var i = 0; i < len; i++) {
65 b[i] = axis.d2l(coord[i], 0, calendar) * scale;
66 }
67 return b;
68}
69
70// Round indices if passed as floats
71function toRoundIndex(a) {

Callers 1

convert.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…