# XWUIDiagram

Generic node-graph editor with pan, zoom, multi-select, drag-to-connect, delete, optional minimap and snap-to-grid.

**Extends `XWUIGraph`** (viewport engine). Subclassed by `XWUIFlowchart` and graph-layout chart surfaces.

## Basic Usage

Two nodes connected by one edge.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Two nodes connected by one edge.
```

## Shapes

rectangle · circle · diamond · ellipse.

```example
file: examples/Shapes.ts
html: examples/Shapes.html
title: Shapes
description: rectangle · circle · diamond · ellipse.
```

## With Minimap

12-node graph with minimap + snap-to-grid.

```example
file: examples/WithMinimap.ts
html: examples/WithMinimap.html
title: With Minimap
description: 12-node graph with minimap + snap-to-grid.
```

```api
```
