coordinate.d.ts 1.3 KB

12345678910111213141516
  1. /// <reference types="_gl-matrix@3.4.3@gl-matrix" />
  2. import { Coordinate } from '@antv/coord';
  3. export declare function isTranspose(coordinate: Coordinate): boolean;
  4. export declare function isPolar(coordinate: Coordinate): boolean;
  5. export declare function isRadial(coordinate: Coordinate): boolean;
  6. export declare function isHelix(coordinate: Coordinate): boolean;
  7. export declare function isParallel(coordinate: Coordinate): boolean;
  8. export declare function isFisheye(coordinate: Coordinate): boolean;
  9. export declare function isRadar(coordinate: Coordinate): boolean;
  10. export declare function isCircular(coordinate: Coordinate): boolean;
  11. export declare function isTheta(coordinate: Coordinate): boolean;
  12. export declare function isNonCartesian(coordinate: Coordinate): boolean;
  13. export declare function getRadius(coordinate: Coordinate): number;
  14. export declare function radiusOf(coordinate: Coordinate): [number, number];
  15. export declare function angleOf(coordinate: Coordinate, isRadius?: boolean): [number, number];
  16. export declare function getTransformOptions(coordinate: Coordinate, type: string): [number, number] | [] | [import("@antv/coord/lib/type").TransformCallback] | [import("gl-matrix").mat3] | [number, number, number, number] | [number] | [number, number, number, number, boolean?] | [number, number, boolean?];