import { ElementRef, EventEmitter, Renderer2, SimpleChanges, OnInit, OnChanges } from '@angular/core'; import { IMapPointOfInterest } from '../map.component'; import { MapService } from '../../../../services/map.service'; import { BaseWidgetComponent } from '../../../../shared/base.component'; export interface IMapPoint { /** x coordinate */ x: number; /** y coordinate */ y: number; } export declare class MapRendererComponent extends BaseWidgetComponent implements OnInit, OnChanges { private service; private renderer; private el; /** Zoom level of the map */ scale: number; /** Point within the map to center in the view */ center: IMapPoint; /** URL of the Map SVG to render */ src: string; /** CSS styles to apply to the map */ css: string; /** Re-renders the map on changes to this */ redraw: any; /** List of points of interest */ items: IMapPointOfInterest[]; /** Change emitter for SVG DOM element */ map: EventEmitter<{}>; /** Block to render SVG element */ render_block: ElementRef; /** Canvas to render static images of map when zooming */ private canvas; private content; private container; model: { [name: string]: any; map?: SVGElement; }; constructor(service: MapService, renderer: Renderer2, el: ElementRef); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; readonly isIE: boolean; /** * Update display of map */ update(): void; /** * Update the drawn zoom level of the map */ updateZoom(): void; /** * Update the drawn position of the map */ updatePosition(): void; /** * Load map data from SVG file */ private loadMap; /** * Render SVG map to an image to draw while zooming */ private renderImage; /** * Scale map to fit in the the parent container */ private resize; }