@dcl/protocol 1.0.0-2611837018.commit-7cfa324 → 1.0.0-2611857113.commit-45ed75b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ecs/components/UiTransform.proto +159 -0
- package/package.json +2 -2
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "common/id.proto";
|
|
4
|
+
option (ecs_component_id) = 1050;
|
|
5
|
+
|
|
6
|
+
enum YGPositionType {
|
|
7
|
+
YGPositionTypeStatic = 0;
|
|
8
|
+
YGPositionTypeRelative = 1;
|
|
9
|
+
YGPositionTypeAbsolute = 2;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
enum YGAlign {
|
|
13
|
+
YGAlignAuto = 0;
|
|
14
|
+
YGAlignFlexStart = 1;
|
|
15
|
+
YGAlignCenter = 2;
|
|
16
|
+
YGAlignFlexEnd = 3;
|
|
17
|
+
YGAlignStretch = 4;
|
|
18
|
+
YGAlignBaseline = 5;
|
|
19
|
+
YGAlignSpaceBetween = 6;
|
|
20
|
+
YGAlignSpaceAround = 7;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
enum YGUnit {
|
|
24
|
+
YGUnitUndefined = 0;
|
|
25
|
+
YGUnitPoint = 1;
|
|
26
|
+
YGUnitPercent = 2;
|
|
27
|
+
YGUnitAuto = 3;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
enum YGDirection {
|
|
31
|
+
YGDirectionInherit = 0;
|
|
32
|
+
YGDirectionLTR = 1;
|
|
33
|
+
YGDirectionRTL = 2;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
enum YGFlexDirection {
|
|
37
|
+
YGFlexDirectionColumn = 0;
|
|
38
|
+
YGFlexDirectionColumnReverse = 1;
|
|
39
|
+
YGFlexDirectionRow = 2;
|
|
40
|
+
YGFlexDirectionRowReverse = 3;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
enum YGWrap {
|
|
44
|
+
YGWrapNoWrap = 0;
|
|
45
|
+
YGWrapWrap = 1;
|
|
46
|
+
YGWrapWrapReverse = 2;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
enum YGJustify {
|
|
50
|
+
YGJustifyFlexStart = 0;
|
|
51
|
+
YGJustifyCenter = 1;
|
|
52
|
+
YGJustifyFlexEnd = 2;
|
|
53
|
+
YGJustifySpaceBetween = 3;
|
|
54
|
+
YGJustifySpaceAround = 4;
|
|
55
|
+
YGJustifySpaceEvenly = 5;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
enum YGOverflow {
|
|
59
|
+
YGOverflowVisible = 0;
|
|
60
|
+
YGOverflowHidden = 1;
|
|
61
|
+
YGOverflowScroll = 2;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
enum YGDisplay {
|
|
65
|
+
YGDisplayFlex = 0;
|
|
66
|
+
YGDisplayNone = 1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
enum YGEdge {
|
|
70
|
+
YGEdgeLeft = 0;
|
|
71
|
+
YGEdgeTop = 1;
|
|
72
|
+
YGEdgeRight = 2;
|
|
73
|
+
YGEdgeBottom = 3;
|
|
74
|
+
YGEdgeStart = 4;
|
|
75
|
+
YGEdgeEnd = 5;
|
|
76
|
+
YGEdgeHorizontal = 6;
|
|
77
|
+
YGEdgeVertical = 7;
|
|
78
|
+
YGEdgeAll = 8;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message PBUiTransform {
|
|
82
|
+
YGPositionType position_type = 1;
|
|
83
|
+
|
|
84
|
+
YGAlign align_content = 2;
|
|
85
|
+
YGAlign align_items = 3;
|
|
86
|
+
YGAlign align_self = 4;
|
|
87
|
+
YGFlexDirection flex_direction = 5;
|
|
88
|
+
YGWrap flex_wrap = 6;
|
|
89
|
+
YGJustify justify_content = 7;
|
|
90
|
+
|
|
91
|
+
YGOverflow overflow = 8;
|
|
92
|
+
YGDisplay display = 9;
|
|
93
|
+
YGDirection direction = 10;
|
|
94
|
+
|
|
95
|
+
float flex = 11;
|
|
96
|
+
|
|
97
|
+
YGUnit flex_basis_unit = 13;
|
|
98
|
+
float flex_basis = 14;
|
|
99
|
+
|
|
100
|
+
float flex_grow = 15;
|
|
101
|
+
float flex_shrink = 16;
|
|
102
|
+
|
|
103
|
+
YGUnit width_unit = 17;
|
|
104
|
+
float width = 18;
|
|
105
|
+
YGUnit height_unit = 19;
|
|
106
|
+
float height = 20;
|
|
107
|
+
|
|
108
|
+
YGUnit min_width_unit = 21;
|
|
109
|
+
float min_width = 22;
|
|
110
|
+
YGUnit min_height_unit = 23;
|
|
111
|
+
float min_height = 24;
|
|
112
|
+
|
|
113
|
+
YGUnit max_width_unit = 31;
|
|
114
|
+
float max_width = 32;
|
|
115
|
+
YGUnit max_height_unit = 33;
|
|
116
|
+
float max_height = 34;
|
|
117
|
+
|
|
118
|
+
// non-standard
|
|
119
|
+
reserved 40; // float aspect_ratio = 40;
|
|
120
|
+
|
|
121
|
+
YGUnit position_left_unit = 41;
|
|
122
|
+
float position_left = 42;
|
|
123
|
+
YGUnit position_top_unit = 43;
|
|
124
|
+
float position_top = 44;
|
|
125
|
+
YGUnit position_right_unit = 45;
|
|
126
|
+
float position_right = 46;
|
|
127
|
+
YGUnit position_bottom_unit = 47;
|
|
128
|
+
float position_bottom = 48;
|
|
129
|
+
|
|
130
|
+
// margin
|
|
131
|
+
YGUnit margin_left_unit = 51;
|
|
132
|
+
float margin_left = 52;
|
|
133
|
+
YGUnit margin_top_unit = 53;
|
|
134
|
+
float margin_top = 54;
|
|
135
|
+
YGUnit margin_right_unit = 55;
|
|
136
|
+
float margin_right = 56;
|
|
137
|
+
YGUnit margin_bottom_unit = 57;
|
|
138
|
+
float margin_bottom = 58;
|
|
139
|
+
|
|
140
|
+
YGUnit padding_left_unit = 61;
|
|
141
|
+
float padding_left = 62;
|
|
142
|
+
YGUnit padding_top_unit = 63;
|
|
143
|
+
float padding_top = 64;
|
|
144
|
+
YGUnit padding_right_unit = 65;
|
|
145
|
+
float padding_right = 66;
|
|
146
|
+
YGUnit padding_bottom_unit = 67;
|
|
147
|
+
float padding_bottom = 68;
|
|
148
|
+
|
|
149
|
+
reserved 71; // YGUnit border_left_unit = 71;
|
|
150
|
+
float border_left = 72;
|
|
151
|
+
reserved 73; // YGUnit border_top_unit = 73;
|
|
152
|
+
float border_top = 74;
|
|
153
|
+
reserved 75; // YGUnit border_right_unit = 75;
|
|
154
|
+
float border_right = 76;
|
|
155
|
+
reserved 77; // YGUnit border_bottom_unit = 77;
|
|
156
|
+
float border_bottom = 78;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/protocol",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-2611857113.commit-45ed75b",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"renderer-protocol",
|
|
18
18
|
"ecs"
|
|
19
19
|
],
|
|
20
|
-
"commit": "
|
|
20
|
+
"commit": "45ed75bc6ba08b2f7ce1e441daeef46f692302d3"
|
|
21
21
|
}
|