-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
66 lines (58 loc) · 1.15 KB
/
types.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import { Args } from "https://deno.land/std/flags/mod.ts"
export type Pair = [number, number]
export type Matrix = string[][]
export type LabelProps = {
index: number
label?: string
}
export interface ChartInput {
headers: string[]
matrix: Matrix
}
export interface ChartOptions {
W: number
H: number
T: number
R: number
B: number
L: number
X_TICKS: number
Y_TICKS: number
FONT_SIZE: number
CHART_BACKGROUND: string
CHART_BORDER: string
SHEET_BACKGROUND: string
COLOR_LIST: string[]
Y_RANGE?: Pair
Y_NORM: number
}
interface CLChartOptionsAll extends Args {
width: string
W: string
height: string
H: string
"margin-top": string
T: string
"margin-right": string
R: string
"margin-bottom": string
B: string
"margin-left": string
L: string
"x-ticks": string
X: string
"y-ticks": string
Y: string
"font-size": string
F: string
"chart-background": string
"chart-border": string
"sheet-background": string
"y-range": string
y: string
}
export type CLChartOptions = Partial<CLChartOptionsAll> & { _: string[] }
export interface CLArguments extends CLChartOptions {
i: string
o: string
}