Table Primitive
TABLE Table
json
{ "type": "TABLE", "id": "UUID", "ticket": 1 }||
{
"partId": "",
"groupId": 0,
"startX": 30,
"startY": 40,
"rowSizes": [32, 40, 32, 32, 25],
"colSizes": [33, 33, 44, 44, 11],
"rowLocked": [0, 0, 1, 0, 0],
"colLocked": [0, 1, 0, 0, 0],
"rotation": 0,
}|1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
- type table:
TABLE. - id ID, unique within the file.
- ticket logical clock.
- partId sub-library ID, exclusive to symbol pages; ignored on schematics.
- groupId group ID, cannot be 0, empty by default when none.
- startX top-left X.
- startY top-left Y.
- rowSizes row heights.
- colSizes column widths.
- rowLocked row lock.
- colLocked column lock.
- rotation rotation angle.
TABLE_CELL Table Cell
json
{ "type": "TABLE", "id": "UUID", "ticket": 1 }||
{
"tableId": "tableId",
"value": "abc\ndef\nghi",
"rowIndex": 2,
"columnIndex": 5,
"rowSpan": 1,
"colSpan": 3,
"topStyle": {
"strokeColor": null,
"strokeStyle": 0,
"fillColor": "",
"strokeWidth": null,
"fillStyle": 1,
},
"rightStyle": {
"strokeColor": null,
"strokeStyle": 0,
"fillColor": "",
"strokeWidth": null,
"fillStyle": 1,
},
"bottomStyle": {
"strokeColor": null,
"strokeStyle": 0,
"fillColor": "",
"strokeWidth": null,
"fillStyle": 1,
},
"leftStyle": {
"strokeColor": null,
"strokeStyle": 0,
"fillColor": "",
"strokeWidth": null,
"fillStyle": 1,
},
"leftStyle": {
"strokeColor": null,
"strokeStyle": 0,
"fillColor": "",
"strokeWidth": null,
"fillStyle": 1,
},
"fontStyle": {
"color": "#fff",
"fillColor": "#fff",
"fontFamily": "SimSun",
"fontSize": 12,
"strikeout": false,
"underline": false,
"italic": false,
"fontWeight": false,
"vAlign": 0 ,
"hAlign": 2,
},
"lineHeight": 12,
}|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
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
- type table cell:
TABLE_CELL. - id ID, unique within the file.
- ticket logical clock.
- tableId table ID.
- value content.
- rowIndex row.
- columnIndex column.
- rowSpan width (how many columns occupied).
- colSpan height (how many rows occupied).
- topStyle top border line style.
- rightStyle right border line style.
- bottomStyle bottom border line style.
- leftStyle left border line style.
- fontStyle font style.
- lineHeight line spacing.