k";
    tooltip.parentElement.style.backgroundColor = "#ffa";
    const tooltipRight = tooltip.getClientRects()[0].right;
    const tableRight = table.getClientRects()[0].right;
    const overflowX = tooltipRight- tableRight + 8;
    if (overflowX > 0) {
      tooltip.style.transform="translate(" + (-overflowX) +"px, 0px)";
    }
    visibleTooltip = tooltip;
  }
  document.addEventListener("mousedown", e => {
    if (e.target.classList.contains("tooltipParent")) {
      const tooltip = e.target.querySelect