UNPKG

@visactor/vchart

Version:

charts lib based @visactor/VGrammar

18 lines (17 loc) 1.19 kB
import type { IOrientType } from '../../../../typings'; import { Direction } from '../../../../typings/space'; import type { ICartesianAxisCommonSpec } from '../interface'; import type { AxisType } from '../../interface/common'; export declare function isXAxis(orient: IOrientType): boolean; export declare function isYAxis(orient: IOrientType): boolean; export declare function isZAxis(orient: IOrientType): boolean; export declare function autoAxisType(orient: IOrientType, isHorizontal: boolean): "linear" | "band"; export declare function getOrient(spec: ICartesianAxisCommonSpec, whiteList?: string[]): IOrientType; export declare function getDirectionByOrient(orient: IOrientType): Direction; export declare function isOrientInSameDirection(orient1: IOrientType, orient2: IOrientType): boolean; export declare function transformInverse(spec: ICartesianAxisCommonSpec, isHorizontal: boolean): boolean; export declare function getCartesianAxisInfo(spec: ICartesianAxisCommonSpec, isHorizontal?: boolean): { axisType: AxisType; componentName: string; }; export declare const getCartesianAxisTheme: (orient: IOrientType, type: AxisType, getTheme: (...keys: string[]) => any) => any;