ear) {
    d.x = d.fx = d3.zoomTransform(svg.node()).invertX(chronologyScale(new Date(d.year, 0)))
  }
}

function nodeHtml (d) {
  const lineHeight = 12
  let s = d.id + (d.abbr ? ` (${d.abbr})` : '') + (chronology && d.year ? `\n${d.year}` : '')
  let y = 0
  s = s.replace(/(?![^\n]{1,20}$)([^\n]{1,20})\s/g, '$1\n')
    .split('\n')
    .map((d, i) => { y = i * lineHeight; return `<tspan x="8" y="${y}">${d}</tspan>` })
    .join('\n')

  const remainLinkCount = d.linkCount - d.currentLinkCount
  if (remai