UNPKG

@grapecity/gcpdfviewer

Version:
75 lines (74 loc) 1.98 kB
import { AnnotationBase } from "../Annotations/AnnotationTypes"; export type LogLevel = 'None' | 'Critical' | 'Error' | 'Warning' | 'Information' | 'Debug' | 'Trace'; export declare enum ModificationType { NoChanges = 0, Structure = 1, RemoveAnnotation = 2, AddAnnotation = 3, UpdateAnnotation = 4, Undo = 5, Redo = 6 } export type UndoChangeName = 'form' | 'annotation' | 'rotation' | 'document-structure' | 'optional-content-config'; export type PageModification = { width?: number; height?: number; rotate?: number; tabs?: "S" | "R" | "C" | undefined; }; export type PageStructureChange = { pageIndex: number; add: boolean; checkNumPages: number; modOnly?: boolean; mod?: PageModification; }; export type StructureChanges = { resultStructure: number[]; structureChanges: PageStructureChange[]; pdfInfo: { numPages: number; fingerprint: string; fingerprints?: string[]; }; touchedAnnotations?: { pageIndex: number; annotationId: string; }[]; }; export type ModificationsState = { newAnnotations: { pageIndex: number; annotation: AnnotationBase; }[]; updatedAnnotations: { pageIndex: number; annotation: AnnotationBase; }[]; removedAnnotations: { pageIndex: number; annotationId: string; }[]; structure?: StructureChanges; lastChangeType: ModificationType; undoCount: number; undoIndex: number; version: number; }; export type SharedDocumentInfo = { accessMode: SharedAccessMode; documentId: string; fileName: string; ownerUserName: string; userName: string; }; export declare enum SharedAccessMode { Loading = -1, AccessDenied = 0, ViewOnly = 1, ViewAndEdit = 2 } export type UserAccess = { userName: string; accessMode: SharedAccessMode; };