Spaces:
Paused
Paused
Download node_modules/@plotly/d3/src/arrays/transpose.js from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 373 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/d3/src/arrays/transpose.js
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@plotly/d3/src/arrays/transpose.js
-
curl -L -o transpose.js https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/d3/src/arrays/transpose.js
373 Bytes
| import "min"; | |
| d3.transpose = function(matrix) { | |
| if (!(n = matrix.length)) return []; | |
| for (var i = -1, m = d3.min(matrix, d3_transposeLength), transpose = new Array(m); ++i < m;) { | |
| for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) { | |
| row[j] = matrix[j][i]; | |
| } | |
| } | |
| return transpose; | |
| }; | |
| function d3_transposeLength(d) { | |
| return d.length; | |
| } | |