@antv/g2plot
Version:
G2 Plot, a market of plots built with the Grammar of Graphics'
201 lines (200 loc) • 5.5 kB
TypeScript
export declare const COLOR_PLATE_10: string[];
export declare const COLOR_PLATE_20: string[];
import { ViewConfig } from '../base/view-layer';
export declare const DESCRIPTION_BOTTOM_MARGIN: (legendPosition: any) => 24 | 12;
export declare const TOP_BLEEDING: (props: ViewConfig) => 24 | 12;
export declare const BOTTOM_BLEEDING: (props: ViewConfig) => 24 | 8;
export declare const DEFAULT_GLOBAL_THEME: {
width: number;
height: number;
bleeding: (number | ((props: ViewConfig) => 24 | 12) | ((props: ViewConfig) => 24 | 8))[];
padding: string;
defaultColor: string;
colors: string[];
colors_20: string[];
title: {
padding: number[];
fontFamily: string;
fontSize: number;
fill: string;
textAlign: string;
textBaseline: string;
lineHeight: number;
alignWithAxis: boolean;
};
description: {
padding: (number | ((legendPosition: any) => 24 | 12))[];
fontFamily: string;
fontSize: number;
fill: string;
textAlign: string;
textBaseline: string;
lineHeight: number;
alignWithAxis: boolean;
};
axis: {
y: {
visible: boolean;
position: string;
autoHideLabel: boolean;
autoRotateLabel: boolean;
autoRotateTitle: boolean;
grid: {
visible: boolean;
style: {
stroke: string;
lineWidth: number;
lineDash: number[];
};
};
line: {
visible: boolean;
style: {
stroke: string;
lineWidth: number;
};
};
tickLine: {
visible: boolean;
style: {
stroke: string;
lineWidth: number;
length: number;
};
};
label: {
visible: boolean;
offset: number;
textStyle: {
fill: string;
fontSize: number;
};
};
title: {
visible: boolean;
offset: number;
style: {
fill: string;
fontSize: number;
textBaseline: string;
};
};
};
x: {
visible: boolean;
position: string;
autoHideLabel: boolean;
autoRotateLabel: boolean;
autoRotateTitle: boolean;
grid: {
visible: boolean;
style: {
stroke: string;
lineWidth: number;
lineDash: number[];
};
};
line: {
visible: boolean;
style: {
stroke: string;
lineWidth: number;
};
};
tickLine: {
visible: boolean;
style: {
length: number;
stroke: string;
lineWidth: number;
};
};
label: {
visible: boolean;
textStyle: {
fill: string;
fontSize: number;
};
offset: number;
};
title: {
visible: boolean;
offset: number;
style: {
fill: string;
fontSize: number;
};
};
};
circle: {
autoHideLabel: boolean;
autoRotateLabel: boolean;
autoRotateTitle: boolean;
grid: {
style: {
lineDash: any;
lineWidth: number;
stroke: string;
};
};
line: {
style: {
lineWidth: number;
stroke: string;
};
};
tickLine: {
style: {
lineWidth: number;
stroke: string;
length: number;
alignWithLabel: boolean;
};
};
label: {
offset: number;
textStyle: {
fill: string;
fontSize: number;
};
};
title: {
offset: number;
style: {
fill: string;
fontSize: number;
};
};
};
radius: {
label: {
textStyle: {
fill: string;
fontSize: number;
};
};
};
};
legend: {
flipPage: boolean;
position: string;
innerPadding: number[];
margin: number[];
};
label: {
offset: number;
textStyle: {
fill: string;
};
style: {
fill: string;
stroke: string;
lineWidth: number;
};
};
tooltip: {
'g2-tooltip': {
boxShadow: string;
};
};
};