UNPKG

ng-cw-v12

Version:

Angular UI component library

26 lines (25 loc) 954 B
import { ElementRef, Renderer2, OnInit } from '@angular/core'; import * as i0 from "@angular/core"; export declare class ImgZoomDirective implements OnInit { private el; private renderer; ncMinScale: number; ncMaxScale: number; ncObjectFit: 'contain' | 'cover' | 'fill'; private scale; private position; private isDragging; private lastPosition; constructor(el: ElementRef, renderer: Renderer2); ngOnInit(): void; private initializeStyles; private onWheel; private onMouseDown; private onMouseMove; private onMouseUp; private onMouseLeave; resetView(): void; private updateTransform; static ɵfac: i0.ɵɵFactoryDeclaration<ImgZoomDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<ImgZoomDirective, "[ncImgZoom]", ["ncImgZoom"], { "ncMinScale": "ncMinScale"; "ncMaxScale": "ncMaxScale"; "ncObjectFit": "ncObjectFit"; }, {}, never>; }