tahamajs's picture
download
raw
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);
}
};
}

Xet Storage Details

Size:
813 Bytes
·
Xet hash:
6c74d64d5dac61adb196efe93d388fffc958f8f485f2a5a7a186f349603f8298

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.