svelte-pdfjs
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "svelte-pdfjs", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"devDependencies": { | ||
"@sveltejs/adapter-netlify": "^1.0.0-next.35", | ||
"@sveltejs/adapter-node": "^1.0.0-next.55", | ||
"@sveltejs/kit": "next", | ||
@@ -27,6 +28,8 @@ "@typescript-eslint/eslint-plugin": "^4.31.1", | ||
"./package.json": "./package.json", | ||
"./index.svelte": "./index.svelte", | ||
".": "./index.svelte" | ||
".": "./index.svelte", | ||
"./PDFViewer/CanvasImpl/PDFViewerCanvas.svelte": "./PDFViewer/CanvasImpl/PDFViewerCanvas.svelte", | ||
"./PDFViewer/CanvasImpl/SinglePageCanvas.svelte": "./PDFViewer/CanvasImpl/SinglePageCanvas.svelte", | ||
"./PDFViewer/PDFViewer.svelte": "./PDFViewer/PDFViewer.svelte" | ||
}, | ||
"svelte": "./index.svelte" | ||
} |
## svelte-pdfjs | ||
A crude implementation of a svelte pdf viewer component, reacts to changes in the URL, password, page number and zoom level. All styling is left upto the user. | ||
## SSR | ||
Partially SSR compatible. The internal library Pdf.js throws a warning when attempting SSR, can be fixed through vite-plugin-iso if being used in svelte kit. | ||
A WIP implementation of a basic svelte pdf viewer component, reacts to changes in the URL, password, page number and zoom level. All styling is left upto the user. | ||
--- | ||
## SvelteKit | ||
It's compatible with SvelteKit, just import the component and use it. No onMount shenanigans required in the consumer since it's already done within the PDFViewer component. | ||
## License | ||
[MIT](LICENSE) | ||
[MIT](LICENSE) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9112
13
75
12
16