@visactor/vtable
Version:
canvas table width high performance
147 lines (146 loc) • 3.4 kB
TypeScript
import type { ICellAxisOption } from '../../ts-types/component/axis';
export declare const DEFAULT_TEXT_FONT_FAMILY = "PingFang SC,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif, apple color emoji,segoe ui emoji,segoe ui symbol";
export declare const DEFAULT_TEXT_FONT_SIZE = 14;
export declare const THEME_CONSTANTS: {
FONT_FAMILY: string;
LABEL_FONT_SIZE: number;
MAP_LABEL_FONT_SIZE: number;
TITLE_FONT_SIZE: number;
AXIS_TICK_SIZE: number;
};
export declare const commonAxis: {
domainLine: {
visible: boolean;
style: {
lineWidth: number;
stroke: string;
strokeOpacity: number;
};
};
grid: {
visible: boolean;
style: {
lineWidth: number;
stroke: string;
strokeOpacity: number;
lineDash: any[];
};
};
subGrid: {
visible: boolean;
style: {
lineWidth: number;
stroke: string;
strokeOpacity: number;
lineDash: number[];
};
};
tick: {
visible: boolean;
tickSize: number;
style: {
lineWidth: number;
stroke: string;
strokeOpacity: number;
};
};
subTick: {
visible: boolean;
tickSize: number;
style: {
lineWidth: number;
stroke: string;
strokeOpacity: number;
};
};
label: {
visible: boolean;
space: number;
style: {
fontSize: number;
fill: string;
fontWeight: string;
fillOpacity: number;
};
autoLimit: boolean;
};
title: {
space: number;
style: {
fontSize: number;
fill: string;
fontWeight: string;
fillOpacity: number;
};
};
};
export declare function getCommonAxis(theme: any): any;
export declare function getAxisAttributes(option: ICellAxisOption): {
orient: any;
select: any;
hover: any;
line: any;
label: {
style: any;
formatMethod: (value: any, datum: any, index: number) => any;
state: any;
};
tick: {
visible: any;
length: any;
inside: any;
alignWithLabel: any;
style: any;
state: any;
dataFilter: any;
};
subTick: {
visible: any;
length: any;
inside: any;
count: any;
style: any;
state: any;
};
grid: {
type: string;
visible: any;
alternateColor: any;
alignWithLabel: any;
style: any;
};
subGrid: {
type: string;
visible: any;
alternateColor: any;
style: any;
};
title: {
visible: any;
position: any;
space: any;
autoRotate: boolean;
angle: number;
textStyle: any;
padding: any;
shape: {
visible: any;
space: any;
style: any;
};
background: {
visible: any;
style: any;
};
state: {
text: any;
shape: any;
background: any;
};
};
panel: {
visible: any;
style: any;
state: any;
};
};