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