import { Line, Point } from '@ngageoint/grid-js'; import { GridType } from '../grid/GridType'; /** * Line between two points */ export declare class GridLine extends Line { /** * Grid type the line represents if any */ private gridType?; /** * Create a line * * @param point1 * first point * @param point2 * second point * @param gridType * line grid type (optional) * @return line */ static lineFromPoints(point1: Point, point2: Point, gridType?: GridType): GridLine; /** * Create a line * * @param line * line to copy * @param gridType * line grid type (optional) * @return line */ static lineFromLine(line: Line, gridType?: GridType): GridLine; /** * Copy a line * * @param line * line to copy * @return line */ static lineFromGridLine(line: GridLine): GridLine; /** * Constructor * * @param line * line to copy */ constructor(line: Line); /** * Get the line grid type * * @return grid type */ getGridType(): GridType | undefined; /** * Check if the line has a grid type * * @return true if has grid type */ hasGridType(): boolean; /** * Set the line grid type * * @param gridType * grid type */ setGridType(gridType: GridType): void; /** * Copy the line * * @return line copy */ copy(): GridLine; /** * {@inheritDoc} */ equals(obj: any): boolean; } //# sourceMappingURL=GridLine.d.ts.map