Skip to content

Commit eac5e00

Browse files
committed
Types - Update VueUiXyConfig type
1 parent d05d380 commit eac5e00

File tree

1 file changed

+28
-17
lines changed

1 file changed

+28
-17
lines changed

types/vue-data-ui.d.ts

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2088,6 +2088,24 @@ declare module 'vue-data-ui' {
20882088
dataset: VueUiHeatmapDatasetItem[]
20892089
}>;
20902090

2091+
export type VueUiXyHighlightArea = {
2092+
show?: boolean;
2093+
from?: number;
2094+
to?: number;
2095+
color?: string;
2096+
opacity?: number;
2097+
caption?: {
2098+
text?: string;
2099+
fontSize?: number;
2100+
color?: string;
2101+
bold?: boolean;
2102+
offsetY?: number;
2103+
width?: "auto" | number;
2104+
padding?: number;
2105+
textAlign?: TextAlign;
2106+
};
2107+
}
2108+
20912109
export type VueUiXyConfig = {
20922110
responsive?: boolean;
20932111
theme?: Theme;
@@ -2118,27 +2136,20 @@ declare module 'vue-data-ui' {
21182136
color?: string;
21192137
};
21202138
};
2121-
highlightArea?: {
2122-
show?: boolean;
2123-
from?: number;
2124-
to?: number;
2125-
color?: string;
2126-
opacity?: number;
2127-
caption?: {
2128-
text?: string;
2129-
fontSize?: number;
2130-
color?: string;
2131-
bold?: boolean;
2132-
offsetY?: number;
2133-
width?: "auto" | number;
2134-
padding?: number;
2135-
textAlign?: TextAlign;
2136-
};
2137-
};
2139+
highlightArea?: VueUiXyHighlightArea | VueUiXyHighlightArea[];
21382140
grid?: {
21392141
stroke?: string;
21402142
showHorizontalLines?: boolean;
21412143
showVerticalLines?: boolean;
2144+
position?: 'middle' | 'start';
2145+
frame: {
2146+
show?: boolean;
2147+
stroke?: string;
2148+
stokeWidth?: number;
2149+
strokeLinecap?: "round" | "butt" | "square",
2150+
strokeLinejoin?: "arcs" | "bevel" | "miter" | "miter-clip" | "round",
2151+
strokeDasharray?: number;
2152+
};
21422153
labels?: {
21432154
color?: string;
21442155
show?: boolean;

0 commit comments

Comments
 (0)