DiagView
DiagView Floating Layout
← Hub

Static SVG & HUD UI

Clean, non-intrusive floating controls combined with high-performance static SVG rendering.

⊙ Floating FAB Mode

User Login Flow

SVG
Start Valid? Success Error End

Network Topology

SVG
Internet Firewall Web Server Database

Logic Flow (Mermaid)

Mermaid
graph LR A[Request] --> B{Valid?} B -->|Yes| C[Process] B -->|No| D[Reject]

Deployment Pipeline

SVG
Build pass Test pass Stage approve Deploy ✓ retry on fail

Entity Relationship

SVG
Users 🔑 id name email Orders 🔑 id user_id → total Products 🔑 id name price 1 → N N → N OrderItems

Performance Stress Test

2.5k Nodes

Click to open the 2,500 node grid

Why choose this layout?

Designed for real-world use cases where control placement matters.

Non-Intrusive by Design

The FAB button sits outside the diagram content flow. Users who just need to read never see it — controls appear only on hover.

📐

Works in Any Container

Floating mode adapts to any parent container size. Embed in sidebars, modals, or full-width sections — the FAB always positions correctly.

⌨️

Full Keyboard Navigation

Press / to search, + / − to zoom, arrows to pan, Esc to close. Every action is accessible without touching the mouse.

Keyboard Reference

Every action is keyboard-accessible. No mouse required.

Zoom
+Zoom in
-Zoom out
Space / 0Reset & center
Pan
↑ ↓ ← →Pan diagram
ShiftFast pan
DragFree pan
Search
FOpen search
EscClear / close
Tools
MMeeting mode
RRotate 90°
LShare link

Integration

// 1. CDN — drop into any HTML page
<script src="https://unpkg.com/diagview@1.0.6/dist/diagview.umd.js"></script>

// 2. Init with floating FAB
DiagView.init({
  diagramSelector: '.diagram',
  layout:          'floating',
  accentColor:     '#f59e0b',
  showBranding:    true
});

// 3. Or set layout per-element via HTML
<div class="diagram"
     data-diagview-layout="floating"
     data-diagview-accent="#f59e0b">
  <svg>...</svg>
</div>
Compare all layouts → Try Header Layout →