|
|
1 bulan lalu | |
|---|---|---|
| .. | ||
| src | 1 bulan lalu | |
| LICENSE | 1 bulan lalu | |
| README.en.md | 1 bulan lalu | |
| README.md | 1 bulan lalu | |
| package.json | 1 bulan lalu | |
| tsconfig.json | 1 bulan lalu | |
Standalone data asset renderer for Flyfish File Viewer. It covers PSD, SQLite, Parquet, Avro, WASM, fonts, AI/EPS, WebArchive, and other non-document data assets without forcing regular document preview users to install data parsing dependencies.
import FileViewer from '@file-viewer/vue3'
import { dataRenderer } from '@file-viewer/renderer-data'
const options = {
rendererMode: 'replace',
renderers: dataRenderer,
}
You can compose it with other renderers:
import { dataRenderer } from '@file-viewer/renderer-data'
import { textRenderer } from '@file-viewer/renderer-text'
const options = {
rendererMode: 'replace',
renderers: [dataRenderer, textRenderer],
}
SQLite preview depends on the sql.js WASM file. The default URL is still resolved through @file-viewer/core/assets as wasm/data/sql-wasm.wasm, and applications can override it through options.data.sqlWasmUrl.
@file-viewer/core no longer bundles the data asset renderer and no longer installs ag-psd, sql.js, hyparquet, or avsc by default. Install this package explicitly, or use @file-viewer/preset-all, when you need PSD, SQLite, Parquet, Avro, WASM, font, AI, EPS, or WebArchive previews.
ag-psd for canvas and layer previews with layer visibility toggles, redraw, and unified zoom.sql.js for table metadata and sample rows.hyparquet for column metadata and sample rows.avsc for object container schema and sample data.WebAssembly.Module to inspect imports and exports safely.