-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprops.ts
30 lines (28 loc) · 789 Bytes
/
props.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
export const commonProps = {
encode: { type: 'object' },
scale: { type: 'object' },
data: { type: 'value' },
transform: { type: 'array' },
style: { type: 'object' },
animate: { type: 'object' },
coordinate: { type: 'object' },
interaction: { type: 'object' },
label: { type: 'array', key: 'labels' },
axis: { type: 'object' },
legend: { type: 'object' },
slider: { type: 'object' },
scrollbar: { type: 'object' },
state: { type: 'object' },
layout: { type: 'object' },
theme: { type: 'object' },
title: { type: 'value' },
} as const;
export const markProps = {
...commonProps,
tooltip: { type: 'mix' },
viewStyle: { type: 'object' },
} as const;
export const compositionProps = {
...commonProps,
labelTransform: { type: 'array' },
} as const;