@hmcts/media-viewer
Version:
32 lines • 1.54 kB
TypeScript
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
import { Store } from '@ngrx/store';
import { Subscription } from 'rxjs';
import * as fromStore from '../../../../store/reducers/reducers';
import { ViewerEventService } from '../../../../viewers/viewer-event.service';
import { HighlightCreateService } from './highlight-create.service';
import { ToolbarEventService } from '../../../../toolbar/toolbar-event.service';
import * as i0 from "@angular/core";
export declare class HighlightCreateDirective implements OnInit, OnDestroy {
private element;
private toolbarEvents;
private viewerEvents;
private highlightService;
private store;
pageHeight: number;
pageWidth: number;
zoom: number;
rotate: number;
allPages: object;
$subscription: Subscription;
constructor(element: ElementRef<HTMLElement>, toolbarEvents: ToolbarEventService, viewerEvents: ViewerEventService, highlightService: HighlightCreateService, store: Store<fromStore.AnnotationSetState>);
ngOnInit(): void;
ngOnDestroy(): void;
onMouseUp(mouseEvent: MouseEvent): void;
onPdfViewerClick(event: MouseEvent): void;
private getRectangles;
private createTextRectangle;
private removeEnhancedTextModeStyling;
static ɵfac: i0.ɵɵFactoryDeclaration<HighlightCreateDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<HighlightCreateDirective, "[mvCreateTextHighlight]", never, {}, {}, never, never, false, never>;
}
//# sourceMappingURL=highlight-create.directive.d.ts.map