igniteui-angular-wrappers
Version:
A packaged version of Ignite UI wrappers for Angular
188 lines (187 loc) • 12.2 kB
TypeScript
import { IterableDiffers, ElementRef, KeyValueDiffers, ChangeDetectorRef, Renderer2, OnInit } from '@angular/core';
import { IgControlBase } from '../igcontrolbase/igcontrolbase';
import * as i0 from "@angular/core";
export declare class IgMapComponent extends IgControlBase<IgMap> implements OnInit {
constructor(el: ElementRef, renderer: Renderer2, differs: IterableDiffers, kvalDiffers: KeyValueDiffers, cdr: ChangeDetectorRef);
set dataSource(value: any);
private _dataSource;
option(): void;
ngOnInit(): void;
/**
* Destroys the widget.
*/
destroy(): void;
/**
* Returns the ID of parent element holding the map.
*/
id(): string;
/**
* Exports the map to a PNG image.
*
* @param width The width of the image.
* @param height The height of the image.
*/
exportImage(width?: object, height?: object): object;
/**
* Notify the map that styles it draws colors from may have been updated.
*/
styleUpdated(): object;
/**
* Resets the zoom level of the map to default.
*/
resetZoom(): object;
/**
* Adds a new item to the data source and notifies the map.
*
* @param item The item that we want to add to the data source.
* @param targetName The name of the series bound to the data source.
*/
addItem(item: object, targetName: string): void;
/**
* Inserts a new item to the data source and notifies the map.
*
* @param item the new item that we want to insert in the data source.
* @param index The index in the data source where the new item will be inserted.
* @param targetName The name of the series bound to the data source.
*/
insertItem(item: object, index: number, targetName: string): void;
/**
* Deletes an item from the data source and notifies the map.
*
* @param index The index in the data source from where the item will be been removed.
* @param targetName The name of the series bound to the data source.
*/
removeItem(index: number, targetName: string): void;
/**
* Updates an item in the data source and notifies the map.
*
* @param index The index of the item in the data source that we want to change.
* @param item The new item object that will be set in the data source.
* @param targetName The name of the series bound to the data source.
*/
setItem(index: number, item: object, targetName: string): void;
/**
* Notifies the the map that an item has been set in an associated data source.
*
* @param dataSource The data source in which the change happened.
* @param index The index in the items source that has been changed.
* @param newItem the new item that has been set in the collection.
* @param oldItem the old item that has been overwritten in the collection.
*/
notifySetItem(dataSource: object, index: number, newItem: object, oldItem: object): object;
/**
* Notifies the the map that the items have been cleared from an associated data source.
* It's not necessary to notify more than one target of a change if they share the same items source.
*
* @param dataSource The data source in which the change happened.
*/
notifyClearItems(dataSource: object): object;
/**
* Notifies the the target series that an item has been inserted at the specified index in its data source.
* It's not necessary to notify more than one target of a change if they share the same items source.
*
* @param dataSource The data source in which the change happened.
* @param index The index in the items source where the new item has been inserted.
* @param newItem the new item that has been set in the collection.
*/
notifyInsertItem(dataSource: object, index: number, newItem: object): object;
/**
* Notifies the the target series that an item has been removed from the specified index in its data source.
* It's not necessary to notify more than one target of a change if they share the same items source.
*
* @param dataSource The data source in which the change happened.
* @param index The index in the items source from where the old item has been removed.
* @param oldItem the old item that has been removed from the collection.
*/
notifyRemoveItem(dataSource: object, index: number, oldItem: object): object;
/**
* Notifies the target series or axis that it should scroll the requested data item into view.
*
* @param targetName The name of the series or axis notify.
* @param item The data item to bring into view, if possible.
*/
scrollIntoView(targetName: string, item: object): object;
/**
* Either xAxis or yAxis (longitude or latitude) that it should scale the requested value into map space from axis space.
* For example you can use this method if you want to find where longitude 50 stands scaled to map's width.
*
* @param targetName Either xAxis or yAxis to notify.
* @param unscaledValue The value in axis space to translate into map space.
*/
scaleValue(targetName: string, unscaledValue: number): number;
/**
* Either xAxis or yAxis (longitude or latitude) that it should unscale the requested value into axis space from map space.
* For example you can use this method if you want to find what is the longitude unscaled from 0 width of the map.
*
* @param targetName Either xAxis or yAxis to notify.
* @param scaledValue The value in map space to translate into axis space.
*/
unscaleValue(targetName: string, scaledValue: number): number;
/**
* Manually starts a tiled zoom if one isn't already running.
*/
startTiledZoomingIfNecessary(): void;
/**
* Manually ends a tiled zoom if one is running.
*/
endTiledZoomingIfRunning(): void;
/**
* Clears the tile zoom tile cache so that new tiles will be generated. Only applies if the viewer is using a tile based zoom..
*/
clearTileZoomCache(): void;
/**
* Forces any pending deferred work to render on the map before continuing
*/
flush(): void;
/**
* Exports visual data from the map to aid in unit testing
*/
exportVisualData(): void;
/**
* Gets the actual minimum value of the target xAxis or yAxis
*
* @param targetName target name
*/
getActualMinimumValue(targetName: object): void;
/**
* Gets the actual maximum value of the target xAxis or yAxis
*
* @param targetName target name
*/
getActualMaximumValue(targetName: object): void;
/**
* Notifies the map that the container was resized
*/
notifyContainerResized(): void;
/**
* Zoom in to the geographic region specified, when possible (may need to wait fior map to be initialized).
*
* @param rect The geographic area rectangle.
*/
zoomToGeographic(rect: object): object;
/**
* Given the current plot area of the control and a geographic region, get the WindowRect that would encompass that geographic region.
*
* @param rect The geographic area rectangle.
*/
getGeographicFromZoom(rect: object): object;
/**
* Given the current plot area of the control and a geographic region, get the WindowRect that would encompass that geographic region.
*
* @param rect The geographic area rectangle.
*/
getZoomFromGeographic(rect: object): object;
/**
* Creates a print preview page with the map, hiding all other elements on the page.
*/
print(): void;
/**
* Indicates that a series should render, even though no option has been modified that would normally cause it to refresh.
*
* @param targetName The name of the series to render.
* @param animate Whether the change should be animated, if possible.
*/
renderSeries(targetName: string, animate: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<IgMapComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<IgMapComponent, "ig-map", never, { "widgetId": { "alias": "widgetId"; "required": false; }; "options": { "alias": "options"; "required": false; }; "changeDetectionInterval": { "alias": "changeDetectionInterval"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "create": { "alias": "create"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "dataSourceUrl": { "alias": "dataSourceUrl"; "required": false; }; "dataSourceType": { "alias": "dataSourceType"; "required": false; }; "responseDataKey": { "alias": "responseDataKey"; "required": false; }; "autoMarginWidth": { "alias": "autoMarginWidth"; "required": false; }; "autoMarginHeight": { "alias": "autoMarginHeight"; "required": false; }; "crosshairVisibility": { "alias": "crosshairVisibility"; "required": false; }; "crosshairPoint": { "alias": "crosshairPoint"; "required": false; }; "plotAreaBackground": { "alias": "plotAreaBackground"; "required": false; }; "defaultInteraction": { "alias": "defaultInteraction"; "required": false; }; "dragModifier": { "alias": "dragModifier"; "required": false; }; "panModifier": { "alias": "panModifier"; "required": false; }; "previewRect": { "alias": "previewRect"; "required": false; }; "windowRect": { "alias": "windowRect"; "required": false; }; "zoomable": { "alias": "zoomable"; "required": false; }; "windowScale": { "alias": "windowScale"; "required": false; }; "windowResponse": { "alias": "windowResponse"; "required": false; }; "windowRectMinWidth": { "alias": "windowRectMinWidth"; "required": false; }; "windowPositionHorizontal": { "alias": "windowPositionHorizontal"; "required": false; }; "windowPositionVertical": { "alias": "windowPositionVertical"; "required": false; }; "circleMarkerTemplate": { "alias": "circleMarkerTemplate"; "required": false; }; "triangleMarkerTemplate": { "alias": "triangleMarkerTemplate"; "required": false; }; "pyramidMarkerTemplate": { "alias": "pyramidMarkerTemplate"; "required": false; }; "squareMarkerTemplate": { "alias": "squareMarkerTemplate"; "required": false; }; "diamondMarkerTemplate": { "alias": "diamondMarkerTemplate"; "required": false; }; "pentagonMarkerTemplate": { "alias": "pentagonMarkerTemplate"; "required": false; }; "hexagonMarkerTemplate": { "alias": "hexagonMarkerTemplate"; "required": false; }; "tetragramMarkerTemplate": { "alias": "tetragramMarkerTemplate"; "required": false; }; "pentagramMarkerTemplate": { "alias": "pentagramMarkerTemplate"; "required": false; }; "hexagramMarkerTemplate": { "alias": "hexagramMarkerTemplate"; "required": false; }; "overviewPlusDetailPaneBackgroundImageUri": { "alias": "overviewPlusDetailPaneBackgroundImageUri"; "required": false; }; "useTiledZooming": { "alias": "useTiledZooming"; "required": false; }; "preferHigherResolutionTiles": { "alias": "preferHigherResolutionTiles"; "required": false; }; "zoomTileCacheSize": { "alias": "zoomTileCacheSize"; "required": false; }; "backgroundContent": { "alias": "backgroundContent"; "required": false; }; "series": { "alias": "series"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, { "tooltipShowing": "tooltipShowing"; "tooltipShown": "tooltipShown"; "tooltipHiding": "tooltipHiding"; "tooltipHidden": "tooltipHidden"; "browserNotSupported": "browserNotSupported"; "seriesCursorMouseMove": "seriesCursorMouseMove"; "seriesMouseLeftButtonDown": "seriesMouseLeftButtonDown"; "seriesMouseLeftButtonUp": "seriesMouseLeftButtonUp"; "seriesMouseMove": "seriesMouseMove"; "seriesMouseEnter": "seriesMouseEnter"; "seriesMouseLeave": "seriesMouseLeave"; "windowRectChanged": "windowRectChanged"; "gridAreaRectChanged": "gridAreaRectChanged"; "refreshCompleted": "refreshCompleted"; "triangulationStatusChanged": "triangulationStatusChanged"; }, never, ["*"], false, never>;
}