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