scale.d.ts 872 B

1234567891011
  1. import { G2MarkState, ChannelGroups } from './types/common';
  2. import { G2Library, G2ScaleOptions, G2Mark } from './types/options';
  3. import { Scale } from './types/component';
  4. import { MarkChannel } from './types/mark';
  5. export declare function inferScale(name: any, values: any, options: any, coordinates: any, theme: any, library: any): any;
  6. export declare function applyScale(channels: ChannelGroups[], scale: Record<string, Scale>): MarkChannel;
  7. export declare function useRelation(relations: [any, any][]): [(scale: Scale) => Scale, (scale: Scale) => Scale];
  8. export declare function useRelationScale(options: Record<string, any>, library: G2Library): Scale;
  9. export declare function syncFacetsScales(states: Map<G2Mark, G2MarkState>[]): void;
  10. export declare function isPosition(name: string): boolean;
  11. export declare function isValidScale(scale: G2ScaleOptions): boolean;