![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@types/pdf-viewer-reactjs
Advanced tools
TypeScript definitions for pdf-viewer-reactjs
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
We found that @types/pdf-viewer-reactjs demonstrated a not healthy version release cadence and project activity because the last version was released 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.