import { Color } from '@ngageoint/color-js'; import { BaseGrid, Bounds, GridStyle, GridTile } from '@ngageoint/grid-js'; import { IComparable } from 'tstl'; import { GridLine } from '../features/GridLine'; import { GridZone } from '../gzd/GridZone'; import { GridLabel } from './GridLabel'; import { GridLabeler } from './GridLabeler'; import { GridType } from './GridType'; /** * Grid */ export declare class Grid extends BaseGrid implements IComparable { /** * Default line width */ static readonly DEFAULT_WIDTH: number | undefined; /** * Grid type */ private readonly type; /** * Grid line styles */ private styles; /** * Constructor * * @param type * grid type */ constructor(type: GridType); /** * Get the grid type * * @return grid type */ getType(): GridType; /** * Is the provided grid type * * @param type * grid type * @return true if the type */ isType(type: GridType): boolean; /** * Get the precision in meters * * @return precision meters */ getPrecision(): number; /** * Get the grid type precision line style for the grid type * * @param gridType * grid type * @return grid type line style */ getStyle(gridType?: GridType): GridStyle; /** * Get the grid type line style for the grid type or create it * * @param gridType * grid type * @return grid type line style */ private getOrCreateStyle; /** * Set the grid type precision line style * * @param gridType * grid type * @param style * grid line style */ setStyle(style?: GridStyle, gridType?: GridType): void; /** * Clear the propagated grid type precision styles */ clearPrecisionStyles(): void; /** * Get the grid type precision line color * * @param gridType * grid type * @return grid type line color */ getColor(gridType?: GridType): Color | undefined; /** * Set the grid type precision line color * * @param gridType * grid type * @param color * grid line color */ setColor(color?: Color, gridType?: GridType): void; /** * Get the grid type precision line width * * @param gridType * grid type * @return grid type line width */ getWidth(gridType?: GridType): number; /** * Set the grid type precision line width * * @param gridType * grid type * @param width * grid line width */ setWidth(width: number, gridType?: GridType): void; /** * Get the grid labeler * * @return grid labeler */ getLabeler(): GridLabeler; /** * Set the grid labeler * * @param labeler * grid labeler */ setLabeler(labeler: GridLabeler): void; /** * Get the lines for the tile and zone * * @param tile * tile * @param zone * grid zone * @return lines */ getLinesFromGridTile(tile: GridTile, zone: GridZone): GridLine[] | undefined; /** * Get the lines for the zoom, tile bounds, and zone * * @param zoom * zoom level * @param tileBounds * tile bounds * @param zone * grid zone * @return lines */ getLines(zoom: number, zone: GridZone, tileBounds?: Bounds): GridLine[] | undefined; /** * Get the lines for the tile bounds and zone * * @param tileBounds * tile bounds * @param zone * grid zone * @return lines */ getLinesFromBounds(tileBounds: Bounds, zone: GridZone): GridLine[] | undefined; /** * Get the labels for the tile and zone * * @param tile * tile * @param zone * grid zone * @return labels */ getLabelsFromGridTile(tile: GridTile, zone: GridZone): GridLabel[] | undefined; /** * Get the labels for the zoom, tile bounds, and zone * * @param zoom * zoom level * @param tileBounds * tile bounds * @param zone * grid zone * @return labels */ getLabels(zoom: number, zone: GridZone, tileBounds?: Bounds): GridLabel[] | undefined; /** * {@inheritDoc} */ compareTo(other: Grid): number; /** * Get the precision in meters * * @return precision meters */ getPrecisionCompare(): number; hashCode(): number; /** * {@inheritDoc} */ equals(obj: any): boolean; less(other: Grid): boolean; } //# sourceMappingURL=Grid.d.ts.map