Skip to content

Commit f0c467e

Browse files
committed
fix: 完善样式编译成二进制处理
1 parent 8d53ada commit f0c467e

File tree

3 files changed

+1436
-79
lines changed

3 files changed

+1436
-79
lines changed

flatbuffers/stylesheet.fbs

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,53 @@ table String {
55
}
66

77
table Integer {
8-
value:uint32;
8+
value:int64;
9+
}
10+
11+
table Double {
12+
value:double;
13+
}
14+
15+
table Boolean {
16+
value:bool;
17+
}
18+
19+
table StringArray {
20+
values:[string];
21+
}
22+
23+
table IntegerArray {
24+
values:[int64];
25+
}
26+
27+
table DoubleArray {
28+
values:[double];
29+
}
30+
31+
table ObjectArray {
32+
values:[KeyValue];
33+
}
34+
35+
table IntegereArrayArray {
36+
values:[IntegerArray];
37+
}
38+
39+
table DoubleArrayArray {
40+
values:[DoubleArray];
941
}
1042

1143
union Value {
1244
String,
1345
Integer,
14-
Object
46+
Double,
47+
Boolean,
48+
StringArray,
49+
IntegerArray,
50+
DoubleArray,
51+
Object,
52+
ObjectArray,
53+
IntegereArrayArray,
54+
DoubleArrayArray
1555
}
1656

1757
table KeyValue {
@@ -30,13 +70,13 @@ table DeclarationTuple {
3070

3171
table Selector {
3272
string_value:string;
33-
integer_value:uint32;
73+
integer_value:uint8;
3474
is_string:bool;
3575
}
3676

3777
table Style {
3878
declarations:[DeclarationTuple];
39-
media:uint32;
79+
media:uint8;
4080
selector:[Selector];
4181
}
4282

0 commit comments

Comments
 (0)