@antv/s2
Version:
effective spreadsheet render core lib
10 lines (9 loc) • 759 B
TypeScript
import type { AxisComponent, G2Spec } from '@antv/g2';
import { type InternalFullyCellTheme, type Node, type SpreadSheet, type ViewMeta } from '@antv/s2';
export declare function getTheme(s2: SpreadSheet): Pick<G2Spec, 'theme'>;
export declare function getAxisStyle(cellStyle: InternalFullyCellTheme): AxisComponent;
export declare function getCoordinate(s2: SpreadSheet): Pick<G2Spec, 'coordinate'>;
export declare function getAxisXOptions(meta: Node, s2: SpreadSheet): AxisComponent;
export declare function getScaleY(value: string, s2: SpreadSheet): Pick<G2Spec, 'scale'>;
export declare function getAxisYOptions(meta: Node, s2: SpreadSheet): AxisComponent;
export declare function getTooltip(viewMeta: ViewMeta, s2: SpreadSheet): Pick<G2Spec, 'tooltip'>;