Spaces:
Paused
Paused
Download node_modules/@plotly/d3/src/transition/duration.js from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 471 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/d3/src/transition/duration.js
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@plotly/d3/src/transition/duration.js
-
curl -L -o duration.js https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/d3/src/transition/duration.js
471 Bytes
| import "../selection/each"; | |
| import "transition"; | |
| d3_transitionPrototype.duration = function(value) { | |
| var id = this.id, ns = this.namespace; | |
| if (arguments.length < 1) return this.node()[ns][id].duration; | |
| return d3_selection_each(this, typeof value === "function" | |
| ? function(node, i, j) { node[ns][id].duration = Math.max(1, value.call(node, node.__data__, i, j)); } | |
| : (value = Math.max(1, value), function(node) { node[ns][id].duration = value; })); | |
| }; | |