@open-file-viewer/core 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/index.cjs +4279 -676
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4279 -676
- package/dist/index.js.map +1 -1
- package/dist/style.css +519 -24
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Framework-agnostic browser file preview core for Open File Viewer.
|
|
4
4
|
|
|
5
|
-
Open File Viewer renders files inside your own DOM container instead of opening a new window. It supports images, PDF, Office documents, audio, video, text/code, archives, email, drawings, CAD, 3D and
|
|
5
|
+
Open File Viewer renders files inside your own DOM container instead of opening a new window. It supports images, PDF, Office documents, audio, video, text/code, archives, email, drawings, CAD, 3D, GIS, data and design asset formats through a plugin-based pipeline.
|
|
6
6
|
|
|
7
7
|
DWG/DWF are proprietary binary CAD formats. `cadPlugin()` uses a two-layer model: it tries the built-in LibreDWG WASM DWG preview by default, then falls back to embedded thumbnails or metadata; applications can use `binaryRenderer` as the highest-priority override for custom renderers or server-side CAD conversion services.
|
|
8
8
|
|
|
9
|
+
Data/design asset previews are pure frontend where practical: SQLite shows header, schema and sample rows from common table leaf pages; PDF-compatible Illustrator files embed a browser PDF preview; PSD/PSB tries the Photoshop composite image; XPS/OXPS renders a lightweight FixedPage SVG view plus extracted text and package structure.
|
|
10
|
+
|
|
9
11
|
- Website: https://open-file-viewer-workspace.void.app
|
|
10
12
|
- GitHub: https://github.com/xushanpei/open-file-viewer
|
|
11
13
|
- npm: https://www.npmjs.com/package/@open-file-viewer/core
|