fisheye.d.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import { CreateTransformer } from '../type';
  2. /**
  3. * Applies cartesian fisheye transforms for the first dimension of vector2.
  4. * @param params [focus, distortion]
  5. * @param x x of the the bounding box of coordinate
  6. * @param y y of the the bounding box of coordinate
  7. * @param width width of the the bounding box of coordinate
  8. * @param height height of the the bounding box of coordinate
  9. * @returns transformer
  10. */
  11. export declare const fisheyeX: CreateTransformer;
  12. /**
  13. * Applies cartesian fisheye transforms for the second dimension of vector2.
  14. * @param params [focus, distortion]
  15. * @param x x of the the bounding box of coordinate
  16. * @param y y of the the bounding box of coordinate
  17. * @param width width of the the bounding box of coordinate
  18. * @param height height of the the bounding box of coordinate
  19. * @returns transformer
  20. */
  21. export declare const fisheyeY: CreateTransformer;
  22. /**
  23. * Applies cartesian fisheye transforms for both dimensions of vector2.
  24. * @param params [focusX, focusY, distortionX, distortionY]
  25. * @param x x of the the bounding box of coordinate
  26. * @param y y of the the bounding box of coordinate
  27. * @param width width of the the bounding box of coordinate
  28. * @param height height of the the bounding box of coordinate
  29. * @returns transformer
  30. */
  31. export declare const fisheye: CreateTransformer;
  32. /**
  33. * Applies circular fisheye transforms.
  34. * @param params [focusX, focusY, radius, distortion, isVisual?]
  35. * @param x x of the the bounding box of coordinate
  36. * @param y y of the the bounding box of coordinate
  37. * @param width width of the the bounding box of coordinate
  38. * @param height height of the the bounding box of coordinate
  39. * @returns transformer
  40. */
  41. export declare const fisheyeCircular: CreateTransformer;