1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /**
- * 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 { NgZone } from '@angular/core';
- import { ZoomBehavior, ZoomTransform } from 'd3-zoom';
- import { NzSafeAny } from 'ng-zorro-antd/core/types';
- import { NzZoomTransform } from '../interface';
- export declare class Minimap {
- private ngZone;
- private svg;
- private zoomG;
- private mainZoom;
- private minimap;
- private maxWidth;
- private labelPadding;
- private canvas;
- private canvasRect;
- private canvasBuffer;
- private minimapSvg;
- private viewpoint;
- private scaleMinimap;
- private scaleMain;
- private translate;
- private viewpointCoord;
- private minimapSize;
- private unlisteners;
- constructor(ngZone: NgZone, svg: SVGSVGElement, zoomG: SVGGElement, mainZoom: ZoomBehavior<NzSafeAny, NzSafeAny>, minimap: HTMLElement, maxWidth: number, labelPadding: number);
- destroy(): void;
- private minimapOffset;
- private updateViewpoint;
- update(): void;
- /**
- * Handles changes in zooming/panning. Should be called from the main svg
- * to notify that a zoom/pan was performed and this minimap will update it's
- * viewpoint rectangle.
- *
- * @param transform
- */
- zoom(transform?: ZoomTransform | NzZoomTransform): void;
- }
|