@antv/coord
Version:
Toolkit for mapping elements of sets into geometric objects.
42 lines (41 loc) • 1.75 kB
TypeScript
import { CreateTransformer } from '../type';
/**
* Applies cartesian fisheye transforms for the first dimension of vector2.
* @param params [focus, distortion]
* @param x x of the the bounding box of coordinate
* @param y y of the the bounding box of coordinate
* @param width width of the the bounding box of coordinate
* @param height height of the the bounding box of coordinate
* @returns transformer
*/
export declare const fisheyeX: CreateTransformer;
/**
* Applies cartesian fisheye transforms for the second dimension of vector2.
* @param params [focus, distortion]
* @param x x of the the bounding box of coordinate
* @param y y of the the bounding box of coordinate
* @param width width of the the bounding box of coordinate
* @param height height of the the bounding box of coordinate
* @returns transformer
*/
export declare const fisheyeY: CreateTransformer;
/**
* Applies cartesian fisheye transforms for both dimensions of vector2.
* @param params [focusX, focusY, distortionX, distortionY]
* @param x x of the the bounding box of coordinate
* @param y y of the the bounding box of coordinate
* @param width width of the the bounding box of coordinate
* @param height height of the the bounding box of coordinate
* @returns transformer
*/
export declare const fisheye: CreateTransformer;
/**
* Applies circular fisheye transforms.
* @param params [focusX, focusY, radius, distortion, isVisual?]
* @param x x of the the bounding box of coordinate
* @param y y of the the bounding box of coordinate
* @param width width of the the bounding box of coordinate
* @param height height of the the bounding box of coordinate
* @returns transformer
*/
export declare const fisheyeCircular: CreateTransformer;