docs: function createEditOverlay(target) {
    destroyEditOverlay();
  
    overlay = document.createElement('div');
    let anchor = document.createElement('a');
    let parentNode = findSVGContainer(target).parentNode;
    let id = target.getAttribute('data-pdf-annotate-id');
    let rect = getAnnotationRect(target);
    let styleLeft = rect.left - OVERLAY_BORDER_SIZE;
    let styleTop = rect.top - OVERLAY_BORDER_SIZE;
    
    overlay.setAttribute('id', 'pdf-annotate-edit-overlay');
    overlay.setAttribute('data-target-id', id);
    overlay.style.boxSizing = 'content-box';
    overlay.style.position = 'absolute';
    overlay.style.top = `${styleTop}px`;
    overlay.style.left = `${styleLeft}px`;
    overlay.style.width = `${rect.width}px`;
    overlay.style.height = `${rect.height}px`;
    overlay.style.border = `${OVERLAY_BORDER_SIZE}px solid ${BORDER_COLOR}`;
    overlay.style.borderRadius = `${OVERLAY_BORDER_SIZE}px`;
  
    anchor.innerHTML = '×';
    anchor.setAttribute('href', 'javascript://');
    anchor.style.background = '#fff';
    anchor.style.borderRadius = '20px';
    anchor.style.border = '1px solid #bbb';
    anchor.style.color = '#bbb';
    anchor.style.fontSize = '16px';
    anchor.style.padding = '2px';
    anchor.style.textAlign = 'center';
    anchor.style.textDecoration = 'none';
    anchor.style.position = 'absolute';
    anchor.style.top = '-13px';
    anchor.style.right = '-13px';
    anchor.style.width = '25px';
    anchor.style.height = '25px';
    
    overlay.appendChild(anchor);
    parentNode.appendChild(overlay);
    document.addEventListener('click', handleDocumentClick);
    document.addEventListener('keyup', handleDocumentKeyup);
    document.addEventListener('mousedown', handleDocumentMousedown);
    anchor.addEventListener('click', deleteAnnotation);
    anchor.addEventListener('mouseover', () => {
      anchor.style.color = '#35A4DC';
      anchor.style.borderColor = '#999';
      anchor.style.boxShadow = '0 1px 1px #ccc';
    });
    anchor.addEventListener('mouseout', () => {
      anchor.style.color = '#bbb';
      anchor.style.borderColor = '#bbb';
      anchor.style.boxShadow = '';
    });
    overlay.addEventListener('mouseover', () => {
      if (!isDragging) { anchor.style.display = ''; }
    });
    overlay.addEventListener('mouseout', () => {
      anchor.style.display = 'none';
    });
  }