@open-e/oe-coordinator
Version:
This module is used to detect mouse movement on the border of HTMLElement. Useful usecase is to enable resize event in `div` element when mouse is on the border of it.
18 lines (17 loc) • 477 B
TypeScript
import { ElementRef, Renderer2 } from "@angular/core";
/**
* Directive for Zoom Effect
*
* @example:
* `<div zoom-editor maxScale='4' minScale='0.5' accumulativeVal='0.1'></div>`
*/
export declare class ZoomDirective {
_ref: ElementRef;
renderer: Renderer2;
maxScale: number;
minScale: number;
accumulativeVal: number;
currentScale: number;
constructor(_ref: ElementRef, renderer: Renderer2);
onwheel(event: any): void;
}