export function createMinimapNodeWithInput()

in integ/utils.ts [131:149]


export function createMinimapNodeWithInput(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');
  newDiv.style.backgroundColor = 'blue';
  if (node.diagramMakerData.selected) {
    newDiv.classList.add('selected');
  }
  container.appendChild(newDiv);
  return newDiv;
}