MCPcopy Create free account
hub / github.com/BloombergGraphics/whatiscode / d3_selection_creator

Function d3_selection_creator

scripts/libs/d3-jetpack.js:77–83  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

75 }
76
77 function d3_selection_creator(name) {
78 return typeof name === "function" ? name : (name = d3.ns.qualify(name)).local ? function() {
79 return this.ownerDocument.createElementNS(name.space, name.local);
80 } : function() {
81 return this.ownerDocument.createElementNS(this.namespaceURI, name);
82 };
83 }
84
85 function d3_selection_selector(selector) {
86 return typeof selector === "function" ? selector : function() {

Callers 1

jetpackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected