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

@react-pdf-viewer/core

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-pdf-viewer/core - npm Package Compare versions

Comparing version 3.8.0 to 3.9.0

14

lib/index.d.ts

@@ -20,6 +20,14 @@ /**

}
export interface Rect {
height: number;
width: number;
}
export interface PageLayout {
buildPageStyles?: ({ numPages, pageIndex }: { numPages: number; pageIndex: number }) => React.CSSProperties;
tranformSize?: ({ numPages, pageIndex, size }: { numPages: number; pageIndex: number; size: Rect }) => Rect;
}
export interface PageSize {
pageHeight: number;
pageWidth: number;
scale: number;
rotation: number;
}

@@ -118,6 +126,5 @@ export interface Plugin {

doc: PdfJs.PdfDocument;
pageHeight: number;
pageWidth: number;
// The rotation for each page
pagesRotation: Map<number, number>;
pageSizes: PageSize[];
rotation: number;

@@ -488,2 +495,3 @@ slot: Slot;

initialRotation?: number;
pageLayout?: PageLayout;
// Plugins

@@ -490,0 +498,0 @@ plugins?: Plugin[];

{
"name": "@react-pdf-viewer/core",
"version": "3.8.0",
"version": "3.9.0",
"description": "A React component to view a PDF document",

@@ -50,3 +50,3 @@ "license": "https://react-pdf-viewer.dev/license",

},
"gitHead": "62b141a0ceb569147ca765ab6bbff76c5e480bf8"
"gitHead": "cd870dc8f610be09a7c53883f2d4c4421d3f441e"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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