svelte-pdfjs
Advanced tools
Comparing version 0.2.0 to 0.3.0-alpha.1
export { default as Document } from './PDFViewer/Document.svelte'; | ||
export { default as Page } from './PDFViewer/Page.svelte'; | ||
export * from './utils/target_dimension.js'; | ||
import * as PDFJS from 'pdfjs-dist'; | ||
export { PDFJS }; |
export { default as Document } from './PDFViewer/Document.svelte'; | ||
export { default as Page } from './PDFViewer/Page.svelte'; | ||
export * from './utils/target_dimension.js'; | ||
import * as PDFJS from 'pdfjs-dist'; | ||
@@ -4,0 +5,0 @@ if (PDFJS.GlobalWorkerOptions) { |
{ | ||
"name": "svelte-pdfjs", | ||
"version": "0.2.0", | ||
"version": "0.3.0-alpha.1", | ||
"devDependencies": { | ||
@@ -33,3 +33,4 @@ "@sveltejs/adapter-netlify": "^1.0.0-next.37", | ||
"./PDFViewer/PageInternals/PageSVG.svelte": "./PDFViewer/PageInternals/PageSVG.svelte", | ||
"./PDFViewer/PageInternals/TextLayer.svelte": "./PDFViewer/PageInternals/TextLayer.svelte" | ||
"./PDFViewer/PageInternals/TextLayer.svelte": "./PDFViewer/PageInternals/TextLayer.svelte", | ||
"./utils/target_dimension": "./utils/target_dimension.js" | ||
}, | ||
@@ -36,0 +37,0 @@ "svelte": "./index.js", |
import { SvelteComponentTyped } from "svelte"; | ||
declare type MultipleOf90 = 0 | 90 | 180 | 270; | ||
import type { MultipleOf90 } from '../utils/target_dimension.js'; | ||
import type { PDFPageProxy } from 'pdfjs-dist/types/src/display/api'; | ||
import type { PageViewport } from 'pdfjs-dist/types/src/display/display_utils'; | ||
declare const __propDef: { | ||
@@ -12,16 +14,8 @@ props: { | ||
* The page number to show. | ||
*/ pageNumber?: number; | ||
*/ num: number; | ||
/** | ||
* The scale to show the PDF at. | ||
* @default {1} | ||
*/ zoomLevel?: number; | ||
*/ scale?: number; | ||
/** | ||
* Override the height to render the page at. | ||
* If both `targetHeight` and `targetWidth` are provided, then targetWidth takes precedence. | ||
*/ targetHeight?: number; | ||
/** | ||
* Override the width to render the page at. | ||
* If both `targetHeight` and `targetWidth` are provided, then targetWidth takes precedence. | ||
*/ targetWidth?: number; | ||
/** | ||
* Rotate the page by a multiple of 90 degrees. | ||
@@ -34,2 +28,6 @@ * @default {0} | ||
*/ renderTextLayer?: boolean; | ||
/** | ||
* A callback invoked with the current page used to determine the viewport. | ||
* Use this if you need something more complicated than the default based on scale. | ||
*/ getViewport?: (page: PDFPageProxy, rotation: MultipleOf90) => PageViewport; | ||
}; | ||
@@ -36,0 +34,0 @@ events: { |
Sorry, the diff of this file is not supported yet
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
17662
20
189