import { Size } from '../size'; import { DataRect } from "./data-rect"; import { NumericPoint } from "../point"; import { NumericRange } from "../numeric-range"; import { Margin } from "../margin"; export declare class NumericDataRect extends DataRect { get width(): number; get height(): number; /** * Creates numeric data rectangle. * @param {number} minX - Left corner of rectangle coordinate. * @param {number} maxX - Right corner of rectangle coordinate. * @param {number} minY - Top corner of rectangle coordinate. * @param {number} maxY - Bottom corner of rectangle coordinate. */ constructor(minX: number, maxX: number, minY: number, maxY: number); /** * Creates numeric data rectangle. * @param {number} minX - Left corner of rectangle coordinate. * @param {number} width - Rectangle width. * @param {number} minY - Top corner of rectangle coordinate. * @param {number} height - Rectangle height. */ static apply(minX: number, minY: number, width: number, height: number): NumericDataRect; /** * Returns data rectangle size. * @returns {Size} */ getSize(): Size; /** * Left Top corner of data rectangle. * @returns {NumericPoint} */ getMinXMinY(): NumericPoint; /** * Right Bottom corner of data rectangle. * @returns {NumericPoint} */ getMaxXMaxY(): NumericPoint; /** * Returns data rectangle center. * @returns {NumericPoint} */ getCenter(): NumericPoint; /** * Creates new DataRect with specified width * @param {number} width - new width * @returns NumericDataRect * */ withWidth(width: number): NumericDataRect; /** * Creates new DataRect with specified height * @param {number} height - new height * @returns NumericDataRect * */ withHeight(height: number): NumericDataRect; /** * Merges one data rectangle with other data rectangle. * @param {DataRect} other - Other rectangle. * @returns {DataRect} */ merge(other: NumericDataRect): NumericDataRect; /** * Adds numeric point to rect coordinates. * @param {NumericPoint} point - Point to add. * @returns {NumericDataRect} */ addOffset(point: NumericPoint): NumericDataRect; /** * Adds relative padding to rect coordinates. * @param {Margin} padding - Relative padding. * @returns {NumericDataRect} */ addRelativePadding(padding: Margin): NumericDataRect; /** * Returns horizontal range for this data rectangle. * @returns {Range} */ getHorizontalRange(): NumericRange; /** * Returns vertical range for this data rectangle. * @returns {Range} */ getVerticalRange(): NumericRange; /** * Adds margin to the rect coordinates. * @param {Margin} margin - Margin to add. * @returns {NumericDataRect} */ addMargin(margin: Margin): NumericDataRect; } //# sourceMappingURL=numeric-data-rect.d.ts.map