Initial commit
This commit is contained in:
7
node_modules/d3-selection/src/select.js
generated
vendored
Normal file
7
node_modules/d3-selection/src/select.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import {Selection, root} from "./selection/index";
|
||||
|
||||
export default function(selector) {
|
||||
return typeof selector === "string"
|
||||
? new Selection([[document.querySelector(selector)]], [document.documentElement])
|
||||
: new Selection([[selector]], root);
|
||||
}
|
||||
Reference in New Issue
Block a user