UNPKG

@visactor/vchart

Version:

charts lib based @visactor/VGrammar

39 lines (38 loc) 1.56 kB
import type { IOrientType, IPolarOrientType } from '../../typings'; import type { AxisType, ICommonAxisSpec, ILinearAxisSpec } from './interface'; import type { ITheme } from '../../theme'; import type { IAxisHelper } from './cartesian'; import type { IPolarAxisHelper } from './polar'; export declare const DEFAULT_TITLE_STYLE: { left: { textAlign: string; textBaseline: string; }; right: { textAlign: string; textBaseline: string; }; radius: {}; angle: {}; }; export declare function transformAxisLineStyle(lineCfg: any): any; export declare function getAxisLabelOffset(axisSpec: ICommonAxisSpec): number; export declare function getLinearAxisSpecDomain(axisSpec: ILinearAxisSpec, defaultDomain?: { min?: number; max?: number; }): { min: number; max: number; }; export declare function isValidCartesianAxis(spec: any): boolean; export declare function isValidPolarAxis(spec: any): boolean; export declare const getCartesianAxisTheme: (orient: IOrientType, type: AxisType, chartTheme: ITheme) => any; export declare const getPolarAxisTheme: (orient: IPolarOrientType, type: AxisType, chartTheme: ITheme) => any; export declare const isDiscreteAxis: (axisType: AxisType) => boolean; export declare function getAxisItem(value: any, normalizedValue: number): { id: any; label: any; value: number; rawValue: any; }; export declare function shouldUpdateAxis(preHelper: IAxisHelper | IPolarAxisHelper, curHelper: IAxisHelper | IPolarAxisHelper, forceUpdate: boolean): boolean;