-
Notifications
You must be signed in to change notification settings - Fork 0
/
components.go
48 lines (40 loc) · 881 Bytes
/
components.go
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
package main
type Component struct {
Height int `kdl:"height"`
Width int `kdl:"width"`
X int `kdl:"x"`
Y int `kdl:"y"`
Id string `kdl:"id"`
}
type Base64Image struct {
Height int
Width int
Data string
}
type Viz struct {
Component Component `kdl:"component"`
Image Base64Image `kdl:"image"`
}
const TABLE_SECTION_STYLES = "position: absolute; overflow: visible;"
const CELL_STYLES = "padding: 2px 4px;"
type TableSection struct {
Component Component `kdl:",props"`
// Contents []interface{}
}
type Table struct {
component Component
borderColor string
fontSize int
primaryColor string
secondaryColor string
headerColor string
widths []int
heights []int
schema int
}
type TableSchema struct {
id int
cellStyles []string
cellValues []string
}
// type Row struct {