MCPcopy Create free account
hub / github.com/idank/explainshell / padFunction

Function padFunction

explainshell/web/static/js/d3.v3.js:6268–6271  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

6266 treemap.padding = function(x) {
6267 if (!arguments.length) return padding;
6268 function padFunction(node) {
6269 var p = x.call(treemap, node, node.depth);
6270 return p == null ? d3_layout_treemapPadNull(node) : d3_layout_treemapPad(node, typeof p === "number" ? [ p, p, p, p ] : p);
6271 }
6272 function padConstant(node) {
6273 return d3_layout_treemapPad(node, x);
6274 }

Callers

nothing calls this directly

Calls 3

d3_layout_treemapPadNullFunction · 0.85
d3_layout_treemapPadFunction · 0.85
callMethod · 0.45

Tested by

no test coverage detected