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

Function explode

stackgl_modules/index.js:35963–35979  ·  view source on GitHub ↗
(cells)

Source from the content-addressed store, hash-verified

35961
35962//Enumerates all cells in the complex
35963function explode(cells) {
35964 var result = []
35965 for(var i=0, il=cells.length; i<il; ++i) {
35966 var c = cells[i]
35967 , cl = c.length|0
35968 for(var j=1, jl=(1<<cl); j<jl; ++j) {
35969 var b = []
35970 for(var k=0; k<cl; ++k) {
35971 if((j >>> k) & 1) {
35972 b.push(c[k])
35973 }
35974 }
35975 result.push(b)
35976 }
35977 }
35978 return normalize(result)
35979}
35980__webpack_unused_export__ = explode
35981
35982//Enumerates all of the n-cells of a cell complex

Callers

nothing calls this directly

Calls 1

normalizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…