import { CoordinateTransformation } from "./coordinate-transformation"; import { Size } from "../size"; import { Range } from "../range"; import { NumericPoint } from "../point"; import { NumericRange } from "../numeric-range"; import { NumericDataRect } from "../rect"; export declare class DataTransformation { coordinateTransformation?: CoordinateTransformation | undefined; /** * Creates new instance of data DataTransformation. This entity transforms data from data coordinates * to screen coordinates and reverse. * @param {CoordinateTransformation} coordinateTransformation - Additional transformation applied to data coordinates. */ constructor(coordinateTransformation?: CoordinateTransformation | undefined); /** * Transforms value from data X coordinate to screen X coordinate. * @param {number} value - Data point X coordinate. * @param {Range} visible - Visible data range. * @param {number} screenWidth - Screen width. * @returns {number} */ dataToScreenX(value: number, visible: Range, screenWidth: number): number; /** * Transforms value from data Y coordinate to screen Y coordinate. * @param {number} value - Data point Y coordinate. * @param {Range} visible - Visible data range. * @param {number} screenHeight - Screen height. * @returns {number} */ dataToScreenY(value: number, visible: Range, screenHeight: number): number; private static dataToScreenDim; /** * Transforms value from screen X coordinate to data X coordinate. * @param {number} value - Point on screen X coordinate. * @param {Range} visible - Visible data range * @param {number} screenWidth - Screen width. * @returns {number} */ screenToDataX(value: number, visible: NumericRange, screenWidth: number): number; /** * Transforms value from screen Y coordinate to data Y coordinate. * @param {number} value - Point on screen Y coordinate. * @param {Range} visible - Visible data range * @param {number} screenHeight - Screen height. * @returns {number} */ screenToDataY(value: number, visible: NumericRange, screenHeight: number): number; /** * Transforms point from XY coordinates in specified screen region to data XY coordinate. * @param {NumericPoint} value - Point in specified screen region coords. * @param {NumericDataRect} visible - Visible data rectangle. * @param {NumericDataRect} screenRegion - Screen region. * @returns {NumericPoint} */ screenRegionToDataXY(value: NumericPoint, visible: NumericDataRect, screenRegion: NumericDataRect): NumericPoint; /** * Transforms rectangle from XY coordinates in specified screen region to data coordinates. * @param {NumericPoint} rect - NumericDataRect in specified screen region coords. * @param {NumericDataRect} visible - Visible data rectangle. * @param {NumericDataRect} screenRegion - Screen region. * @returns {NumericDataRect} */ screenRegionToDataForRect(rect: NumericDataRect, visible: NumericDataRect, screenRegion: NumericDataRect): NumericDataRect; /** * Transforms point from data XY coordinates to screen XY coordinates. * @param {NumericPoint} value - Point in data coordinates. * @param {NumericDataRect} visible - Visible data rectangle. * @param {Size} screenSize - Screen size. * @returns {NumericPoint} */ dataToScreenXY(value: NumericPoint, visible: NumericDataRect, screenSize: Size): NumericPoint; /** * Transforms point in data XY coordinates to XY coordinates in specified screen region. * @param {NumericPoint} value - Point in data coordinates. * @param {NumericDataRect} visible - Visible data rectangle. * @param {NumericDataRect} screenRegion - Screen region. * @returns {NumericPoint} */ dataToScreenRegionXY(value: NumericPoint, visible: NumericDataRect, screenRegion: NumericDataRect): NumericPoint; /** * Transforms point in data X coordinate to X coordinate in specified screen region. * @param {NumericPoint} x - Point x coordinate in data coordinates. * @param {NumericDataRect} visible - Visible data rectangle. * @param {NumericDataRect} screenRegion - Screen region. * @returns {number} */ dataToScreenRegionX(x: number, visible: NumericDataRect, screenRegion: NumericDataRect): number; /** * Transforms point in data Y coordinate to Y coordinate in specified screen region. * @param {NumericPoint} y - Point y coordinate in data coordinates. * @param {NumericDataRect} visible - Visible data rectangle. * @param {NumericDataRect} screenRegion - Screen region. * @returns {number} */ dataToScreenRegionY(y: number, visible: NumericDataRect, screenRegion: NumericDataRect): number; /** * Transforms point in data XY coordinates to XY coordinates in specified screen region without inverting y coordinate.. * @param {NumericPoint} value - Point in data coordinates. * @param {NumericDataRect} visible - Visible data rectangle. * @param {NumericDataRect} screenRegion - Screen region. * @returns {NumericPoint} */ dataToScreenRegionXYwithoutYinvert(value: NumericPoint, visible: NumericDataRect, screenRegion: NumericDataRect): NumericPoint; /** * Transforms rectangle from XY coordinates in data coordinates to specified screen region. * @param {NumericPoint} rect - NumericDataRect in data coords. * @param {NumericDataRect} visible - Visible data rectangle. * @param {NumericDataRect} screenRegion - Screen region. * @returns {NumericDataRect} */ dataToScreenRegionForRect(rect: NumericDataRect, visible: NumericDataRect, screenRegion: NumericDataRect): NumericDataRect; getRelativePointLocationOnScreen(origin: NumericPoint, relativeDataPoint: NumericPoint, visible: NumericDataRect, screen: NumericDataRect): NumericPoint; getRelativeXValueLocationOnScreen(origin: NumericPoint, xValue: number, visible: NumericDataRect, screen: NumericDataRect): number; getRelativeYValueLocationOnScreen(origin: NumericPoint, yValue: number, visible: NumericDataRect, screen: NumericDataRect): number; getRelativeRectLocationOnScreen(origin: NumericPoint, dataRect: NumericDataRect, visible: NumericDataRect, screen: NumericDataRect): NumericDataRect; } //# sourceMappingURL=data-transformation.d.ts.map