export function createMinimapPanel()

in integ/utils.ts [405:427]


export function createMinimapPanel(container: HTMLElement, state: any) {
  const newDiv = document.createElement('div');
  newDiv.setAttribute('data-event-target', 'true');
  newDiv.setAttribute('data-dropzone', 'true');
  newDiv.classList.add('library');

  // Create element that is draggable at the top of the panel
  const draggableElement = document.createElement('div');
  draggableElement.innerText = 'drag here';
  draggableElement.classList.add('draggableElement');
  draggableElement.setAttribute('data-event-target', 'true');
  draggableElement.setAttribute('data-draggable', 'true');
  draggableElement.setAttribute('data-type', 'DiagramMaker.PanelDragHandle');
  draggableElement.setAttribute('data-id', 'minimap');
  newDiv.appendChild(draggableElement);

  // create a minimap here
  newDiv.appendChild(createMinimap(state, renderMiniNode, minimapDestroyCallback));

  container.innerHTML = '';
  container.appendChild(newDiv);
  return newDiv;
}