/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy } from '@angular/core'; import { Selection } from 'd3-selection'; import { ZoomBehavior } from 'd3-zoom'; import { VtsSafeAny } from '@ui-vts-kit/ng-vts/core/types'; import { VtsZoomTransform } from './interface'; import * as i0 from "@angular/core"; export declare class VtsGraphZoomDirective implements OnDestroy, AfterViewInit { private element; private cdr; vtsZoom?: number; vtsMinZoom: number; vtsMaxZoom: number; readonly vtsTransformEvent: EventEmitter; readonly vtsZoomChange: EventEmitter; svgSelection: Selection; zoomBehavior: ZoomBehavior; svgElement: SVGSVGElement; gZoomElement: SVGGElement; private destroy$; constructor(element: ElementRef, cdr: ChangeDetectorRef); ngAfterViewInit(): void; ngOnDestroy(): void; bind(): void; unbind(): void; fitCenter(duration?: number): void; focus(id: VtsSafeAny, duration?: number): void; /** * Handle zoom event * @param transform */ private zoomed; /** * Scale with zoom and duration * @param duration * @param scale * @private */ private reScale; private getRelativePositionInfo; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }