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

Function toRoundIndex

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

Source from the content-addressed store, hash-verified

69
70// Round indices if passed as floats
71function toRoundIndex(a) {
72 var b = [];
73 var len = a.length;
74 for(var i = 0; i < len; i++) {
75 b[i] = Math.round(a[i]);
76 }
77 return b;
78}
79
80function delaunayCells(delaunayaxis, positions) {
81 var d = ['x', 'y', 'z'].indexOf(delaunayaxis);

Callers 1

convert.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…