The UI is completely hidden. The diagram itself acts as the trigger button. Perfect for seamless embeds.
↑ Diagram is the trigger
Click to open the 2,500 node grid
Designed for real-world use cases where control placement matters.
Off mode adds no wrapper elements, no toolbar, no buttons. The SVG is untouched — DiagView only attaches a click handler and cursor style.
A zoom-in cursor signals interactivity without any UI. Users discover the fullscreen viewer naturally, making diagrams feel embedded rather than decorated.
Use in blog posts, documentation pages, or iframes where toolbar chrome would look out of place. Clean SVG, full viewer on demand.
Every action is keyboard-accessible. No mouse required.
// Off mode — zero toolbar DOM, pure click-to-open
DiagView.init({
diagramSelector: '.diagram',
layout: 'off'
});
// Mix layouts on the same page (v1.0.5+)
<div class="diagram" data-diagview-layout="off">
<svg>...</svg> // no toolbar
</div>
<div class="diagram" data-diagview-layout="floating">
<svg>...</svg> // floating FAB
</div>