UNPKG

@visactor/vchart

Version:

charts lib based @visactor/VGrammar

16 lines (15 loc) 1.02 kB
import type { IOrientType } from '../../../../typings'; import { Direction } from '../../../../typings/space'; import type { ICartesianAxisCommonSpec } from '../interface'; 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: import("../..").AxisType; componentName: string; };