|
|
1 ヶ月 前 | |
|---|---|---|
| .. | ||
| src | 1 ヶ月 前 | |
| LICENSE | 1 ヶ月 前 | |
| README.en.md | 1 ヶ月 前 | |
| README.md | 1 ヶ月 前 | |
| package.json | 1 ヶ月 前 | |
| tsconfig.json | 1 ヶ月 前 | |
Standalone Draw.io, Excalidraw, Mermaid, and PlantUML renderer for Flyfish File Viewer.
drawio / dio files.restore and exportToSvg APIs, with a roughjs SVG fallback.mermaid renderer for mermaid / mmd files and outputs theme-aware SVG.plantuml / puml files fully offline by default with an SVG source preview; configure options.drawing.plantumlServerUrl for full PlantUML SVG rendering through a self-hosted endpoint. When that endpoint is unavailable, the renderer still falls back to the offline preview instead of a blank view or broken image.@panzoom/panzoom for drag panning, Ctrl/Command wheel zoom, and common toolbar zoom sync.options.drawing self-hosted asset configuration.@file-viewer/core no longer bundles the drawing renderer and no longer depends directly on @excalidraw/excalidraw, mermaid, plantuml-encoder, @panzoom/panzoom, or roughjs.import { createFileViewerCore, createFileViewerRendererRegistry } from '@file-viewer/core';
import { drawingRenderer } from '@file-viewer/renderer-drawing';
const registry = createFileViewerRendererRegistry({
renderers: [drawingRenderer],
});
const viewer = createFileViewerCore({
target: document.querySelector('#viewer')!,
rendererRegistry: registry,
});
See the official on-demand renderer guide for production setup.