Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
@types/pdf-viewer-reactjs
Advanced tools
TypeScript definitions for pdf-viewer-reactjs
Weekly downloads
Readme
npm install --save @types/pdf-viewer-reactjs
This package contains type definitions for pdf-viewer-reactjs (https://github.com/ansu5555/pdf-viewer-reactjs#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pdf-viewer-reactjs.
import { Component } from "react";
interface Document {
url?: string | undefined;
base64?: string | undefined;
}
interface ShowThumbnail {
scale?: number | undefined;
rotationAngle?: number | undefined;
onTop?: boolean | undefined;
backgroundColor?: string | undefined;
thumbCss?: string | undefined;
selectedThumbCss?: string | undefined;
}
interface Watermark {
text?: string | undefined;
diagonal?: boolean | undefined;
opacity?: string | undefined;
font?: string | undefined;
size?: string | undefined;
color?: string | undefined;
}
interface Err {
message: string;
}
type DocClickHandler = () => void;
type BtnClickHandler = (page: number) => void;
type ZoomClickHandler = (scale: number) => void;
type RotationClickHandler = (angle: number) => void;
type AlertHandler = (err: Err) => React.ReactNode;
type MaxPageCount = (pageCount: number) => void;
interface PDFViewerProps {
document: Document;
withCredentials?: boolean | undefined;
password?: string | undefined;
loader?: React.ReactNode | undefined;
externalInput?: boolean | undefined;
page?: number | undefined;
scale?: number | undefined;
scaleStep?: number | undefined;
maxScale?: number | undefined;
minScale?: number | undefined;
css?: string | undefined;
canvasCss?: string | undefined;
rotationAngle?: number | undefined;
onDocumentClick?: DocClickHandler | undefined;
onPrevBtnClick?: BtnClickHandler | undefined;
onNextBtnClick?: BtnClickHandler | undefined;
onZoom?: ZoomClickHandler | undefined;
onRotation?: RotationClickHandler | undefined;
getMaxPageCount?: MaxPageCount | undefined;
hideNavbar?: boolean | undefined;
navbarOnTop?: boolean | undefined;
hideZoom?: boolean | undefined;
hideRotation?: boolean | undefined;
showThumbnail?: ShowThumbnail | undefined;
protectContent?: boolean | undefined;
watermark?: Watermark | undefined;
alert?: AlertHandler | undefined;
navigation?: any;
}
declare class PDFViewer extends Component<PDFViewerProps> {
static defaultProps: Partial<PDFViewerProps>;
static propTypes: PDFViewerProps;
}
export = PDFViewer;
These definitions were written by Ansuman Ghosh.
FAQs
TypeScript definitions for pdf-viewer-reactjs
The npm package @types/pdf-viewer-reactjs receives a total of 1,261 weekly downloads. As such, @types/pdf-viewer-reactjs popularity was classified as popular.
We found that @types/pdf-viewer-reactjs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.