feat(ui): add type filter toggles
This commit is contained in:
11
node_modules/d3-transition/src/transition/remove.js
generated
vendored
Normal file
11
node_modules/d3-transition/src/transition/remove.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
function removeFunction(id) {
|
||||
return function() {
|
||||
var parent = this.parentNode;
|
||||
for (var i in this.__transition) if (+i !== id) return;
|
||||
if (parent) parent.removeChild(this);
|
||||
};
|
||||
}
|
||||
|
||||
export default function() {
|
||||
return this.on("end.remove", removeFunction(this._id));
|
||||
}
|
||||
Reference in New Issue
Block a user