MCPcopy
hub / github.com/dundalek/markmap / linkWidth

Function linkWidth

lib/view.mindmap.js:360–366  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

358 var linkShape = this.helpers.linkShape;
359
360 function linkWidth(d) {
361 var depth = d.depth;
362 if (d.name !== '' && d.children && d.children.length === 1 && d.children[0].name === '') {
363 depth += 1;
364 }
365 return Math.max(6 - 2*depth, 1.5);
366 }
367
368 // Update the nodes…
369 var node = svg.selectAll("g.markmap-node")

Callers 1

view.mindmap.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected