Lines Matching refs:d

49     graph.nodes.forEach((d) => {
50 d.namespace = extractNamespace(d.id);
52 const nsColor = getColorForNode(d, colorMap).toLowerCase();
53 const baseColor = (baseColors[d.group] || baseColors.default).toLowerCase();
75 d.gradientId = gradientCache.get(key);
86 .id(d => d.id)
87 .distance(d => {
88 const sourceDegree = degreeMap[d.source.id] || 1;
89 const targetDegree = degreeMap[d.target.id] || 1;
111 .style('fill', d => `url(#${d.gradientId})`)
112 .style('stroke', d => d.group === 'media' ? '#d62728' : 'none')
113 .style('stroke-width', d => d.group === 'media' ? 3 : 0)
126 .text(d => d.label);
128 node.on('mouseover', function(event, d) { argument
129 node.style('opacity', o => (o === d ? 1 : 0.2));
131 link.style('stroke', l => (l.source === d || l.target === d ? '#d62728' : '#999'))
132 .style('stroke-width', l => (l.source === d || l.target === d ? 3 : 1.5))
133 .style('opacity', l => (l.source === d || l.target === d ? 1 : 0.2));
135 …node.style('stroke', o => (o === d || graph.links.some(l => (l.source === d && l.target === o) || …
136 ….style('stroke-width', o => (o === d || graph.links.some(l => (l.source === d && l.target === o) |…
137 }).on('mouseout', function(event, d) { argument
139 .style('stroke', d => d.group === 'media' ? '#d62728' : 'none')
140 .style('stroke-width', d => d.group === 'media' ? 3 : 0);
148 link.attr('d', d => `M${d.source.x},${d.source.y} L${d.target.x},${d.target.y}`);
149 node.attr('cx', d => d.x).attr('cy', d => d.y);
150 label.attr('x', d => d.x).attr('y', d => d.y);
161 function dragStarted(event, d) { argument
163 d.fx = d.x;
164 d.fy = d.y;
167 function dragged(event, d) { argument
168 d.fx = event.x;
169 d.fy = event.y;
172 function dragEnded(event, d) { argument
174 d.fx = null;
175 d.fy = null;
205 node.style('visibility', d => {
206 const [x, y] = currentTransform.apply([d.x, d.y]);
210 label.style('visibility', d => {
211 const [x, y] = currentTransform.apply([d.x, d.y]);
215 link.style('visibility', d => {
216 const [sx, sy] = currentTransform.apply([d.source.x, d.source.y]);
217 const [tx, ty] = currentTransform.apply([d.target.x, d.target.y]);
228 function getColorForNode(d, colorMap) { argument
229 if (!d.namespace) return baseColors[d.group] || baseColors.default;
230 const parts = d.namespace.split(':');
236 return baseColors[d.group] || baseColors.default;