@dcl/sdk 7.0.0-3244103998.commit-74d3f83 → 7.0.0-3250968661.commit-2850bf7
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/dist/ecs7/index.d.ts +44 -62
- package/dist/ecs7/index.js +55 -97
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/dist/ecs7/proto-definitions/billboard.proto +10 -4
- package/dist/ecs7/proto-definitions/common/texts.proto +9 -3
- package/dist/ecs7/proto-definitions/text_shape.proto +21 -24
- package/dist/playground/snippets/billboard.ts +87 -0
- package/dist/playground/snippets/info.json +1 -1
- package/package.json +4 -4
- package/types/ecs7/index.d.ts +44 -62
@@ -1,11 +1,17 @@
|
|
1
1
|
syntax = "proto3";
|
2
|
+
|
2
3
|
package decentraland.sdk.components;
|
3
4
|
|
4
5
|
import "decentraland/sdk/components/common/id.proto";
|
6
|
+
|
5
7
|
option (common.ecs_component_id) = 1090;
|
6
8
|
|
9
|
+
enum BillboardMode {
|
10
|
+
BM_ALL_AXES = 0;
|
11
|
+
BM_Y_AXE = 1;
|
12
|
+
}
|
13
|
+
|
7
14
|
message PBBillboard {
|
8
|
-
optional
|
9
|
-
optional bool
|
10
|
-
|
11
|
-
}
|
15
|
+
optional BillboardMode billboard_mode = 1; // default=BM_ALL_AXES
|
16
|
+
optional bool opposite_direction = 2; // default=false
|
17
|
+
}
|
@@ -3,9 +3,15 @@ syntax = "proto3";
|
|
3
3
|
package decentraland.sdk.components.common;
|
4
4
|
|
5
5
|
enum TextAlignMode {
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
TAM_TOP_LEFT = 0;
|
7
|
+
TAM_TOP_CENTER = 1;
|
8
|
+
TAM_TOP_RIGHT = 2;
|
9
|
+
TAM_MIDDLE_LEFT = 3;
|
10
|
+
TAM_MIDDLE_CENTER = 4;
|
11
|
+
TAM_MIDDLE_RIGHT = 5;
|
12
|
+
TAM_BOTTOM_LEFT = 6;
|
13
|
+
TAM_BOTTOM_CENTER = 7;
|
14
|
+
TAM_BOTTOM_RIGHT = 8;
|
9
15
|
}
|
10
16
|
|
11
17
|
enum Font {
|
@@ -4,33 +4,30 @@ package decentraland.sdk.components;
|
|
4
4
|
|
5
5
|
import "decentraland/common/colors.proto";
|
6
6
|
import "decentraland/sdk/components/common/id.proto";
|
7
|
+
import "decentraland/sdk/components/common/texts.proto";
|
7
8
|
|
8
9
|
option (common.ecs_component_id) = 1030;
|
9
10
|
|
10
11
|
message PBTextShape {
|
11
12
|
string text = 1;
|
12
|
-
|
13
|
-
optional
|
14
|
-
optional
|
15
|
-
optional
|
16
|
-
optional float
|
17
|
-
optional
|
18
|
-
optional
|
19
|
-
optional
|
20
|
-
optional float
|
21
|
-
optional float
|
22
|
-
optional float
|
23
|
-
optional
|
24
|
-
optional
|
25
|
-
optional float
|
26
|
-
optional float
|
27
|
-
optional
|
28
|
-
optional
|
29
|
-
optional
|
30
|
-
optional
|
31
|
-
optional
|
32
|
-
optional float outline_width = 21;
|
33
|
-
optional decentraland.common.Color3 shadow_color = 22; // default=(1.0,1.0,1.0)
|
34
|
-
optional decentraland.common.Color3 outline_color = 23; // default=(1.0,1.0,1.0)
|
35
|
-
optional decentraland.common.Color3 text_color = 24; // default=(1.0,1.0,1.0)
|
13
|
+
optional common.Font font = 2; // default=F_SANS_SERIF
|
14
|
+
optional float font_size = 3; // default=10
|
15
|
+
optional bool font_auto_size = 4;
|
16
|
+
optional common.TextAlignMode text_align = 5; // default=TAM_CENTER_CENTER
|
17
|
+
optional float width = 6; // default=1
|
18
|
+
optional float height = 7; // default=1
|
19
|
+
optional float padding_top = 8;
|
20
|
+
optional float padding_right = 9;
|
21
|
+
optional float padding_bottom = 10;
|
22
|
+
optional float padding_left = 11;
|
23
|
+
optional float line_spacing = 12;
|
24
|
+
optional int32 line_count = 13;
|
25
|
+
optional bool text_wrapping = 14;
|
26
|
+
optional float shadow_blur = 15;
|
27
|
+
optional float shadow_offset_x = 16;
|
28
|
+
optional float shadow_offset_y = 17;
|
29
|
+
optional float outline_width = 18;
|
30
|
+
optional decentraland.common.Color3 shadow_color = 19; // default=(1.0,1.0,1.0)
|
31
|
+
optional decentraland.common.Color3 outline_color = 20; // default=(1.0,1.0,1.0)
|
32
|
+
optional decentraland.common.Color4 text_color = 21; // default=(1.0,1.0,1.0)
|
36
33
|
}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
function createPlaneTexture(x: number, y: number, z: number): Entity {
|
2
|
+
const meshEntity = engine.addEntity()
|
3
|
+
|
4
|
+
Material.create(meshEntity, {
|
5
|
+
texture: { src: 'models/polaroid2.png' }
|
6
|
+
})
|
7
|
+
Transform.create(meshEntity, {
|
8
|
+
position: { x, y, z },
|
9
|
+
scale: Vector3.create(2, 2, 2)
|
10
|
+
})
|
11
|
+
MeshRenderer.create(meshEntity, {
|
12
|
+
plane: {
|
13
|
+
uvs: [...Array.from({ length: 40 }, () => 0), 0, 1, 1, 1, 1, 0, 0, 0]
|
14
|
+
}
|
15
|
+
})
|
16
|
+
return meshEntity
|
17
|
+
}
|
18
|
+
|
19
|
+
function createBillboards() {
|
20
|
+
Billboard.create(createPlaneTexture(8, 3, 1), {
|
21
|
+
billboardMode: BillboardMode.BM_Y_AXE
|
22
|
+
})
|
23
|
+
Billboard.create(createPlaneTexture(12, 3, 1))
|
24
|
+
createPlaneTexture(4, 3, 1)
|
25
|
+
|
26
|
+
Billboard.create(createPlaneTexture(8, 3, 8), {
|
27
|
+
oppositeDirection: true,
|
28
|
+
billboardMode: BillboardMode.BM_Y_AXE
|
29
|
+
})
|
30
|
+
Billboard.create(createPlaneTexture(12, 3, 8), {
|
31
|
+
oppositeDirection: true,
|
32
|
+
billboardMode: BillboardMode.BM_ALL_AXES
|
33
|
+
})
|
34
|
+
createPlaneTexture(4, 3, 8)
|
35
|
+
}
|
36
|
+
|
37
|
+
function createTextShape(text: string, position: Vector3.ReadonlyVector3) {
|
38
|
+
const entity = engine.addEntity()
|
39
|
+
Transform.create(entity, { position })
|
40
|
+
return TextShape.create(entity, { text })
|
41
|
+
}
|
42
|
+
|
43
|
+
function createTextShapes() {
|
44
|
+
const text1 = createTextShape(
|
45
|
+
'Regular, only Y-rotation',
|
46
|
+
Vector3.create(8, 1, 1)
|
47
|
+
)
|
48
|
+
text1.fontSize = 3
|
49
|
+
text1.textColor = { r: 1, g: 0.2, b: 0.8, a: 0.8 }
|
50
|
+
text1.outlineColor = { r: 0, g: 0, b: 0 }
|
51
|
+
text1.outlineWidth = 0.1
|
52
|
+
|
53
|
+
const text2 = createTextShape('Regular', Vector3.create(12, 1, 1))
|
54
|
+
text2.fontSize = 3
|
55
|
+
text2.textColor = { r: 1, g: 0.2, b: 0.8, a: 0.8 }
|
56
|
+
text2.outlineColor = { r: 0, g: 0, b: 0 }
|
57
|
+
text2.outlineWidth = 0.1
|
58
|
+
|
59
|
+
const text3 = createTextShape('Without billboard', Vector3.create(4, 1, 1))
|
60
|
+
text3.fontSize = 3
|
61
|
+
text3.textColor = { r: 1, g: 0.2, b: 0.8, a: 0.8 }
|
62
|
+
text3.outlineColor = { r: 0, g: 0, b: 0 }
|
63
|
+
text3.outlineWidth = 0.1
|
64
|
+
|
65
|
+
const text4 = createTextShape('Opposite, only Y', Vector3.create(8, 1, 8))
|
66
|
+
text4.fontSize = 3
|
67
|
+
text4.textColor = { r: 0.8, g: 0.2, b: 1.0, a: 0.8 }
|
68
|
+
text4.outlineColor = { r: 0, g: 0, b: 0 }
|
69
|
+
text4.outlineWidth = 0.1
|
70
|
+
|
71
|
+
const text5 = createTextShape('Opposite', Vector3.create(12, 1, 8))
|
72
|
+
text5.fontSize = 3
|
73
|
+
text5.textColor = { r: 0.8, g: 0.2, b: 1.0, a: 0.8 }
|
74
|
+
text5.outlineColor = { r: 0, g: 0, b: 0 }
|
75
|
+
text5.outlineWidth = 0.1
|
76
|
+
|
77
|
+
const text6 = createTextShape('Without billboard', Vector3.create(4, 1, 8))
|
78
|
+
text6.fontSize = 3
|
79
|
+
text6.textColor = { r: 0.8, g: 0.2, b: 1.0, a: 0.8 }
|
80
|
+
text6.outlineColor = { r: 0, g: 0, b: 0 }
|
81
|
+
text6.outlineWidth = 0.1
|
82
|
+
}
|
83
|
+
|
84
|
+
createBillboards()
|
85
|
+
createTextShapes()
|
86
|
+
|
87
|
+
|
@@ -1 +1 @@
|
|
1
|
-
[{"name":"Cube Spawner","category":"sample","path":"cube-spawner.ts"},{"name":"Material","category":"component","path":"material.ts"},{"name":"Mesh","category":"component","path":"mesh.ts"},{"name":"Pointer Events","category":"sample","path":"pointer-events.ts"},{"name":"Raycast Hit","category":"component","path":"raycast-hit.ts"},{"name":"Raycast Hit many","category":"sample","path":"raycast-hit-many.ts"},{"name":"Raycast Hit Oscilator","category":"sample","path":"raycast-hit-oscilator.ts"},{"name":"Container","category":"ui","path":"ui.tsx"}]
|
1
|
+
[{"name":"Billboard","category":"sample","path":"billboard.ts"},{"name":"Cube Spawner","category":"sample","path":"cube-spawner.ts"},{"name":"Material","category":"component","path":"material.ts"},{"name":"Mesh","category":"component","path":"mesh.ts"},{"name":"Pointer Events","category":"sample","path":"pointer-events.ts"},{"name":"Raycast Hit","category":"component","path":"raycast-hit.ts"},{"name":"Raycast Hit many","category":"sample","path":"raycast-hit-many.ts"},{"name":"Raycast Hit Oscilator","category":"sample","path":"raycast-hit-oscilator.ts"},{"name":"Container","category":"ui","path":"ui.tsx"}]
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk",
|
3
|
-
"version": "7.0.0-
|
3
|
+
"version": "7.0.0-3250968661.commit-2850bf7",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/src/index.js",
|
6
6
|
"typings": "dist/index.d.ts",
|
@@ -27,8 +27,8 @@
|
|
27
27
|
"src/cli/**/*.js"
|
28
28
|
],
|
29
29
|
"dependencies": {
|
30
|
-
"@dcl/amd": "6.11.9-
|
31
|
-
"@dcl/build-ecs": "6.11.9-
|
30
|
+
"@dcl/amd": "6.11.9-3250968661.commit-2850bf7",
|
31
|
+
"@dcl/build-ecs": "6.11.9-3250968661.commit-2850bf7",
|
32
32
|
"@dcl/kernel": "1.0.0-2994874542.commit-c3ae489",
|
33
33
|
"@dcl/posix": "^1.0.4",
|
34
34
|
"@dcl/schemas": "4.8.0",
|
@@ -38,5 +38,5 @@
|
|
38
38
|
"ignore": "^5.1.8"
|
39
39
|
},
|
40
40
|
"minCliVersion": "3.10.2",
|
41
|
-
"commit": "
|
41
|
+
"commit": "2850bf7d7147d59f352d33bf6617aa3ec14baef1"
|
42
42
|
}
|
package/types/ecs7/index.d.ts
CHANGED
@@ -10,8 +10,7 @@ declare const enum AvatarAnchorPointType {
|
|
10
10
|
AAPT_POSITION = 0,
|
11
11
|
AAPT_NAME_TAG = 1,
|
12
12
|
AAPT_LEFT_HAND = 2,
|
13
|
-
AAPT_RIGHT_HAND = 3
|
14
|
-
UNRECOGNIZED = -1
|
13
|
+
AAPT_RIGHT_HAND = 3
|
15
14
|
}
|
16
15
|
|
17
16
|
/** @public */
|
@@ -22,8 +21,7 @@ declare const AvatarModifierArea: ComponentDefinition<ISchema<PBAvatarModifierAr
|
|
22
21
|
|
23
22
|
declare const enum AvatarModifierType {
|
24
23
|
AMT_HIDE_AVATARS = 0,
|
25
|
-
AMT_DISABLE_PASSPORTS = 1
|
26
|
-
UNRECOGNIZED = -1
|
24
|
+
AMT_DISABLE_PASSPORTS = 1
|
27
25
|
}
|
28
26
|
|
29
27
|
/** @public */
|
@@ -32,6 +30,11 @@ declare const AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>, PBAvatarS
|
|
32
30
|
/** @public */
|
33
31
|
declare const Billboard: ComponentDefinition<ISchema<PBBillboard>, PBBillboard>;
|
34
32
|
|
33
|
+
declare const enum BillboardMode {
|
34
|
+
BM_ALL_AXES = 0,
|
35
|
+
BM_Y_AXE = 1
|
36
|
+
}
|
37
|
+
|
35
38
|
/**
|
36
39
|
* @public
|
37
40
|
*/
|
@@ -45,15 +48,13 @@ declare const CameraModeArea: ComponentDefinition<ISchema<PBCameraModeArea>, PBC
|
|
45
48
|
|
46
49
|
declare const enum CameraType {
|
47
50
|
CT_FIRST_PERSON = 0,
|
48
|
-
CT_THIRD_PERSON = 1
|
49
|
-
UNRECOGNIZED = -1
|
51
|
+
CT_THIRD_PERSON = 1
|
50
52
|
}
|
51
53
|
|
52
54
|
declare const enum ColliderLayer {
|
53
55
|
CL_NONE = 0,
|
54
56
|
CL_POINTER = 1,
|
55
|
-
CL_PHYSICS = 2
|
56
|
-
UNRECOGNIZED = -1
|
57
|
+
CL_PHYSICS = 2
|
57
58
|
}
|
58
59
|
|
59
60
|
declare interface Color3 {
|
@@ -502,8 +503,7 @@ declare type FloatArray = number[];
|
|
502
503
|
|
503
504
|
declare const enum Font {
|
504
505
|
F_LIBERATION_SANS = 0,
|
505
|
-
F_SANS_SERIF = 1
|
506
|
-
UNRECOGNIZED = -1
|
506
|
+
F_SANS_SERIF = 1
|
507
507
|
}
|
508
508
|
|
509
509
|
/** @public */
|
@@ -663,8 +663,7 @@ declare const enum InputAction {
|
|
663
663
|
IA_ACTION_3 = 10,
|
664
664
|
IA_ACTION_4 = 11,
|
665
665
|
IA_ACTION_5 = 12,
|
666
|
-
IA_ACTION_6 = 13
|
667
|
-
UNRECOGNIZED = -1
|
666
|
+
IA_ACTION_6 = 13
|
668
667
|
}
|
669
668
|
|
670
669
|
/**
|
@@ -721,8 +720,7 @@ declare const enum MaterialTransparencyMode {
|
|
721
720
|
MTM_ALPHA_TEST = 1,
|
722
721
|
MTM_ALPHA_BLEND = 2,
|
723
722
|
MTM_ALPHA_TEST_AND_ALPHA_BLEND = 3,
|
724
|
-
MTM_AUTO = 4
|
725
|
-
UNRECOGNIZED = -1
|
723
|
+
MTM_AUTO = 4
|
726
724
|
}
|
727
725
|
|
728
726
|
/**
|
@@ -1499,8 +1497,7 @@ declare const enum NftFrameType {
|
|
1499
1497
|
NFT_WOOD_WIDE = 19,
|
1500
1498
|
NFT_WOOD_TWIGS = 20,
|
1501
1499
|
NFT_CANVAS = 21,
|
1502
|
-
NFT_NONE = 22
|
1503
|
-
UNRECOGNIZED = -1
|
1500
|
+
NFT_NONE = 22
|
1504
1501
|
}
|
1505
1502
|
|
1506
1503
|
/** @public */
|
@@ -1883,12 +1880,10 @@ declare interface PBAvatarShape {
|
|
1883
1880
|
}
|
1884
1881
|
|
1885
1882
|
declare interface PBBillboard {
|
1886
|
-
/** default=
|
1887
|
-
|
1888
|
-
/** default=
|
1889
|
-
|
1890
|
-
/** default=true */
|
1891
|
-
z?: boolean | undefined;
|
1883
|
+
/** default=BM_ALL_AXES */
|
1884
|
+
billboardMode?: BillboardMode | undefined;
|
1885
|
+
/** default=false */
|
1886
|
+
oppositeDirection?: boolean | undefined;
|
1892
1887
|
}
|
1893
1888
|
|
1894
1889
|
declare interface PBCameraMode {
|
@@ -2065,18 +2060,13 @@ declare interface PBRaycastResult {
|
|
2065
2060
|
|
2066
2061
|
declare interface PBTextShape {
|
2067
2062
|
text: string;
|
2068
|
-
/**
|
2069
|
-
|
2070
|
-
font?: string | undefined;
|
2071
|
-
/** default=1.0f */
|
2072
|
-
opacity?: number | undefined;
|
2063
|
+
/** default=F_SANS_SERIF */
|
2064
|
+
font?: Font | undefined;
|
2073
2065
|
/** default=10 */
|
2074
2066
|
fontSize?: number | undefined;
|
2075
2067
|
fontAutoSize?: boolean | undefined;
|
2076
|
-
/** default=
|
2077
|
-
|
2078
|
-
/** default='center' */
|
2079
|
-
vTextAlign?: string | undefined;
|
2068
|
+
/** default=TAM_CENTER_CENTER */
|
2069
|
+
textAlign?: TextAlignMode | undefined;
|
2080
2070
|
/** default=1 */
|
2081
2071
|
width?: number | undefined;
|
2082
2072
|
/** default=1 */
|
@@ -2097,7 +2087,7 @@ declare interface PBTextShape {
|
|
2097
2087
|
/** default=(1.0,1.0,1.0) */
|
2098
2088
|
outlineColor?: Color3 | undefined;
|
2099
2089
|
/** default=(1.0,1.0,1.0) */
|
2100
|
-
textColor?:
|
2090
|
+
textColor?: Color4 | undefined;
|
2101
2091
|
}
|
2102
2092
|
|
2103
2093
|
declare interface PBUiBackground {
|
@@ -2311,8 +2301,7 @@ declare const enum PointerEventType {
|
|
2311
2301
|
PET_UP = 0,
|
2312
2302
|
PET_DOWN = 1,
|
2313
2303
|
PET_HOVER_ENTER = 2,
|
2314
|
-
PET_HOVER_LEAVE = 3
|
2315
|
-
UNRECOGNIZED = -1
|
2304
|
+
PET_HOVER_LEAVE = 3
|
2316
2305
|
}
|
2317
2306
|
|
2318
2307
|
/** @public */
|
@@ -2550,8 +2539,7 @@ declare interface RaycastHit {
|
|
2550
2539
|
|
2551
2540
|
declare const enum RaycastQueryType {
|
2552
2541
|
RQT_HIT_FIRST = 0,
|
2553
|
-
RQT_QUERY_ALL = 1
|
2554
|
-
UNRECOGNIZED = -1
|
2542
|
+
RQT_QUERY_ALL = 1
|
2555
2543
|
}
|
2556
2544
|
|
2557
2545
|
/** @public */
|
@@ -2624,10 +2612,15 @@ declare interface Spec {
|
|
2624
2612
|
declare type SystemFn = (dt: number) => void;
|
2625
2613
|
|
2626
2614
|
declare const enum TextAlignMode {
|
2627
|
-
|
2628
|
-
|
2629
|
-
|
2630
|
-
|
2615
|
+
TAM_TOP_LEFT = 0,
|
2616
|
+
TAM_TOP_CENTER = 1,
|
2617
|
+
TAM_TOP_RIGHT = 2,
|
2618
|
+
TAM_MIDDLE_LEFT = 3,
|
2619
|
+
TAM_MIDDLE_CENTER = 4,
|
2620
|
+
TAM_MIDDLE_RIGHT = 5,
|
2621
|
+
TAM_BOTTOM_LEFT = 6,
|
2622
|
+
TAM_BOTTOM_CENTER = 7,
|
2623
|
+
TAM_BOTTOM_RIGHT = 8
|
2631
2624
|
}
|
2632
2625
|
|
2633
2626
|
/** @public */
|
@@ -2636,16 +2629,14 @@ declare const TextShape: ComponentDefinition<ISchema<PBTextShape>, PBTextShape>;
|
|
2636
2629
|
declare const enum TextureFilterMode {
|
2637
2630
|
TFM_POINT = 0,
|
2638
2631
|
TFM_BILINEAR = 1,
|
2639
|
-
TFM_TRILINEAR = 2
|
2640
|
-
UNRECOGNIZED = -1
|
2632
|
+
TFM_TRILINEAR = 2
|
2641
2633
|
}
|
2642
2634
|
|
2643
2635
|
declare const enum TextureWrapMode {
|
2644
2636
|
TWM_REPEAT = 0,
|
2645
2637
|
TWM_CLAMP = 1,
|
2646
2638
|
TWM_MIRROR = 2,
|
2647
|
-
TWM_MIRROR_ONCE = 3
|
2648
|
-
UNRECOGNIZED = -1
|
2639
|
+
TWM_MIRROR_ONCE = 3
|
2649
2640
|
}
|
2650
2641
|
|
2651
2642
|
declare type ToOptional<T> = OnlyOptionalUndefinedTypes<T> & OnlyNonUndefinedTypes<T>;
|
@@ -3303,29 +3294,25 @@ declare const enum YGAlign {
|
|
3303
3294
|
YGA_STRETCH = 4,
|
3304
3295
|
YGA_BASELINE = 5,
|
3305
3296
|
YGA_SPACE_BETWEEN = 6,
|
3306
|
-
YGA_SPACE_AROUND = 7
|
3307
|
-
UNRECOGNIZED = -1
|
3297
|
+
YGA_SPACE_AROUND = 7
|
3308
3298
|
}
|
3309
3299
|
|
3310
3300
|
declare const enum YGDirection {
|
3311
3301
|
YGD_INHERIT = 0,
|
3312
3302
|
YGD_LTR = 1,
|
3313
|
-
YGD_RTL = 2
|
3314
|
-
UNRECOGNIZED = -1
|
3303
|
+
YGD_RTL = 2
|
3315
3304
|
}
|
3316
3305
|
|
3317
3306
|
declare const enum YGDisplay {
|
3318
3307
|
YGD_FLEX = 0,
|
3319
|
-
YGD_NONE = 1
|
3320
|
-
UNRECOGNIZED = -1
|
3308
|
+
YGD_NONE = 1
|
3321
3309
|
}
|
3322
3310
|
|
3323
3311
|
declare const enum YGFlexDirection {
|
3324
3312
|
YGFD_COLUMN = 0,
|
3325
3313
|
YGFD_COLUMN_REVERSE = 1,
|
3326
3314
|
YGFD_ROW = 2,
|
3327
|
-
YGFD_ROW_REVERSE = 3
|
3328
|
-
UNRECOGNIZED = -1
|
3315
|
+
YGFD_ROW_REVERSE = 3
|
3329
3316
|
}
|
3330
3317
|
|
3331
3318
|
declare const enum YGJustify {
|
@@ -3334,37 +3321,32 @@ declare const enum YGJustify {
|
|
3334
3321
|
YGJ_FLEX_END = 2,
|
3335
3322
|
YGJ_SPACE_BETWEEN = 3,
|
3336
3323
|
YGJ_SPACE_AROUND = 4,
|
3337
|
-
YGJ_SPACE_EVENLY = 5
|
3338
|
-
UNRECOGNIZED = -1
|
3324
|
+
YGJ_SPACE_EVENLY = 5
|
3339
3325
|
}
|
3340
3326
|
|
3341
3327
|
declare const enum YGOverflow {
|
3342
3328
|
YGO_VISIBLE = 0,
|
3343
3329
|
YGO_HIDDEN = 1,
|
3344
|
-
YGO_SCROLL = 2
|
3345
|
-
UNRECOGNIZED = -1
|
3330
|
+
YGO_SCROLL = 2
|
3346
3331
|
}
|
3347
3332
|
|
3348
3333
|
declare const enum YGPositionType {
|
3349
3334
|
YGPT_STATIC = 0,
|
3350
3335
|
YGPT_RELATIVE = 1,
|
3351
|
-
YGPT_ABSOLUTE = 2
|
3352
|
-
UNRECOGNIZED = -1
|
3336
|
+
YGPT_ABSOLUTE = 2
|
3353
3337
|
}
|
3354
3338
|
|
3355
3339
|
declare const enum YGUnit {
|
3356
3340
|
YGU_UNDEFINED = 0,
|
3357
3341
|
YGU_POINT = 1,
|
3358
3342
|
YGU_PERCENT = 2,
|
3359
|
-
YGU_AUTO = 3
|
3360
|
-
UNRECOGNIZED = -1
|
3343
|
+
YGU_AUTO = 3
|
3361
3344
|
}
|
3362
3345
|
|
3363
3346
|
declare const enum YGWrap {
|
3364
3347
|
YGW_NO_WRAP = 0,
|
3365
3348
|
YGW_WRAP = 1,
|
3366
|
-
YGW_WRAP_REVERSE = 2
|
3367
|
-
UNRECOGNIZED = -1
|
3349
|
+
YGW_WRAP_REVERSE = 2
|
3368
3350
|
}
|
3369
3351
|
|
3370
3352
|
|