Spaces:
Paused
Paused
Download node_modules/@plotly/d3/src/selection/enter-insert.js from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 538 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/d3/src/selection/enter-insert.js
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@plotly/d3/src/selection/enter-insert.js
-
curl -L -o enter-insert.js https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/d3/src/selection/enter-insert.js
538 Bytes
| import "selection"; | |
| import "enter"; | |
| d3_selection_enterPrototype.insert = function(name, before) { | |
| if (arguments.length < 2) before = d3_selection_enterInsertBefore(this); | |
| return d3_selectionPrototype.insert.call(this, name, before); | |
| }; | |
| function d3_selection_enterInsertBefore(enter) { | |
| var i0, j0; | |
| return function(d, i, j) { | |
| var group = enter[j].update, | |
| n = group.length, | |
| node; | |
| if (j != j0) j0 = j, i0 = 0; | |
| if (i >= i0) i0 = i + 1; | |
| while (!(node = group[i0]) && ++i0 < n); | |
| return node; | |
| }; | |
| } | |