MCPcopy Index your code
hub / github.com/microsoft/SandDance / getDataIndexOfCube

Function getDataIndexOfCube

packages/sanddance/src/ordinal.ts:29–36  ·  view source on GitHub ↗
(cube: VegaDeckGl.types.Cube, data: object[])

Source from the content-addressed store, hash-verified

27}
28
29export function getDataIndexOfCube(cube: VegaDeckGl.types.Cube, data: object[]) {
30 const len = data.length;
31 for (let i = 0; i < len; i++) {
32 if (data[i][GL_ORDINAL] === cube.ordinal) {
33 return i;
34 }
35 }
36}

Callers 1

onCubeHoverMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected