coordinate.d.ts 1.3 KB

123456789101112131415161718192021222324
  1. import { Coordinate } from '@antv/coord';
  2. import { G2View, G2CoordinateOptions, G2Library } from './types/options';
  3. import { Layout } from './types/common';
  4. export declare function createCoordinate(layout: Layout, partialOptions: G2View, library: G2Library): Coordinate;
  5. export declare function coordinate2Transform(node: G2View, library: G2Library): G2View;
  6. export declare function coordOf(coordinates: G2CoordinateOptions[], type: string): G2CoordinateOptions[];
  7. /**
  8. * todo Duplication is not considered
  9. */
  10. export declare function isPolar(coordinates: G2CoordinateOptions[]): boolean;
  11. export declare function isHelix(coordinates: G2CoordinateOptions[]): boolean;
  12. /**
  13. * todo The number of transposes matters
  14. */
  15. export declare function isTranspose(coordinates: G2CoordinateOptions[]): boolean;
  16. export declare function isParallel(coordinates: G2CoordinateOptions[]): boolean;
  17. export declare function isTheta(coordinates: G2CoordinateOptions[]): boolean;
  18. export declare function isReflect(coordinates: G2CoordinateOptions[]): boolean;
  19. export declare function isRadial(coordinates: G2CoordinateOptions[]): boolean;
  20. export declare function isRadar(coordinates: G2CoordinateOptions[]): boolean;
  21. /**
  22. * todo The axis corresponding to the Y reversal is not reversed
  23. */
  24. export declare function isReflectY(coordinates: G2CoordinateOptions[]): boolean;