export function createMinimapNodeWithDropdown()

in integ/utils.ts [151:168]


export function createMinimapNodeWithDropdown(node: DiagramMakerNode<any>, container: HTMLElement) {
  if (container.innerHTML !== '') {
    const childDiv = container.children[0];
    if (node.diagramMakerData.selected) {
      childDiv.classList.add('selected');
    } else {
      childDiv.classList.remove('selected');
    }
    return;
  }
  const newDiv = document.createElement('div');
  newDiv.classList.add('rectangle', 'example-minimap-node');
  if (node.diagramMakerData.selected) {
    newDiv.classList.add('selected');
  }
  container.appendChild(newDiv);
  return newDiv;
}