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

Function d3_layout_treemapPadNull

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

Source from the content-addressed store, hash-verified

6301 return d3_layout_hierarchyRebind(treemap, hierarchy);
6302 };
6303 function d3_layout_treemapPadNull(node) {
6304 return {
6305 x: node.x,
6306 y: node.y,
6307 dx: node.dx,
6308 dy: node.dy
6309 };
6310 }
6311 function d3_layout_treemapPad(node, padding) {
6312 var x = node.x + padding[3], y = node.y + padding[0], dx = node.dx - padding[1] - padding[3], dy = node.dy - padding[0] - padding[2];
6313 if (dx < 0) {

Callers 1

padFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected