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

Function boxIntersectWrapper

stackgl_modules/index.js:6423–6438  ·  view source on GitHub ↗
(arg0, arg1, arg2)

Source from the content-addressed store, hash-verified

6421
6422//User-friendly wrapper, handle full input and no-visitor cases
6423function boxIntersectWrapper(arg0, arg1, arg2) {
6424 switch(arguments.length) {
6425 case 1:
6426 return intersectFullArray(arg0)
6427 case 2:
6428 if(typeof arg1 === 'function') {
6429 return boxIntersect(arg0, arg0, arg1, true)
6430 } else {
6431 return intersectBipartiteArray(arg0, arg1)
6432 }
6433 case 3:
6434 return boxIntersect(arg0, arg1, arg2, false)
6435 default:
6436 throw new Error('box-intersect: Invalid arguments')
6437 }
6438}
6439
6440/***/ }),
6441

Callers

nothing calls this directly

Calls 3

intersectFullArrayFunction · 0.85
boxIntersectFunction · 0.85
intersectBipartiteArrayFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…