@dcl/sdk 7.0.0-3472029894.commit-ae9be34 → 7.0.0-3491045797.commit-404a2a7

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.
@@ -10,7 +10,7 @@ option (common.ecs_component_id) = 1052;
10
10
 
11
11
  message PBUiText {
12
12
  string value = 1;
13
- optional decentraland.common.Color3 color = 2; // default=(1.0,1.0,1.0)
13
+ optional decentraland.common.Color4 color = 2; // default=(1.0,1.0,1.0,1.0)
14
14
  optional common.TextAlignMode text_align = 3; // default='center'
15
15
  optional common.Font font = 4; // default=0
16
16
  optional int32 font_size = 5; // default=10
@@ -7,9 +7,8 @@ import "decentraland/sdk/components/common/id.proto";
7
7
  option (common.ecs_component_id) = 1050;
8
8
 
9
9
  enum YGPositionType {
10
- YGPT_STATIC = 0;
11
- YGPT_RELATIVE = 1;
12
- YGPT_ABSOLUTE = 2;
10
+ YGPT_RELATIVE = 0;
11
+ YGPT_ABSOLUTE = 1;
13
12
  }
14
13
 
15
14
  enum YGAlign {
@@ -30,16 +29,10 @@ enum YGUnit {
30
29
  YGU_AUTO = 3;
31
30
  }
32
31
 
33
- enum YGDirection {
34
- YGD_INHERIT = 0;
35
- YGD_LTR = 1;
36
- YGD_RTL = 2;
37
- }
38
-
39
32
  enum YGFlexDirection {
40
- YGFD_COLUMN = 0;
41
- YGFD_COLUMN_REVERSE = 1;
42
- YGFD_ROW = 2;
33
+ YGFD_ROW = 0;
34
+ YGFD_COLUMN = 1;
35
+ YGFD_COLUMN_REVERSE = 2;
43
36
  YGFD_ROW_REVERSE = 3;
44
37
  }
45
38
 
@@ -82,82 +75,67 @@ enum YGEdge {
82
75
  }
83
76
 
84
77
  message PBUiTransform {
85
- int32 parent = 79;
86
- int32 right_of = 80;
78
+ int32 parent = 1;
79
+ int32 right_of = 2;
87
80
 
88
- YGPositionType position_type = 1;
81
+ optional YGAlign align_content = 3; // default: YGAlign.YGA_FLEX_START
82
+ optional YGAlign align_items = 4; // default: YGAlign.YGA_STRETCH
83
+ optional YGWrap flex_wrap = 5; // default: YGWrap.YGW_WRAP
84
+ optional float flex_shrink = 6; // default: 1
89
85
 
90
- YGAlign align_content = 2;
91
- YGAlign align_items = 3;
92
- YGAlign align_self = 4;
93
- YGFlexDirection flex_direction = 5;
94
- YGWrap flex_wrap = 6;
95
- YGJustify justify_content = 7;
86
+ YGPositionType position_type = 7; // YGPositionType.YGPT_RELATIVE
96
87
 
97
- YGOverflow overflow = 8;
98
- YGDisplay display = 9;
99
- YGDirection direction = 10;
88
+ YGAlign align_self = 8; // YGAlign.YGA_AUTO
89
+ YGFlexDirection flex_direction = 9; // YGFlexDirection.YGFD_ROW
90
+ YGJustify justify_content = 10; // YGJustify.YGJ_FLEX_START
100
91
 
101
- float flex = 11;
92
+ YGOverflow overflow = 11; // YGOverflow.YGO_VISIBLE
93
+ YGDisplay display = 12; // YGDisplay.YGD_FLEX
102
94
 
103
- YGUnit flex_basis_unit = 13;
95
+ YGUnit flex_basis_unit = 13; // YGUnit.YGU_UNDEFINED
104
96
  float flex_basis = 14;
105
97
 
106
98
  float flex_grow = 15;
107
- float flex_shrink = 16;
108
-
109
- YGUnit width_unit = 17;
110
- float width = 18;
111
- YGUnit height_unit = 19;
112
- float height = 20;
113
-
114
- YGUnit min_width_unit = 21;
115
- float min_width = 22;
116
- YGUnit min_height_unit = 23;
117
- float min_height = 24;
118
-
119
- YGUnit max_width_unit = 31;
120
- float max_width = 32;
121
- YGUnit max_height_unit = 33;
122
- float max_height = 34;
123
-
124
- // non-standard
125
- reserved 40; // float aspect_ratio = 40;
126
-
127
- YGUnit position_left_unit = 41;
128
- float position_left = 42;
129
- YGUnit position_top_unit = 43;
130
- float position_top = 44;
131
- YGUnit position_right_unit = 45;
132
- float position_right = 46;
133
- YGUnit position_bottom_unit = 47;
134
- float position_bottom = 48;
135
-
136
- // margin
137
- YGUnit margin_left_unit = 51;
138
- float margin_left = 52;
139
- YGUnit margin_top_unit = 53;
140
- float margin_top = 54;
141
- YGUnit margin_right_unit = 55;
142
- float margin_right = 56;
143
- YGUnit margin_bottom_unit = 57;
144
- float margin_bottom = 58;
145
-
146
- YGUnit padding_left_unit = 61;
147
- float padding_left = 62;
148
- YGUnit padding_top_unit = 63;
149
- float padding_top = 64;
150
- YGUnit padding_right_unit = 65;
151
- float padding_right = 66;
152
- YGUnit padding_bottom_unit = 67;
153
- float padding_bottom = 68;
154
-
155
- reserved 71; // YGUnit border_left_unit = 71;
156
- float border_left = 72;
157
- reserved 73; // YGUnit border_top_unit = 73;
158
- float border_top = 74;
159
- reserved 75; // YGUnit border_right_unit = 75;
160
- float border_right = 76;
161
- reserved 77; // YGUnit border_bottom_unit = 77;
162
- float border_bottom = 78;
99
+
100
+ YGUnit width_unit = 16; // YGUnit.YGU_UNDEFINED
101
+ float width = 17;
102
+ YGUnit height_unit = 18; // YGUnit.YGU_UNDEFINED
103
+ float height = 19;
104
+
105
+ YGUnit min_width_unit = 20; // YGUnit.YGU_UNDEFINED
106
+ float min_width = 21;
107
+ YGUnit min_height_unit = 22; // YGUnit.YGU_UNDEFINED
108
+ float min_height = 23;
109
+
110
+ YGUnit max_width_unit = 24; // YGUnit.YGU_UNDEFINED
111
+ float max_width = 25;
112
+ YGUnit max_height_unit = 26; // YGUnit.YGU_UNDEFINED
113
+ float max_height = 27;
114
+
115
+ YGUnit position_left_unit = 28; // YGUnit.YGU_UNDEFINED
116
+ float position_left = 29;
117
+ YGUnit position_top_unit = 30; // YGUnit.YGU_UNDEFINED
118
+ float position_top = 31;
119
+ YGUnit position_right_unit = 32; // YGUnit.YGU_UNDEFINED
120
+ float position_right = 33;
121
+ YGUnit position_bottom_unit = 34; // YGUnit.YGU_UNDEFINED
122
+ float position_bottom = 35;
123
+
124
+ YGUnit margin_left_unit = 36; // YGUnit.YGU_UNDEFINED
125
+ float margin_left = 37;
126
+ YGUnit margin_top_unit = 38; // YGUnit.YGU_UNDEFINED
127
+ float margin_top = 39;
128
+ YGUnit margin_right_unit = 40; // YGUnit.YGU_UNDEFINED
129
+ float margin_right = 41;
130
+ YGUnit margin_bottom_unit = 42; // YGUnit.YGU_UNDEFINED
131
+ float margin_bottom = 43;
132
+
133
+ YGUnit padding_left_unit = 44; // YGUnit.YGU_UNDEFINED
134
+ float padding_left = 45;
135
+ YGUnit padding_top_unit = 46; // YGUnit.YGU_UNDEFINED
136
+ float padding_top = 47;
137
+ YGUnit padding_right_unit = 48; // YGUnit.YGU_UNDEFINED
138
+ float padding_right = 49;
139
+ YGUnit padding_bottom_unit = 50; // YGUnit.YGU_UNDEFINED
140
+ float padding_bottom = 51;
163
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
- "version": "7.0.0-3472029894.commit-ae9be34",
3
+ "version": "7.0.0-3491045797.commit-404a2a7",
4
4
  "description": "",
5
5
  "main": "dist/src/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -23,13 +23,13 @@
23
23
  "artifacts"
24
24
  ],
25
25
  "dependencies": {
26
- "@dcl/amd": "7.0.0-3472029894.commit-ae9be34",
27
- "@dcl/build-ecs": "7.0.0-3472029894.commit-ae9be34",
28
- "@dcl/js-runtime": "7.0.0-3472029894.commit-ae9be34",
26
+ "@dcl/amd": "7.0.0-3491045797.commit-404a2a7",
27
+ "@dcl/build-ecs": "7.0.0-3491045797.commit-404a2a7",
28
+ "@dcl/js-runtime": "7.0.0-3491045797.commit-404a2a7",
29
29
  "@dcl/kernel": "^1.0.0-3339209749.commit-fa9e5d7",
30
30
  "@dcl/posix": "^1.0.4",
31
31
  "@dcl/unity-renderer": "^1.0.59980-20221027151836.commit-cc26142"
32
32
  },
33
33
  "minCliVersion": "3.12.3",
34
- "commit": "ae9be34125f89c6a434dc8e6d9f4e4b50ae84baa"
34
+ "commit": "404a2a743dab91d4ffe0de5cb9d32f4272ae86f8"
35
35
  }
@@ -2967,8 +2967,8 @@ declare interface PBUiBackground {
2967
2967
 
2968
2968
  declare interface PBUiText {
2969
2969
  value: string;
2970
- /** default=(1.0,1.0,1.0) */
2971
- color?: PBColor3 | undefined;
2970
+ /** default=(1.0,1.0,1.0,1.0) */
2971
+ color?: PBColor4 | undefined;
2972
2972
  /** default='center' */
2973
2973
  textAlign?: TextAlignMode | undefined;
2974
2974
  /** default=0 */
@@ -2980,62 +2980,84 @@ declare interface PBUiText {
2980
2980
  declare interface PBUiTransform {
2981
2981
  parent: number;
2982
2982
  rightOf: number;
2983
+ /** default: YGAlign.YGA_FLEX_START */
2984
+ alignContent?: YGAlign | undefined;
2985
+ /** default: YGAlign.YGA_STRETCH */
2986
+ alignItems?: YGAlign | undefined;
2987
+ /** default: YGWrap.YGW_WRAP */
2988
+ flexWrap?: YGWrap | undefined;
2989
+ /** default: 1 */
2990
+ flexShrink?: number | undefined;
2991
+ /** YGPositionType.YGPT_RELATIVE */
2983
2992
  positionType: YGPositionType;
2984
- alignContent: YGAlign;
2985
- alignItems: YGAlign;
2993
+ /** YGAlign.YGA_AUTO */
2986
2994
  alignSelf: YGAlign;
2995
+ /** YGFlexDirection.YGFD_ROW */
2987
2996
  flexDirection: YGFlexDirection;
2988
- flexWrap: YGWrap;
2997
+ /** YGJustify.YGJ_FLEX_START */
2989
2998
  justifyContent: YGJustify;
2999
+ /** YGOverflow.YGO_VISIBLE */
2990
3000
  overflow: YGOverflow;
3001
+ /** YGDisplay.YGD_FLEX */
2991
3002
  display: YGDisplay;
2992
- direction: YGDirection;
2993
- flex: number;
3003
+ /** YGUnit.YGU_UNDEFINED */
2994
3004
  flexBasisUnit: YGUnit;
2995
3005
  flexBasis: number;
2996
3006
  flexGrow: number;
2997
- flexShrink: number;
3007
+ /** YGUnit.YGU_UNDEFINED */
2998
3008
  widthUnit: YGUnit;
2999
3009
  width: number;
3010
+ /** YGUnit.YGU_UNDEFINED */
3000
3011
  heightUnit: YGUnit;
3001
3012
  height: number;
3013
+ /** YGUnit.YGU_UNDEFINED */
3002
3014
  minWidthUnit: YGUnit;
3003
3015
  minWidth: number;
3016
+ /** YGUnit.YGU_UNDEFINED */
3004
3017
  minHeightUnit: YGUnit;
3005
3018
  minHeight: number;
3019
+ /** YGUnit.YGU_UNDEFINED */
3006
3020
  maxWidthUnit: YGUnit;
3007
3021
  maxWidth: number;
3022
+ /** YGUnit.YGU_UNDEFINED */
3008
3023
  maxHeightUnit: YGUnit;
3009
3024
  maxHeight: number;
3025
+ /** YGUnit.YGU_UNDEFINED */
3010
3026
  positionLeftUnit: YGUnit;
3011
3027
  positionLeft: number;
3028
+ /** YGUnit.YGU_UNDEFINED */
3012
3029
  positionTopUnit: YGUnit;
3013
3030
  positionTop: number;
3031
+ /** YGUnit.YGU_UNDEFINED */
3014
3032
  positionRightUnit: YGUnit;
3015
3033
  positionRight: number;
3034
+ /** YGUnit.YGU_UNDEFINED */
3016
3035
  positionBottomUnit: YGUnit;
3017
3036
  positionBottom: number;
3018
- /** margin */
3037
+ /** YGUnit.YGU_UNDEFINED */
3019
3038
  marginLeftUnit: YGUnit;
3020
3039
  marginLeft: number;
3040
+ /** YGUnit.YGU_UNDEFINED */
3021
3041
  marginTopUnit: YGUnit;
3022
3042
  marginTop: number;
3043
+ /** YGUnit.YGU_UNDEFINED */
3023
3044
  marginRightUnit: YGUnit;
3024
3045
  marginRight: number;
3046
+ /** YGUnit.YGU_UNDEFINED */
3025
3047
  marginBottomUnit: YGUnit;
3026
3048
  marginBottom: number;
3049
+ /** YGUnit.YGU_UNDEFINED */
3027
3050
  paddingLeftUnit: YGUnit;
3028
3051
  paddingLeft: number;
3052
+ /** YGUnit.YGU_UNDEFINED */
3029
3053
  paddingTopUnit: YGUnit;
3030
3054
  paddingTop: number;
3055
+ /** YGUnit.YGU_UNDEFINED */
3031
3056
  paddingRightUnit: YGUnit;
3032
3057
  paddingRight: number;
3058
+ /** YGUnit.YGU_UNDEFINED */
3033
3059
  paddingBottomUnit: YGUnit;
3034
3060
  paddingBottom: number;
3035
- borderLeft: number;
3036
- borderTop: number;
3037
- borderRight: number;
3038
- borderBottom: number;
3039
3061
  }
3040
3062
 
3041
3063
  declare interface PBVector2 {
@@ -4472,12 +4494,6 @@ declare const enum YGAlign {
4472
4494
  YGA_SPACE_AROUND = 7
4473
4495
  }
4474
4496
 
4475
- declare const enum YGDirection {
4476
- YGD_INHERIT = 0,
4477
- YGD_LTR = 1,
4478
- YGD_RTL = 2
4479
- }
4480
-
4481
4497
  declare const enum YGDisplay {
4482
4498
  YGD_FLEX = 0,
4483
4499
  YGD_NONE = 1
@@ -4496,9 +4512,9 @@ declare const enum YGEdge {
4496
4512
  }
4497
4513
 
4498
4514
  declare const enum YGFlexDirection {
4499
- YGFD_COLUMN = 0,
4500
- YGFD_COLUMN_REVERSE = 1,
4501
- YGFD_ROW = 2,
4515
+ YGFD_ROW = 0,
4516
+ YGFD_COLUMN = 1,
4517
+ YGFD_COLUMN_REVERSE = 2,
4502
4518
  YGFD_ROW_REVERSE = 3
4503
4519
  }
4504
4520
 
@@ -4518,9 +4534,8 @@ declare const enum YGOverflow {
4518
4534
  }
4519
4535
 
4520
4536
  declare const enum YGPositionType {
4521
- YGPT_STATIC = 0,
4522
- YGPT_RELATIVE = 1,
4523
- YGPT_ABSOLUTE = 2
4537
+ YGPT_RELATIVE = 0,
4538
+ YGPT_ABSOLUTE = 1
4524
4539
  }
4525
4540
 
4526
4541
  declare const enum YGUnit {