Spaces:
Paused
Paused
Download node_modules/@plotly/d3/src/selection/interrupt.js from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 813 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/d3/src/selection/interrupt.js
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@plotly/d3/src/selection/interrupt.js
-
curl -L -o interrupt.js https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/d3/src/selection/interrupt.js
813 Bytes
| // import "../transition/transition"; | |
| import "selection"; | |
| // TODO Interrupt transitions for all namespaces? | |
| d3_selectionPrototype.interrupt = function(name) { | |
| return this.each(name == null | |
| ? d3_selection_interrupt | |
| : d3_selection_interruptNS(d3_transitionNamespace(name))); | |
| }; | |
| var d3_selection_interrupt = d3_selection_interruptNS(d3_transitionNamespace()); | |
| function d3_selection_interruptNS(ns) { | |
| return function() { | |
| var lock, | |
| activeId, | |
| active; | |
| if ((lock = this[ns]) && (active = lock[activeId = lock.active])) { | |
| active.timer.c = null; | |
| active.timer.t = NaN; | |
| if (--lock.count) delete lock[activeId]; | |
| else delete this[ns]; | |
| lock.active += 0.5; | |
| active.event && active.event.interrupt.call(this, this.__data__, active.index); | |
| } | |
| }; | |
| } | |