UNPKG

pdfjs-dist

Version:

Generic build of Mozilla's PDF.js library.

89 lines (88 loc) 2.62 kB
/** * Basic draw editor in order to generate an Highlight annotation. */ export class HighlightEditor extends AnnotationEditor { static _defaultColor: null; static _defaultOpacity: number; static _defaultThickness: number; static _l10nPromise: any; static _type: string; static _editorType: number; static _freeHighlightId: number; static _freeHighlight: null; static _freeHighlightClipId: string; static get _keyboardManager(): any; static computeTelemetryFinalData(data: any): { numberOfColors: any; }; /** @inheritdoc */ static initialize(l10n: any, uiManager: any): void; /** @inheritdoc */ static updateDefaultParams(type: any, value: any): void; static get defaultPropertiesToUpdate(): (number | null)[][]; static "__#23@#rotateBbox"({ x, y, width, height }: { x: any; y: any; width: any; height: any; }, angle: any): { x: any; y: any; width: any; height: any; }; static startHighlighting(parent: any, isLTR: any, { target: textLayer, x, y }: { target: any; x: any; y: any; }): void; static "__#23@#highlightMove"(parent: any, event: any): void; static "__#23@#endHighlight"(parent: any, event: any): void; /** @inheritdoc */ static deserialize(data: any, parent: any, uiManager: any): AnnotationEditor | null; constructor(params: any); color: any; /** @inheritdoc */ get telemetryInitialData(): { action: string; type: string; color: any; thickness: any; methodOfCreation: string; }; /** @inheritdoc */ get telemetryFinalData(): { type: string; color: any; }; /** @inheritdoc */ translateInPage(x: any, y: any): void; /** @inheritdoc */ updateParams(type: any, value: any): void; /** @inheritdoc */ get propertiesToUpdate(): any[][]; /** @inheritdoc */ fixAndSetPosition(): void; /** @inheritdoc */ getRect(tx: any, ty: any): any[]; /** @inheritdoc */ rotate(angle: any): void; pointerover(): void; pointerleave(): void; _moveCaret(direction: any): void; /** @inheritdoc */ serialize(isForCopying?: boolean): { annotationType: number; color: number[]; opacity: any; thickness: any; quadPoints: any[] | null; outlines: any; pageIndex: number; rect: any[]; rotation: number; structTreeParentId: any; } | null; #private; } import { AnnotationEditor } from "./editor.js";