feat(ui): add type filter toggles
This commit is contained in:
13
node_modules/d3-selection/src/selection/clone.js
generated
vendored
Normal file
13
node_modules/d3-selection/src/selection/clone.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
function selection_cloneShallow() {
|
||||
var clone = this.cloneNode(false), parent = this.parentNode;
|
||||
return parent ? parent.insertBefore(clone, this.nextSibling) : clone;
|
||||
}
|
||||
|
||||
function selection_cloneDeep() {
|
||||
var clone = this.cloneNode(true), parent = this.parentNode;
|
||||
return parent ? parent.insertBefore(clone, this.nextSibling) : clone;
|
||||
}
|
||||
|
||||
export default function(deep) {
|
||||
return this.select(deep ? selection_cloneDeep : selection_cloneShallow);
|
||||
}
|
||||
Reference in New Issue
Block a user