utils.d.ts 989 B

1234567891011121314151617181920
  1. import type { CallbackableObject, Vector2 } from '../../../types';
  2. import type { AxisDatumCP, AxisStyleProps, Direction, RequiredAxisStyleProps } from '../types';
  3. export declare function getCallbackStyle<T extends {
  4. [keys: string]: any;
  5. }, P extends Array<any> = []>(style: CallbackableObject<T, AxisDatumCP<P>>, params: AxisDatumCP<P>): {
  6. [k: string]: T_1;
  7. };
  8. export declare function baseDependencies(attr: Required<AxisStyleProps>): any[];
  9. export declare function filterExec<T>(data: T[], filter?: (...args: any) => boolean): T[];
  10. /** ---- to avoid cycle dependency */
  11. export declare const getLineAngle: {
  12. (...args: any[]): any;
  13. cache: Map<any, any>;
  14. };
  15. export declare const getLineTangentVector: {
  16. (...args: any[]): any;
  17. cache: Map<any, any>;
  18. };
  19. export declare function getDirectionVector(value: number, direction: Direction, attr: RequiredAxisStyleProps): Vector2;
  20. export declare function getLabelVector(value: number, attr: Required<AxisStyleProps>): Vector2;