MCPcopy Create free account
hub / github.com/jipegit/OSXAuditor / padFunction

Function padFunction

d3-3.2.8/d3.js:6604–6607  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

6602 treemap.padding = function(x) {
6603 if (!arguments.length) return padding;
6604 function padFunction(node) {
6605 var p = x.call(treemap, node, node.depth);
6606 return p == null ? d3_layout_treemapPadNull(node) : d3_layout_treemapPad(node, typeof p === "number" ? [ p, p, p, p ] : p);
6607 }
6608 function padConstant(node) {
6609 return d3_layout_treemapPad(node, x);
6610 }

Callers

nothing calls this directly

Calls 2

d3_layout_treemapPadNullFunction · 0.85
d3_layout_treemapPadFunction · 0.85

Tested by

no test coverage detected