Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte-pdfjs

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-pdfjs - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0-alpha.1

utils/target_dimension.d.ts

1

index.d.ts
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) {

5

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc