@dcl/protocol 1.0.0-4419899496.commit-11d63ec → 1.0.0-4440731539.commit-a2174f5
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/out-js/decentraland/common/border_rect.gen.d.ts +54 -0
- package/out-js/decentraland/common/border_rect.gen.js +87 -0
- package/out-js/decentraland/common/border_rect.gen.js.map +1 -0
- package/out-js/decentraland/common/colors.gen.d.ts +82 -0
- package/out-js/decentraland/common/colors.gen.js +152 -0
- package/out-js/decentraland/common/colors.gen.js.map +1 -0
- package/out-js/decentraland/common/texture.gen.d.ts +319 -0
- package/out-js/decentraland/common/texture.gen.js +384 -0
- package/out-js/decentraland/common/texture.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/animator.gen.d.ts +184 -0
- package/out-js/decentraland/sdk/components/animator.gen.js +172 -0
- package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +74 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.js +96 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +56 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.js +78 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +65 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js +115 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +100 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +137 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +192 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +210 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/billboard.gen.d.ts +59 -0
- package/out-js/decentraland/sdk/components/billboard.gen.js +114 -0
- package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +44 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.js +59 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +84 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +71 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.d.ts +8 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js +39 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/id.gen.d.ts +1 -0
- package/out-js/decentraland/sdk/components/common/id.gen.js +6 -0
- package/out-js/decentraland/sdk/components/common/id.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +20 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +111 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.d.ts +23 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.js +120 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +45 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.js +58 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/material.gen.d.ts +3452 -0
- package/out-js/decentraland/sdk/components/material.gen.js +437 -0
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +250 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +324 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +284 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +320 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +114 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.js +242 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +249 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +248 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +241 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +99 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +43 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js +58 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +118 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js +127 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +536 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.js +243 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +247 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.js +274 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +369 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.js +175 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +115 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +152 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +38 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +58 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +140 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js +140 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +38 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js +58 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +95 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js +101 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +403 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +1000 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/video_player.gen.d.ts +69 -0
- package/out-js/decentraland/sdk/components/video_player.gen.js +112 -0
- package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +39 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.js +58 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -0
- package/out-js/google/protobuf/descriptor.gen.d.ts +87384 -0
- package/out-js/google/protobuf/descriptor.gen.js +2645 -0
- package/out-js/google/protobuf/descriptor.gen.js.map +1 -0
- package/out-js/sdk-components.gen.d.ts +1 -0
- package/out-js/sdk-components.gen.js +6 -0
- package/out-js/sdk-components.gen.js.map +1 -0
- package/out-ts/decentraland/common/border_rect.gen.ts +108 -0
- package/out-ts/decentraland/common/colors.gen.ts +184 -0
- package/out-ts/decentraland/common/texture.gen.ts +454 -0
- package/out-ts/decentraland/sdk/components/animator.gen.ts +229 -0
- package/out-ts/decentraland/sdk/components/audio_source.gen.ts +141 -0
- package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +109 -0
- package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +147 -0
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +172 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +288 -0
- package/out-ts/decentraland/sdk/components/billboard.gen.ts +140 -0
- package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +81 -0
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +106 -0
- package/out-ts/decentraland/sdk/components/common/camera_type.gen.ts +36 -0
- package/out-ts/decentraland/sdk/components/common/id.gen.ts +3 -0
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +108 -0
- package/out-ts/decentraland/sdk/components/common/texts.gen.ts +117 -0
- package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +82 -0
- package/out-ts/decentraland/sdk/components/material.gen.ts +546 -0
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +403 -0
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +395 -0
- package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +275 -0
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +316 -0
- package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +124 -0
- package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +80 -0
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +159 -0
- package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +315 -0
- package/out-ts/decentraland/sdk/components/text_shape.gen.ts +385 -0
- package/out-ts/decentraland/sdk/components/ui_background.gen.ts +199 -0
- package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +194 -0
- package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +75 -0
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +182 -0
- package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +75 -0
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +140 -0
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +1104 -0
- package/out-ts/decentraland/sdk/components/video_player.gen.ts +148 -0
- package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +76 -0
- package/out-ts/google/protobuf/descriptor.gen.ts +2961 -0
- package/out-ts/sdk-components.gen.ts +3 -0
- package/package.json +2 -2
- package/proto/decentraland/sdk/components/animator.proto +15 -8
- package/proto/decentraland/sdk/components/audio_source.proto +16 -6
- package/proto/decentraland/sdk/components/audio_stream.proto +6 -3
- package/proto/decentraland/sdk/components/avatar_attach.proto +14 -6
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +20 -7
- package/proto/decentraland/sdk/components/avatar_shape.proto +34 -24
- package/proto/decentraland/sdk/components/billboard.proto +12 -5
- package/proto/decentraland/sdk/components/camera_mode.proto +3 -1
- package/proto/decentraland/sdk/components/camera_mode_area.proto +13 -2
- package/proto/decentraland/sdk/components/gltf_container.proto +5 -5
- package/proto/decentraland/sdk/components/mesh_collider.proto +22 -9
- package/proto/decentraland/sdk/components/mesh_renderer.proto +17 -4
- package/proto/decentraland/sdk/components/nft_shape.proto +15 -7
- package/proto/decentraland/sdk/components/pointer_events.proto +28 -14
- package/proto/decentraland/sdk/components/pointer_lock.proto +3 -1
- package/proto/decentraland/sdk/components/raycast.proto +10 -7
- package/proto/decentraland/sdk/components/raycast_result.proto +17 -12
- package/proto/decentraland/sdk/components/text_shape.proto +33 -24
- package/proto/decentraland/sdk/components/ui_text.proto +8 -5
- package/public/sdk-components.proto +33 -0
|
@@ -0,0 +1,1000 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PBUiTransform = exports.yGEdgeToJSON = exports.yGEdgeFromJSON = exports.YGEdge = exports.yGDisplayToJSON = exports.yGDisplayFromJSON = exports.YGDisplay = exports.yGOverflowToJSON = exports.yGOverflowFromJSON = exports.YGOverflow = exports.yGJustifyToJSON = exports.yGJustifyFromJSON = exports.YGJustify = exports.yGWrapToJSON = exports.yGWrapFromJSON = exports.YGWrap = exports.yGFlexDirectionToJSON = exports.yGFlexDirectionFromJSON = exports.YGFlexDirection = exports.yGUnitToJSON = exports.yGUnitFromJSON = exports.YGUnit = exports.yGAlignToJSON = exports.yGAlignFromJSON = exports.YGAlign = exports.yGPositionTypeToJSON = exports.yGPositionTypeFromJSON = exports.YGPositionType = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
exports.protobufPackage = "decentraland.sdk.components";
|
|
10
|
+
var YGPositionType;
|
|
11
|
+
(function (YGPositionType) {
|
|
12
|
+
YGPositionType[YGPositionType["YGPT_RELATIVE"] = 0] = "YGPT_RELATIVE";
|
|
13
|
+
YGPositionType[YGPositionType["YGPT_ABSOLUTE"] = 1] = "YGPT_ABSOLUTE";
|
|
14
|
+
YGPositionType[YGPositionType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
15
|
+
})(YGPositionType = exports.YGPositionType || (exports.YGPositionType = {}));
|
|
16
|
+
function yGPositionTypeFromJSON(object) {
|
|
17
|
+
switch (object) {
|
|
18
|
+
case 0:
|
|
19
|
+
case "YGPT_RELATIVE":
|
|
20
|
+
return YGPositionType.YGPT_RELATIVE;
|
|
21
|
+
case 1:
|
|
22
|
+
case "YGPT_ABSOLUTE":
|
|
23
|
+
return YGPositionType.YGPT_ABSOLUTE;
|
|
24
|
+
case -1:
|
|
25
|
+
case "UNRECOGNIZED":
|
|
26
|
+
default:
|
|
27
|
+
return YGPositionType.UNRECOGNIZED;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.yGPositionTypeFromJSON = yGPositionTypeFromJSON;
|
|
31
|
+
function yGPositionTypeToJSON(object) {
|
|
32
|
+
switch (object) {
|
|
33
|
+
case YGPositionType.YGPT_RELATIVE:
|
|
34
|
+
return "YGPT_RELATIVE";
|
|
35
|
+
case YGPositionType.YGPT_ABSOLUTE:
|
|
36
|
+
return "YGPT_ABSOLUTE";
|
|
37
|
+
case YGPositionType.UNRECOGNIZED:
|
|
38
|
+
default:
|
|
39
|
+
return "UNRECOGNIZED";
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.yGPositionTypeToJSON = yGPositionTypeToJSON;
|
|
43
|
+
var YGAlign;
|
|
44
|
+
(function (YGAlign) {
|
|
45
|
+
YGAlign[YGAlign["YGA_AUTO"] = 0] = "YGA_AUTO";
|
|
46
|
+
YGAlign[YGAlign["YGA_FLEX_START"] = 1] = "YGA_FLEX_START";
|
|
47
|
+
YGAlign[YGAlign["YGA_CENTER"] = 2] = "YGA_CENTER";
|
|
48
|
+
YGAlign[YGAlign["YGA_FLEX_END"] = 3] = "YGA_FLEX_END";
|
|
49
|
+
YGAlign[YGAlign["YGA_STRETCH"] = 4] = "YGA_STRETCH";
|
|
50
|
+
YGAlign[YGAlign["YGA_BASELINE"] = 5] = "YGA_BASELINE";
|
|
51
|
+
YGAlign[YGAlign["YGA_SPACE_BETWEEN"] = 6] = "YGA_SPACE_BETWEEN";
|
|
52
|
+
YGAlign[YGAlign["YGA_SPACE_AROUND"] = 7] = "YGA_SPACE_AROUND";
|
|
53
|
+
YGAlign[YGAlign["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
54
|
+
})(YGAlign = exports.YGAlign || (exports.YGAlign = {}));
|
|
55
|
+
function yGAlignFromJSON(object) {
|
|
56
|
+
switch (object) {
|
|
57
|
+
case 0:
|
|
58
|
+
case "YGA_AUTO":
|
|
59
|
+
return YGAlign.YGA_AUTO;
|
|
60
|
+
case 1:
|
|
61
|
+
case "YGA_FLEX_START":
|
|
62
|
+
return YGAlign.YGA_FLEX_START;
|
|
63
|
+
case 2:
|
|
64
|
+
case "YGA_CENTER":
|
|
65
|
+
return YGAlign.YGA_CENTER;
|
|
66
|
+
case 3:
|
|
67
|
+
case "YGA_FLEX_END":
|
|
68
|
+
return YGAlign.YGA_FLEX_END;
|
|
69
|
+
case 4:
|
|
70
|
+
case "YGA_STRETCH":
|
|
71
|
+
return YGAlign.YGA_STRETCH;
|
|
72
|
+
case 5:
|
|
73
|
+
case "YGA_BASELINE":
|
|
74
|
+
return YGAlign.YGA_BASELINE;
|
|
75
|
+
case 6:
|
|
76
|
+
case "YGA_SPACE_BETWEEN":
|
|
77
|
+
return YGAlign.YGA_SPACE_BETWEEN;
|
|
78
|
+
case 7:
|
|
79
|
+
case "YGA_SPACE_AROUND":
|
|
80
|
+
return YGAlign.YGA_SPACE_AROUND;
|
|
81
|
+
case -1:
|
|
82
|
+
case "UNRECOGNIZED":
|
|
83
|
+
default:
|
|
84
|
+
return YGAlign.UNRECOGNIZED;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.yGAlignFromJSON = yGAlignFromJSON;
|
|
88
|
+
function yGAlignToJSON(object) {
|
|
89
|
+
switch (object) {
|
|
90
|
+
case YGAlign.YGA_AUTO:
|
|
91
|
+
return "YGA_AUTO";
|
|
92
|
+
case YGAlign.YGA_FLEX_START:
|
|
93
|
+
return "YGA_FLEX_START";
|
|
94
|
+
case YGAlign.YGA_CENTER:
|
|
95
|
+
return "YGA_CENTER";
|
|
96
|
+
case YGAlign.YGA_FLEX_END:
|
|
97
|
+
return "YGA_FLEX_END";
|
|
98
|
+
case YGAlign.YGA_STRETCH:
|
|
99
|
+
return "YGA_STRETCH";
|
|
100
|
+
case YGAlign.YGA_BASELINE:
|
|
101
|
+
return "YGA_BASELINE";
|
|
102
|
+
case YGAlign.YGA_SPACE_BETWEEN:
|
|
103
|
+
return "YGA_SPACE_BETWEEN";
|
|
104
|
+
case YGAlign.YGA_SPACE_AROUND:
|
|
105
|
+
return "YGA_SPACE_AROUND";
|
|
106
|
+
case YGAlign.UNRECOGNIZED:
|
|
107
|
+
default:
|
|
108
|
+
return "UNRECOGNIZED";
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
exports.yGAlignToJSON = yGAlignToJSON;
|
|
112
|
+
var YGUnit;
|
|
113
|
+
(function (YGUnit) {
|
|
114
|
+
YGUnit[YGUnit["YGU_UNDEFINED"] = 0] = "YGU_UNDEFINED";
|
|
115
|
+
YGUnit[YGUnit["YGU_POINT"] = 1] = "YGU_POINT";
|
|
116
|
+
YGUnit[YGUnit["YGU_PERCENT"] = 2] = "YGU_PERCENT";
|
|
117
|
+
YGUnit[YGUnit["YGU_AUTO"] = 3] = "YGU_AUTO";
|
|
118
|
+
YGUnit[YGUnit["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
119
|
+
})(YGUnit = exports.YGUnit || (exports.YGUnit = {}));
|
|
120
|
+
function yGUnitFromJSON(object) {
|
|
121
|
+
switch (object) {
|
|
122
|
+
case 0:
|
|
123
|
+
case "YGU_UNDEFINED":
|
|
124
|
+
return YGUnit.YGU_UNDEFINED;
|
|
125
|
+
case 1:
|
|
126
|
+
case "YGU_POINT":
|
|
127
|
+
return YGUnit.YGU_POINT;
|
|
128
|
+
case 2:
|
|
129
|
+
case "YGU_PERCENT":
|
|
130
|
+
return YGUnit.YGU_PERCENT;
|
|
131
|
+
case 3:
|
|
132
|
+
case "YGU_AUTO":
|
|
133
|
+
return YGUnit.YGU_AUTO;
|
|
134
|
+
case -1:
|
|
135
|
+
case "UNRECOGNIZED":
|
|
136
|
+
default:
|
|
137
|
+
return YGUnit.UNRECOGNIZED;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
exports.yGUnitFromJSON = yGUnitFromJSON;
|
|
141
|
+
function yGUnitToJSON(object) {
|
|
142
|
+
switch (object) {
|
|
143
|
+
case YGUnit.YGU_UNDEFINED:
|
|
144
|
+
return "YGU_UNDEFINED";
|
|
145
|
+
case YGUnit.YGU_POINT:
|
|
146
|
+
return "YGU_POINT";
|
|
147
|
+
case YGUnit.YGU_PERCENT:
|
|
148
|
+
return "YGU_PERCENT";
|
|
149
|
+
case YGUnit.YGU_AUTO:
|
|
150
|
+
return "YGU_AUTO";
|
|
151
|
+
case YGUnit.UNRECOGNIZED:
|
|
152
|
+
default:
|
|
153
|
+
return "UNRECOGNIZED";
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
exports.yGUnitToJSON = yGUnitToJSON;
|
|
157
|
+
var YGFlexDirection;
|
|
158
|
+
(function (YGFlexDirection) {
|
|
159
|
+
YGFlexDirection[YGFlexDirection["YGFD_ROW"] = 0] = "YGFD_ROW";
|
|
160
|
+
YGFlexDirection[YGFlexDirection["YGFD_COLUMN"] = 1] = "YGFD_COLUMN";
|
|
161
|
+
YGFlexDirection[YGFlexDirection["YGFD_COLUMN_REVERSE"] = 2] = "YGFD_COLUMN_REVERSE";
|
|
162
|
+
YGFlexDirection[YGFlexDirection["YGFD_ROW_REVERSE"] = 3] = "YGFD_ROW_REVERSE";
|
|
163
|
+
YGFlexDirection[YGFlexDirection["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
164
|
+
})(YGFlexDirection = exports.YGFlexDirection || (exports.YGFlexDirection = {}));
|
|
165
|
+
function yGFlexDirectionFromJSON(object) {
|
|
166
|
+
switch (object) {
|
|
167
|
+
case 0:
|
|
168
|
+
case "YGFD_ROW":
|
|
169
|
+
return YGFlexDirection.YGFD_ROW;
|
|
170
|
+
case 1:
|
|
171
|
+
case "YGFD_COLUMN":
|
|
172
|
+
return YGFlexDirection.YGFD_COLUMN;
|
|
173
|
+
case 2:
|
|
174
|
+
case "YGFD_COLUMN_REVERSE":
|
|
175
|
+
return YGFlexDirection.YGFD_COLUMN_REVERSE;
|
|
176
|
+
case 3:
|
|
177
|
+
case "YGFD_ROW_REVERSE":
|
|
178
|
+
return YGFlexDirection.YGFD_ROW_REVERSE;
|
|
179
|
+
case -1:
|
|
180
|
+
case "UNRECOGNIZED":
|
|
181
|
+
default:
|
|
182
|
+
return YGFlexDirection.UNRECOGNIZED;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
exports.yGFlexDirectionFromJSON = yGFlexDirectionFromJSON;
|
|
186
|
+
function yGFlexDirectionToJSON(object) {
|
|
187
|
+
switch (object) {
|
|
188
|
+
case YGFlexDirection.YGFD_ROW:
|
|
189
|
+
return "YGFD_ROW";
|
|
190
|
+
case YGFlexDirection.YGFD_COLUMN:
|
|
191
|
+
return "YGFD_COLUMN";
|
|
192
|
+
case YGFlexDirection.YGFD_COLUMN_REVERSE:
|
|
193
|
+
return "YGFD_COLUMN_REVERSE";
|
|
194
|
+
case YGFlexDirection.YGFD_ROW_REVERSE:
|
|
195
|
+
return "YGFD_ROW_REVERSE";
|
|
196
|
+
case YGFlexDirection.UNRECOGNIZED:
|
|
197
|
+
default:
|
|
198
|
+
return "UNRECOGNIZED";
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
exports.yGFlexDirectionToJSON = yGFlexDirectionToJSON;
|
|
202
|
+
var YGWrap;
|
|
203
|
+
(function (YGWrap) {
|
|
204
|
+
YGWrap[YGWrap["YGW_NO_WRAP"] = 0] = "YGW_NO_WRAP";
|
|
205
|
+
YGWrap[YGWrap["YGW_WRAP"] = 1] = "YGW_WRAP";
|
|
206
|
+
YGWrap[YGWrap["YGW_WRAP_REVERSE"] = 2] = "YGW_WRAP_REVERSE";
|
|
207
|
+
YGWrap[YGWrap["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
208
|
+
})(YGWrap = exports.YGWrap || (exports.YGWrap = {}));
|
|
209
|
+
function yGWrapFromJSON(object) {
|
|
210
|
+
switch (object) {
|
|
211
|
+
case 0:
|
|
212
|
+
case "YGW_NO_WRAP":
|
|
213
|
+
return YGWrap.YGW_NO_WRAP;
|
|
214
|
+
case 1:
|
|
215
|
+
case "YGW_WRAP":
|
|
216
|
+
return YGWrap.YGW_WRAP;
|
|
217
|
+
case 2:
|
|
218
|
+
case "YGW_WRAP_REVERSE":
|
|
219
|
+
return YGWrap.YGW_WRAP_REVERSE;
|
|
220
|
+
case -1:
|
|
221
|
+
case "UNRECOGNIZED":
|
|
222
|
+
default:
|
|
223
|
+
return YGWrap.UNRECOGNIZED;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
exports.yGWrapFromJSON = yGWrapFromJSON;
|
|
227
|
+
function yGWrapToJSON(object) {
|
|
228
|
+
switch (object) {
|
|
229
|
+
case YGWrap.YGW_NO_WRAP:
|
|
230
|
+
return "YGW_NO_WRAP";
|
|
231
|
+
case YGWrap.YGW_WRAP:
|
|
232
|
+
return "YGW_WRAP";
|
|
233
|
+
case YGWrap.YGW_WRAP_REVERSE:
|
|
234
|
+
return "YGW_WRAP_REVERSE";
|
|
235
|
+
case YGWrap.UNRECOGNIZED:
|
|
236
|
+
default:
|
|
237
|
+
return "UNRECOGNIZED";
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
exports.yGWrapToJSON = yGWrapToJSON;
|
|
241
|
+
var YGJustify;
|
|
242
|
+
(function (YGJustify) {
|
|
243
|
+
YGJustify[YGJustify["YGJ_FLEX_START"] = 0] = "YGJ_FLEX_START";
|
|
244
|
+
YGJustify[YGJustify["YGJ_CENTER"] = 1] = "YGJ_CENTER";
|
|
245
|
+
YGJustify[YGJustify["YGJ_FLEX_END"] = 2] = "YGJ_FLEX_END";
|
|
246
|
+
YGJustify[YGJustify["YGJ_SPACE_BETWEEN"] = 3] = "YGJ_SPACE_BETWEEN";
|
|
247
|
+
YGJustify[YGJustify["YGJ_SPACE_AROUND"] = 4] = "YGJ_SPACE_AROUND";
|
|
248
|
+
YGJustify[YGJustify["YGJ_SPACE_EVENLY"] = 5] = "YGJ_SPACE_EVENLY";
|
|
249
|
+
YGJustify[YGJustify["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
250
|
+
})(YGJustify = exports.YGJustify || (exports.YGJustify = {}));
|
|
251
|
+
function yGJustifyFromJSON(object) {
|
|
252
|
+
switch (object) {
|
|
253
|
+
case 0:
|
|
254
|
+
case "YGJ_FLEX_START":
|
|
255
|
+
return YGJustify.YGJ_FLEX_START;
|
|
256
|
+
case 1:
|
|
257
|
+
case "YGJ_CENTER":
|
|
258
|
+
return YGJustify.YGJ_CENTER;
|
|
259
|
+
case 2:
|
|
260
|
+
case "YGJ_FLEX_END":
|
|
261
|
+
return YGJustify.YGJ_FLEX_END;
|
|
262
|
+
case 3:
|
|
263
|
+
case "YGJ_SPACE_BETWEEN":
|
|
264
|
+
return YGJustify.YGJ_SPACE_BETWEEN;
|
|
265
|
+
case 4:
|
|
266
|
+
case "YGJ_SPACE_AROUND":
|
|
267
|
+
return YGJustify.YGJ_SPACE_AROUND;
|
|
268
|
+
case 5:
|
|
269
|
+
case "YGJ_SPACE_EVENLY":
|
|
270
|
+
return YGJustify.YGJ_SPACE_EVENLY;
|
|
271
|
+
case -1:
|
|
272
|
+
case "UNRECOGNIZED":
|
|
273
|
+
default:
|
|
274
|
+
return YGJustify.UNRECOGNIZED;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
exports.yGJustifyFromJSON = yGJustifyFromJSON;
|
|
278
|
+
function yGJustifyToJSON(object) {
|
|
279
|
+
switch (object) {
|
|
280
|
+
case YGJustify.YGJ_FLEX_START:
|
|
281
|
+
return "YGJ_FLEX_START";
|
|
282
|
+
case YGJustify.YGJ_CENTER:
|
|
283
|
+
return "YGJ_CENTER";
|
|
284
|
+
case YGJustify.YGJ_FLEX_END:
|
|
285
|
+
return "YGJ_FLEX_END";
|
|
286
|
+
case YGJustify.YGJ_SPACE_BETWEEN:
|
|
287
|
+
return "YGJ_SPACE_BETWEEN";
|
|
288
|
+
case YGJustify.YGJ_SPACE_AROUND:
|
|
289
|
+
return "YGJ_SPACE_AROUND";
|
|
290
|
+
case YGJustify.YGJ_SPACE_EVENLY:
|
|
291
|
+
return "YGJ_SPACE_EVENLY";
|
|
292
|
+
case YGJustify.UNRECOGNIZED:
|
|
293
|
+
default:
|
|
294
|
+
return "UNRECOGNIZED";
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
exports.yGJustifyToJSON = yGJustifyToJSON;
|
|
298
|
+
var YGOverflow;
|
|
299
|
+
(function (YGOverflow) {
|
|
300
|
+
YGOverflow[YGOverflow["YGO_VISIBLE"] = 0] = "YGO_VISIBLE";
|
|
301
|
+
YGOverflow[YGOverflow["YGO_HIDDEN"] = 1] = "YGO_HIDDEN";
|
|
302
|
+
YGOverflow[YGOverflow["YGO_SCROLL"] = 2] = "YGO_SCROLL";
|
|
303
|
+
YGOverflow[YGOverflow["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
304
|
+
})(YGOverflow = exports.YGOverflow || (exports.YGOverflow = {}));
|
|
305
|
+
function yGOverflowFromJSON(object) {
|
|
306
|
+
switch (object) {
|
|
307
|
+
case 0:
|
|
308
|
+
case "YGO_VISIBLE":
|
|
309
|
+
return YGOverflow.YGO_VISIBLE;
|
|
310
|
+
case 1:
|
|
311
|
+
case "YGO_HIDDEN":
|
|
312
|
+
return YGOverflow.YGO_HIDDEN;
|
|
313
|
+
case 2:
|
|
314
|
+
case "YGO_SCROLL":
|
|
315
|
+
return YGOverflow.YGO_SCROLL;
|
|
316
|
+
case -1:
|
|
317
|
+
case "UNRECOGNIZED":
|
|
318
|
+
default:
|
|
319
|
+
return YGOverflow.UNRECOGNIZED;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
exports.yGOverflowFromJSON = yGOverflowFromJSON;
|
|
323
|
+
function yGOverflowToJSON(object) {
|
|
324
|
+
switch (object) {
|
|
325
|
+
case YGOverflow.YGO_VISIBLE:
|
|
326
|
+
return "YGO_VISIBLE";
|
|
327
|
+
case YGOverflow.YGO_HIDDEN:
|
|
328
|
+
return "YGO_HIDDEN";
|
|
329
|
+
case YGOverflow.YGO_SCROLL:
|
|
330
|
+
return "YGO_SCROLL";
|
|
331
|
+
case YGOverflow.UNRECOGNIZED:
|
|
332
|
+
default:
|
|
333
|
+
return "UNRECOGNIZED";
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
exports.yGOverflowToJSON = yGOverflowToJSON;
|
|
337
|
+
var YGDisplay;
|
|
338
|
+
(function (YGDisplay) {
|
|
339
|
+
YGDisplay[YGDisplay["YGD_FLEX"] = 0] = "YGD_FLEX";
|
|
340
|
+
YGDisplay[YGDisplay["YGD_NONE"] = 1] = "YGD_NONE";
|
|
341
|
+
YGDisplay[YGDisplay["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
342
|
+
})(YGDisplay = exports.YGDisplay || (exports.YGDisplay = {}));
|
|
343
|
+
function yGDisplayFromJSON(object) {
|
|
344
|
+
switch (object) {
|
|
345
|
+
case 0:
|
|
346
|
+
case "YGD_FLEX":
|
|
347
|
+
return YGDisplay.YGD_FLEX;
|
|
348
|
+
case 1:
|
|
349
|
+
case "YGD_NONE":
|
|
350
|
+
return YGDisplay.YGD_NONE;
|
|
351
|
+
case -1:
|
|
352
|
+
case "UNRECOGNIZED":
|
|
353
|
+
default:
|
|
354
|
+
return YGDisplay.UNRECOGNIZED;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
exports.yGDisplayFromJSON = yGDisplayFromJSON;
|
|
358
|
+
function yGDisplayToJSON(object) {
|
|
359
|
+
switch (object) {
|
|
360
|
+
case YGDisplay.YGD_FLEX:
|
|
361
|
+
return "YGD_FLEX";
|
|
362
|
+
case YGDisplay.YGD_NONE:
|
|
363
|
+
return "YGD_NONE";
|
|
364
|
+
case YGDisplay.UNRECOGNIZED:
|
|
365
|
+
default:
|
|
366
|
+
return "UNRECOGNIZED";
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
exports.yGDisplayToJSON = yGDisplayToJSON;
|
|
370
|
+
var YGEdge;
|
|
371
|
+
(function (YGEdge) {
|
|
372
|
+
YGEdge[YGEdge["YGE_LEFT"] = 0] = "YGE_LEFT";
|
|
373
|
+
YGEdge[YGEdge["YGE_TOP"] = 1] = "YGE_TOP";
|
|
374
|
+
YGEdge[YGEdge["YGE_RIGHT"] = 2] = "YGE_RIGHT";
|
|
375
|
+
YGEdge[YGEdge["YGE_BOTTOM"] = 3] = "YGE_BOTTOM";
|
|
376
|
+
YGEdge[YGEdge["YGE_START"] = 4] = "YGE_START";
|
|
377
|
+
YGEdge[YGEdge["YGE_END"] = 5] = "YGE_END";
|
|
378
|
+
YGEdge[YGEdge["YGE_HORIZONTAL"] = 6] = "YGE_HORIZONTAL";
|
|
379
|
+
YGEdge[YGEdge["YGE_VERTICAL"] = 7] = "YGE_VERTICAL";
|
|
380
|
+
YGEdge[YGEdge["YGE_ALL"] = 8] = "YGE_ALL";
|
|
381
|
+
YGEdge[YGEdge["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
382
|
+
})(YGEdge = exports.YGEdge || (exports.YGEdge = {}));
|
|
383
|
+
function yGEdgeFromJSON(object) {
|
|
384
|
+
switch (object) {
|
|
385
|
+
case 0:
|
|
386
|
+
case "YGE_LEFT":
|
|
387
|
+
return YGEdge.YGE_LEFT;
|
|
388
|
+
case 1:
|
|
389
|
+
case "YGE_TOP":
|
|
390
|
+
return YGEdge.YGE_TOP;
|
|
391
|
+
case 2:
|
|
392
|
+
case "YGE_RIGHT":
|
|
393
|
+
return YGEdge.YGE_RIGHT;
|
|
394
|
+
case 3:
|
|
395
|
+
case "YGE_BOTTOM":
|
|
396
|
+
return YGEdge.YGE_BOTTOM;
|
|
397
|
+
case 4:
|
|
398
|
+
case "YGE_START":
|
|
399
|
+
return YGEdge.YGE_START;
|
|
400
|
+
case 5:
|
|
401
|
+
case "YGE_END":
|
|
402
|
+
return YGEdge.YGE_END;
|
|
403
|
+
case 6:
|
|
404
|
+
case "YGE_HORIZONTAL":
|
|
405
|
+
return YGEdge.YGE_HORIZONTAL;
|
|
406
|
+
case 7:
|
|
407
|
+
case "YGE_VERTICAL":
|
|
408
|
+
return YGEdge.YGE_VERTICAL;
|
|
409
|
+
case 8:
|
|
410
|
+
case "YGE_ALL":
|
|
411
|
+
return YGEdge.YGE_ALL;
|
|
412
|
+
case -1:
|
|
413
|
+
case "UNRECOGNIZED":
|
|
414
|
+
default:
|
|
415
|
+
return YGEdge.UNRECOGNIZED;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
exports.yGEdgeFromJSON = yGEdgeFromJSON;
|
|
419
|
+
function yGEdgeToJSON(object) {
|
|
420
|
+
switch (object) {
|
|
421
|
+
case YGEdge.YGE_LEFT:
|
|
422
|
+
return "YGE_LEFT";
|
|
423
|
+
case YGEdge.YGE_TOP:
|
|
424
|
+
return "YGE_TOP";
|
|
425
|
+
case YGEdge.YGE_RIGHT:
|
|
426
|
+
return "YGE_RIGHT";
|
|
427
|
+
case YGEdge.YGE_BOTTOM:
|
|
428
|
+
return "YGE_BOTTOM";
|
|
429
|
+
case YGEdge.YGE_START:
|
|
430
|
+
return "YGE_START";
|
|
431
|
+
case YGEdge.YGE_END:
|
|
432
|
+
return "YGE_END";
|
|
433
|
+
case YGEdge.YGE_HORIZONTAL:
|
|
434
|
+
return "YGE_HORIZONTAL";
|
|
435
|
+
case YGEdge.YGE_VERTICAL:
|
|
436
|
+
return "YGE_VERTICAL";
|
|
437
|
+
case YGEdge.YGE_ALL:
|
|
438
|
+
return "YGE_ALL";
|
|
439
|
+
case YGEdge.UNRECOGNIZED:
|
|
440
|
+
default:
|
|
441
|
+
return "UNRECOGNIZED";
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
exports.yGEdgeToJSON = yGEdgeToJSON;
|
|
445
|
+
function createBasePBUiTransform() {
|
|
446
|
+
return {
|
|
447
|
+
parent: 0,
|
|
448
|
+
rightOf: 0,
|
|
449
|
+
alignContent: undefined,
|
|
450
|
+
alignItems: undefined,
|
|
451
|
+
flexWrap: undefined,
|
|
452
|
+
flexShrink: undefined,
|
|
453
|
+
positionType: 0,
|
|
454
|
+
alignSelf: 0,
|
|
455
|
+
flexDirection: 0,
|
|
456
|
+
justifyContent: 0,
|
|
457
|
+
overflow: 0,
|
|
458
|
+
display: 0,
|
|
459
|
+
flexBasisUnit: 0,
|
|
460
|
+
flexBasis: 0,
|
|
461
|
+
flexGrow: 0,
|
|
462
|
+
widthUnit: 0,
|
|
463
|
+
width: 0,
|
|
464
|
+
heightUnit: 0,
|
|
465
|
+
height: 0,
|
|
466
|
+
minWidthUnit: 0,
|
|
467
|
+
minWidth: 0,
|
|
468
|
+
minHeightUnit: 0,
|
|
469
|
+
minHeight: 0,
|
|
470
|
+
maxWidthUnit: 0,
|
|
471
|
+
maxWidth: 0,
|
|
472
|
+
maxHeightUnit: 0,
|
|
473
|
+
maxHeight: 0,
|
|
474
|
+
positionLeftUnit: 0,
|
|
475
|
+
positionLeft: 0,
|
|
476
|
+
positionTopUnit: 0,
|
|
477
|
+
positionTop: 0,
|
|
478
|
+
positionRightUnit: 0,
|
|
479
|
+
positionRight: 0,
|
|
480
|
+
positionBottomUnit: 0,
|
|
481
|
+
positionBottom: 0,
|
|
482
|
+
marginLeftUnit: 0,
|
|
483
|
+
marginLeft: 0,
|
|
484
|
+
marginTopUnit: 0,
|
|
485
|
+
marginTop: 0,
|
|
486
|
+
marginRightUnit: 0,
|
|
487
|
+
marginRight: 0,
|
|
488
|
+
marginBottomUnit: 0,
|
|
489
|
+
marginBottom: 0,
|
|
490
|
+
paddingLeftUnit: 0,
|
|
491
|
+
paddingLeft: 0,
|
|
492
|
+
paddingTopUnit: 0,
|
|
493
|
+
paddingTop: 0,
|
|
494
|
+
paddingRightUnit: 0,
|
|
495
|
+
paddingRight: 0,
|
|
496
|
+
paddingBottomUnit: 0,
|
|
497
|
+
paddingBottom: 0,
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
exports.PBUiTransform = {
|
|
501
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
502
|
+
if (message.parent !== 0) {
|
|
503
|
+
writer.uint32(8).int32(message.parent);
|
|
504
|
+
}
|
|
505
|
+
if (message.rightOf !== 0) {
|
|
506
|
+
writer.uint32(16).int32(message.rightOf);
|
|
507
|
+
}
|
|
508
|
+
if (message.alignContent !== undefined) {
|
|
509
|
+
writer.uint32(24).int32(message.alignContent);
|
|
510
|
+
}
|
|
511
|
+
if (message.alignItems !== undefined) {
|
|
512
|
+
writer.uint32(32).int32(message.alignItems);
|
|
513
|
+
}
|
|
514
|
+
if (message.flexWrap !== undefined) {
|
|
515
|
+
writer.uint32(40).int32(message.flexWrap);
|
|
516
|
+
}
|
|
517
|
+
if (message.flexShrink !== undefined) {
|
|
518
|
+
writer.uint32(53).float(message.flexShrink);
|
|
519
|
+
}
|
|
520
|
+
if (message.positionType !== 0) {
|
|
521
|
+
writer.uint32(56).int32(message.positionType);
|
|
522
|
+
}
|
|
523
|
+
if (message.alignSelf !== 0) {
|
|
524
|
+
writer.uint32(64).int32(message.alignSelf);
|
|
525
|
+
}
|
|
526
|
+
if (message.flexDirection !== 0) {
|
|
527
|
+
writer.uint32(72).int32(message.flexDirection);
|
|
528
|
+
}
|
|
529
|
+
if (message.justifyContent !== 0) {
|
|
530
|
+
writer.uint32(80).int32(message.justifyContent);
|
|
531
|
+
}
|
|
532
|
+
if (message.overflow !== 0) {
|
|
533
|
+
writer.uint32(88).int32(message.overflow);
|
|
534
|
+
}
|
|
535
|
+
if (message.display !== 0) {
|
|
536
|
+
writer.uint32(96).int32(message.display);
|
|
537
|
+
}
|
|
538
|
+
if (message.flexBasisUnit !== 0) {
|
|
539
|
+
writer.uint32(104).int32(message.flexBasisUnit);
|
|
540
|
+
}
|
|
541
|
+
if (message.flexBasis !== 0) {
|
|
542
|
+
writer.uint32(117).float(message.flexBasis);
|
|
543
|
+
}
|
|
544
|
+
if (message.flexGrow !== 0) {
|
|
545
|
+
writer.uint32(125).float(message.flexGrow);
|
|
546
|
+
}
|
|
547
|
+
if (message.widthUnit !== 0) {
|
|
548
|
+
writer.uint32(128).int32(message.widthUnit);
|
|
549
|
+
}
|
|
550
|
+
if (message.width !== 0) {
|
|
551
|
+
writer.uint32(141).float(message.width);
|
|
552
|
+
}
|
|
553
|
+
if (message.heightUnit !== 0) {
|
|
554
|
+
writer.uint32(144).int32(message.heightUnit);
|
|
555
|
+
}
|
|
556
|
+
if (message.height !== 0) {
|
|
557
|
+
writer.uint32(157).float(message.height);
|
|
558
|
+
}
|
|
559
|
+
if (message.minWidthUnit !== 0) {
|
|
560
|
+
writer.uint32(160).int32(message.minWidthUnit);
|
|
561
|
+
}
|
|
562
|
+
if (message.minWidth !== 0) {
|
|
563
|
+
writer.uint32(173).float(message.minWidth);
|
|
564
|
+
}
|
|
565
|
+
if (message.minHeightUnit !== 0) {
|
|
566
|
+
writer.uint32(176).int32(message.minHeightUnit);
|
|
567
|
+
}
|
|
568
|
+
if (message.minHeight !== 0) {
|
|
569
|
+
writer.uint32(189).float(message.minHeight);
|
|
570
|
+
}
|
|
571
|
+
if (message.maxWidthUnit !== 0) {
|
|
572
|
+
writer.uint32(192).int32(message.maxWidthUnit);
|
|
573
|
+
}
|
|
574
|
+
if (message.maxWidth !== 0) {
|
|
575
|
+
writer.uint32(205).float(message.maxWidth);
|
|
576
|
+
}
|
|
577
|
+
if (message.maxHeightUnit !== 0) {
|
|
578
|
+
writer.uint32(208).int32(message.maxHeightUnit);
|
|
579
|
+
}
|
|
580
|
+
if (message.maxHeight !== 0) {
|
|
581
|
+
writer.uint32(221).float(message.maxHeight);
|
|
582
|
+
}
|
|
583
|
+
if (message.positionLeftUnit !== 0) {
|
|
584
|
+
writer.uint32(224).int32(message.positionLeftUnit);
|
|
585
|
+
}
|
|
586
|
+
if (message.positionLeft !== 0) {
|
|
587
|
+
writer.uint32(237).float(message.positionLeft);
|
|
588
|
+
}
|
|
589
|
+
if (message.positionTopUnit !== 0) {
|
|
590
|
+
writer.uint32(240).int32(message.positionTopUnit);
|
|
591
|
+
}
|
|
592
|
+
if (message.positionTop !== 0) {
|
|
593
|
+
writer.uint32(253).float(message.positionTop);
|
|
594
|
+
}
|
|
595
|
+
if (message.positionRightUnit !== 0) {
|
|
596
|
+
writer.uint32(256).int32(message.positionRightUnit);
|
|
597
|
+
}
|
|
598
|
+
if (message.positionRight !== 0) {
|
|
599
|
+
writer.uint32(269).float(message.positionRight);
|
|
600
|
+
}
|
|
601
|
+
if (message.positionBottomUnit !== 0) {
|
|
602
|
+
writer.uint32(272).int32(message.positionBottomUnit);
|
|
603
|
+
}
|
|
604
|
+
if (message.positionBottom !== 0) {
|
|
605
|
+
writer.uint32(285).float(message.positionBottom);
|
|
606
|
+
}
|
|
607
|
+
if (message.marginLeftUnit !== 0) {
|
|
608
|
+
writer.uint32(288).int32(message.marginLeftUnit);
|
|
609
|
+
}
|
|
610
|
+
if (message.marginLeft !== 0) {
|
|
611
|
+
writer.uint32(301).float(message.marginLeft);
|
|
612
|
+
}
|
|
613
|
+
if (message.marginTopUnit !== 0) {
|
|
614
|
+
writer.uint32(304).int32(message.marginTopUnit);
|
|
615
|
+
}
|
|
616
|
+
if (message.marginTop !== 0) {
|
|
617
|
+
writer.uint32(317).float(message.marginTop);
|
|
618
|
+
}
|
|
619
|
+
if (message.marginRightUnit !== 0) {
|
|
620
|
+
writer.uint32(320).int32(message.marginRightUnit);
|
|
621
|
+
}
|
|
622
|
+
if (message.marginRight !== 0) {
|
|
623
|
+
writer.uint32(333).float(message.marginRight);
|
|
624
|
+
}
|
|
625
|
+
if (message.marginBottomUnit !== 0) {
|
|
626
|
+
writer.uint32(336).int32(message.marginBottomUnit);
|
|
627
|
+
}
|
|
628
|
+
if (message.marginBottom !== 0) {
|
|
629
|
+
writer.uint32(349).float(message.marginBottom);
|
|
630
|
+
}
|
|
631
|
+
if (message.paddingLeftUnit !== 0) {
|
|
632
|
+
writer.uint32(352).int32(message.paddingLeftUnit);
|
|
633
|
+
}
|
|
634
|
+
if (message.paddingLeft !== 0) {
|
|
635
|
+
writer.uint32(365).float(message.paddingLeft);
|
|
636
|
+
}
|
|
637
|
+
if (message.paddingTopUnit !== 0) {
|
|
638
|
+
writer.uint32(368).int32(message.paddingTopUnit);
|
|
639
|
+
}
|
|
640
|
+
if (message.paddingTop !== 0) {
|
|
641
|
+
writer.uint32(381).float(message.paddingTop);
|
|
642
|
+
}
|
|
643
|
+
if (message.paddingRightUnit !== 0) {
|
|
644
|
+
writer.uint32(384).int32(message.paddingRightUnit);
|
|
645
|
+
}
|
|
646
|
+
if (message.paddingRight !== 0) {
|
|
647
|
+
writer.uint32(397).float(message.paddingRight);
|
|
648
|
+
}
|
|
649
|
+
if (message.paddingBottomUnit !== 0) {
|
|
650
|
+
writer.uint32(400).int32(message.paddingBottomUnit);
|
|
651
|
+
}
|
|
652
|
+
if (message.paddingBottom !== 0) {
|
|
653
|
+
writer.uint32(413).float(message.paddingBottom);
|
|
654
|
+
}
|
|
655
|
+
return writer;
|
|
656
|
+
},
|
|
657
|
+
decode(input, length) {
|
|
658
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
659
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
660
|
+
const message = createBasePBUiTransform();
|
|
661
|
+
while (reader.pos < end) {
|
|
662
|
+
const tag = reader.uint32();
|
|
663
|
+
switch (tag >>> 3) {
|
|
664
|
+
case 1:
|
|
665
|
+
message.parent = reader.int32();
|
|
666
|
+
break;
|
|
667
|
+
case 2:
|
|
668
|
+
message.rightOf = reader.int32();
|
|
669
|
+
break;
|
|
670
|
+
case 3:
|
|
671
|
+
message.alignContent = reader.int32();
|
|
672
|
+
break;
|
|
673
|
+
case 4:
|
|
674
|
+
message.alignItems = reader.int32();
|
|
675
|
+
break;
|
|
676
|
+
case 5:
|
|
677
|
+
message.flexWrap = reader.int32();
|
|
678
|
+
break;
|
|
679
|
+
case 6:
|
|
680
|
+
message.flexShrink = reader.float();
|
|
681
|
+
break;
|
|
682
|
+
case 7:
|
|
683
|
+
message.positionType = reader.int32();
|
|
684
|
+
break;
|
|
685
|
+
case 8:
|
|
686
|
+
message.alignSelf = reader.int32();
|
|
687
|
+
break;
|
|
688
|
+
case 9:
|
|
689
|
+
message.flexDirection = reader.int32();
|
|
690
|
+
break;
|
|
691
|
+
case 10:
|
|
692
|
+
message.justifyContent = reader.int32();
|
|
693
|
+
break;
|
|
694
|
+
case 11:
|
|
695
|
+
message.overflow = reader.int32();
|
|
696
|
+
break;
|
|
697
|
+
case 12:
|
|
698
|
+
message.display = reader.int32();
|
|
699
|
+
break;
|
|
700
|
+
case 13:
|
|
701
|
+
message.flexBasisUnit = reader.int32();
|
|
702
|
+
break;
|
|
703
|
+
case 14:
|
|
704
|
+
message.flexBasis = reader.float();
|
|
705
|
+
break;
|
|
706
|
+
case 15:
|
|
707
|
+
message.flexGrow = reader.float();
|
|
708
|
+
break;
|
|
709
|
+
case 16:
|
|
710
|
+
message.widthUnit = reader.int32();
|
|
711
|
+
break;
|
|
712
|
+
case 17:
|
|
713
|
+
message.width = reader.float();
|
|
714
|
+
break;
|
|
715
|
+
case 18:
|
|
716
|
+
message.heightUnit = reader.int32();
|
|
717
|
+
break;
|
|
718
|
+
case 19:
|
|
719
|
+
message.height = reader.float();
|
|
720
|
+
break;
|
|
721
|
+
case 20:
|
|
722
|
+
message.minWidthUnit = reader.int32();
|
|
723
|
+
break;
|
|
724
|
+
case 21:
|
|
725
|
+
message.minWidth = reader.float();
|
|
726
|
+
break;
|
|
727
|
+
case 22:
|
|
728
|
+
message.minHeightUnit = reader.int32();
|
|
729
|
+
break;
|
|
730
|
+
case 23:
|
|
731
|
+
message.minHeight = reader.float();
|
|
732
|
+
break;
|
|
733
|
+
case 24:
|
|
734
|
+
message.maxWidthUnit = reader.int32();
|
|
735
|
+
break;
|
|
736
|
+
case 25:
|
|
737
|
+
message.maxWidth = reader.float();
|
|
738
|
+
break;
|
|
739
|
+
case 26:
|
|
740
|
+
message.maxHeightUnit = reader.int32();
|
|
741
|
+
break;
|
|
742
|
+
case 27:
|
|
743
|
+
message.maxHeight = reader.float();
|
|
744
|
+
break;
|
|
745
|
+
case 28:
|
|
746
|
+
message.positionLeftUnit = reader.int32();
|
|
747
|
+
break;
|
|
748
|
+
case 29:
|
|
749
|
+
message.positionLeft = reader.float();
|
|
750
|
+
break;
|
|
751
|
+
case 30:
|
|
752
|
+
message.positionTopUnit = reader.int32();
|
|
753
|
+
break;
|
|
754
|
+
case 31:
|
|
755
|
+
message.positionTop = reader.float();
|
|
756
|
+
break;
|
|
757
|
+
case 32:
|
|
758
|
+
message.positionRightUnit = reader.int32();
|
|
759
|
+
break;
|
|
760
|
+
case 33:
|
|
761
|
+
message.positionRight = reader.float();
|
|
762
|
+
break;
|
|
763
|
+
case 34:
|
|
764
|
+
message.positionBottomUnit = reader.int32();
|
|
765
|
+
break;
|
|
766
|
+
case 35:
|
|
767
|
+
message.positionBottom = reader.float();
|
|
768
|
+
break;
|
|
769
|
+
case 36:
|
|
770
|
+
message.marginLeftUnit = reader.int32();
|
|
771
|
+
break;
|
|
772
|
+
case 37:
|
|
773
|
+
message.marginLeft = reader.float();
|
|
774
|
+
break;
|
|
775
|
+
case 38:
|
|
776
|
+
message.marginTopUnit = reader.int32();
|
|
777
|
+
break;
|
|
778
|
+
case 39:
|
|
779
|
+
message.marginTop = reader.float();
|
|
780
|
+
break;
|
|
781
|
+
case 40:
|
|
782
|
+
message.marginRightUnit = reader.int32();
|
|
783
|
+
break;
|
|
784
|
+
case 41:
|
|
785
|
+
message.marginRight = reader.float();
|
|
786
|
+
break;
|
|
787
|
+
case 42:
|
|
788
|
+
message.marginBottomUnit = reader.int32();
|
|
789
|
+
break;
|
|
790
|
+
case 43:
|
|
791
|
+
message.marginBottom = reader.float();
|
|
792
|
+
break;
|
|
793
|
+
case 44:
|
|
794
|
+
message.paddingLeftUnit = reader.int32();
|
|
795
|
+
break;
|
|
796
|
+
case 45:
|
|
797
|
+
message.paddingLeft = reader.float();
|
|
798
|
+
break;
|
|
799
|
+
case 46:
|
|
800
|
+
message.paddingTopUnit = reader.int32();
|
|
801
|
+
break;
|
|
802
|
+
case 47:
|
|
803
|
+
message.paddingTop = reader.float();
|
|
804
|
+
break;
|
|
805
|
+
case 48:
|
|
806
|
+
message.paddingRightUnit = reader.int32();
|
|
807
|
+
break;
|
|
808
|
+
case 49:
|
|
809
|
+
message.paddingRight = reader.float();
|
|
810
|
+
break;
|
|
811
|
+
case 50:
|
|
812
|
+
message.paddingBottomUnit = reader.int32();
|
|
813
|
+
break;
|
|
814
|
+
case 51:
|
|
815
|
+
message.paddingBottom = reader.float();
|
|
816
|
+
break;
|
|
817
|
+
default:
|
|
818
|
+
reader.skipType(tag & 7);
|
|
819
|
+
break;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
return message;
|
|
823
|
+
},
|
|
824
|
+
fromJSON(object) {
|
|
825
|
+
return {
|
|
826
|
+
parent: isSet(object.parent) ? Number(object.parent) : 0,
|
|
827
|
+
rightOf: isSet(object.rightOf) ? Number(object.rightOf) : 0,
|
|
828
|
+
alignContent: isSet(object.alignContent) ? yGAlignFromJSON(object.alignContent) : undefined,
|
|
829
|
+
alignItems: isSet(object.alignItems) ? yGAlignFromJSON(object.alignItems) : undefined,
|
|
830
|
+
flexWrap: isSet(object.flexWrap) ? yGWrapFromJSON(object.flexWrap) : undefined,
|
|
831
|
+
flexShrink: isSet(object.flexShrink) ? Number(object.flexShrink) : undefined,
|
|
832
|
+
positionType: isSet(object.positionType) ? yGPositionTypeFromJSON(object.positionType) : 0,
|
|
833
|
+
alignSelf: isSet(object.alignSelf) ? yGAlignFromJSON(object.alignSelf) : 0,
|
|
834
|
+
flexDirection: isSet(object.flexDirection) ? yGFlexDirectionFromJSON(object.flexDirection) : 0,
|
|
835
|
+
justifyContent: isSet(object.justifyContent) ? yGJustifyFromJSON(object.justifyContent) : 0,
|
|
836
|
+
overflow: isSet(object.overflow) ? yGOverflowFromJSON(object.overflow) : 0,
|
|
837
|
+
display: isSet(object.display) ? yGDisplayFromJSON(object.display) : 0,
|
|
838
|
+
flexBasisUnit: isSet(object.flexBasisUnit) ? yGUnitFromJSON(object.flexBasisUnit) : 0,
|
|
839
|
+
flexBasis: isSet(object.flexBasis) ? Number(object.flexBasis) : 0,
|
|
840
|
+
flexGrow: isSet(object.flexGrow) ? Number(object.flexGrow) : 0,
|
|
841
|
+
widthUnit: isSet(object.widthUnit) ? yGUnitFromJSON(object.widthUnit) : 0,
|
|
842
|
+
width: isSet(object.width) ? Number(object.width) : 0,
|
|
843
|
+
heightUnit: isSet(object.heightUnit) ? yGUnitFromJSON(object.heightUnit) : 0,
|
|
844
|
+
height: isSet(object.height) ? Number(object.height) : 0,
|
|
845
|
+
minWidthUnit: isSet(object.minWidthUnit) ? yGUnitFromJSON(object.minWidthUnit) : 0,
|
|
846
|
+
minWidth: isSet(object.minWidth) ? Number(object.minWidth) : 0,
|
|
847
|
+
minHeightUnit: isSet(object.minHeightUnit) ? yGUnitFromJSON(object.minHeightUnit) : 0,
|
|
848
|
+
minHeight: isSet(object.minHeight) ? Number(object.minHeight) : 0,
|
|
849
|
+
maxWidthUnit: isSet(object.maxWidthUnit) ? yGUnitFromJSON(object.maxWidthUnit) : 0,
|
|
850
|
+
maxWidth: isSet(object.maxWidth) ? Number(object.maxWidth) : 0,
|
|
851
|
+
maxHeightUnit: isSet(object.maxHeightUnit) ? yGUnitFromJSON(object.maxHeightUnit) : 0,
|
|
852
|
+
maxHeight: isSet(object.maxHeight) ? Number(object.maxHeight) : 0,
|
|
853
|
+
positionLeftUnit: isSet(object.positionLeftUnit) ? yGUnitFromJSON(object.positionLeftUnit) : 0,
|
|
854
|
+
positionLeft: isSet(object.positionLeft) ? Number(object.positionLeft) : 0,
|
|
855
|
+
positionTopUnit: isSet(object.positionTopUnit) ? yGUnitFromJSON(object.positionTopUnit) : 0,
|
|
856
|
+
positionTop: isSet(object.positionTop) ? Number(object.positionTop) : 0,
|
|
857
|
+
positionRightUnit: isSet(object.positionRightUnit) ? yGUnitFromJSON(object.positionRightUnit) : 0,
|
|
858
|
+
positionRight: isSet(object.positionRight) ? Number(object.positionRight) : 0,
|
|
859
|
+
positionBottomUnit: isSet(object.positionBottomUnit) ? yGUnitFromJSON(object.positionBottomUnit) : 0,
|
|
860
|
+
positionBottom: isSet(object.positionBottom) ? Number(object.positionBottom) : 0,
|
|
861
|
+
marginLeftUnit: isSet(object.marginLeftUnit) ? yGUnitFromJSON(object.marginLeftUnit) : 0,
|
|
862
|
+
marginLeft: isSet(object.marginLeft) ? Number(object.marginLeft) : 0,
|
|
863
|
+
marginTopUnit: isSet(object.marginTopUnit) ? yGUnitFromJSON(object.marginTopUnit) : 0,
|
|
864
|
+
marginTop: isSet(object.marginTop) ? Number(object.marginTop) : 0,
|
|
865
|
+
marginRightUnit: isSet(object.marginRightUnit) ? yGUnitFromJSON(object.marginRightUnit) : 0,
|
|
866
|
+
marginRight: isSet(object.marginRight) ? Number(object.marginRight) : 0,
|
|
867
|
+
marginBottomUnit: isSet(object.marginBottomUnit) ? yGUnitFromJSON(object.marginBottomUnit) : 0,
|
|
868
|
+
marginBottom: isSet(object.marginBottom) ? Number(object.marginBottom) : 0,
|
|
869
|
+
paddingLeftUnit: isSet(object.paddingLeftUnit) ? yGUnitFromJSON(object.paddingLeftUnit) : 0,
|
|
870
|
+
paddingLeft: isSet(object.paddingLeft) ? Number(object.paddingLeft) : 0,
|
|
871
|
+
paddingTopUnit: isSet(object.paddingTopUnit) ? yGUnitFromJSON(object.paddingTopUnit) : 0,
|
|
872
|
+
paddingTop: isSet(object.paddingTop) ? Number(object.paddingTop) : 0,
|
|
873
|
+
paddingRightUnit: isSet(object.paddingRightUnit) ? yGUnitFromJSON(object.paddingRightUnit) : 0,
|
|
874
|
+
paddingRight: isSet(object.paddingRight) ? Number(object.paddingRight) : 0,
|
|
875
|
+
paddingBottomUnit: isSet(object.paddingBottomUnit) ? yGUnitFromJSON(object.paddingBottomUnit) : 0,
|
|
876
|
+
paddingBottom: isSet(object.paddingBottom) ? Number(object.paddingBottom) : 0,
|
|
877
|
+
};
|
|
878
|
+
},
|
|
879
|
+
toJSON(message) {
|
|
880
|
+
const obj = {};
|
|
881
|
+
message.parent !== undefined && (obj.parent = Math.round(message.parent));
|
|
882
|
+
message.rightOf !== undefined && (obj.rightOf = Math.round(message.rightOf));
|
|
883
|
+
message.alignContent !== undefined &&
|
|
884
|
+
(obj.alignContent = message.alignContent !== undefined ? yGAlignToJSON(message.alignContent) : undefined);
|
|
885
|
+
message.alignItems !== undefined &&
|
|
886
|
+
(obj.alignItems = message.alignItems !== undefined ? yGAlignToJSON(message.alignItems) : undefined);
|
|
887
|
+
message.flexWrap !== undefined &&
|
|
888
|
+
(obj.flexWrap = message.flexWrap !== undefined ? yGWrapToJSON(message.flexWrap) : undefined);
|
|
889
|
+
message.flexShrink !== undefined && (obj.flexShrink = message.flexShrink);
|
|
890
|
+
message.positionType !== undefined && (obj.positionType = yGPositionTypeToJSON(message.positionType));
|
|
891
|
+
message.alignSelf !== undefined && (obj.alignSelf = yGAlignToJSON(message.alignSelf));
|
|
892
|
+
message.flexDirection !== undefined && (obj.flexDirection = yGFlexDirectionToJSON(message.flexDirection));
|
|
893
|
+
message.justifyContent !== undefined && (obj.justifyContent = yGJustifyToJSON(message.justifyContent));
|
|
894
|
+
message.overflow !== undefined && (obj.overflow = yGOverflowToJSON(message.overflow));
|
|
895
|
+
message.display !== undefined && (obj.display = yGDisplayToJSON(message.display));
|
|
896
|
+
message.flexBasisUnit !== undefined && (obj.flexBasisUnit = yGUnitToJSON(message.flexBasisUnit));
|
|
897
|
+
message.flexBasis !== undefined && (obj.flexBasis = message.flexBasis);
|
|
898
|
+
message.flexGrow !== undefined && (obj.flexGrow = message.flexGrow);
|
|
899
|
+
message.widthUnit !== undefined && (obj.widthUnit = yGUnitToJSON(message.widthUnit));
|
|
900
|
+
message.width !== undefined && (obj.width = message.width);
|
|
901
|
+
message.heightUnit !== undefined && (obj.heightUnit = yGUnitToJSON(message.heightUnit));
|
|
902
|
+
message.height !== undefined && (obj.height = message.height);
|
|
903
|
+
message.minWidthUnit !== undefined && (obj.minWidthUnit = yGUnitToJSON(message.minWidthUnit));
|
|
904
|
+
message.minWidth !== undefined && (obj.minWidth = message.minWidth);
|
|
905
|
+
message.minHeightUnit !== undefined && (obj.minHeightUnit = yGUnitToJSON(message.minHeightUnit));
|
|
906
|
+
message.minHeight !== undefined && (obj.minHeight = message.minHeight);
|
|
907
|
+
message.maxWidthUnit !== undefined && (obj.maxWidthUnit = yGUnitToJSON(message.maxWidthUnit));
|
|
908
|
+
message.maxWidth !== undefined && (obj.maxWidth = message.maxWidth);
|
|
909
|
+
message.maxHeightUnit !== undefined && (obj.maxHeightUnit = yGUnitToJSON(message.maxHeightUnit));
|
|
910
|
+
message.maxHeight !== undefined && (obj.maxHeight = message.maxHeight);
|
|
911
|
+
message.positionLeftUnit !== undefined && (obj.positionLeftUnit = yGUnitToJSON(message.positionLeftUnit));
|
|
912
|
+
message.positionLeft !== undefined && (obj.positionLeft = message.positionLeft);
|
|
913
|
+
message.positionTopUnit !== undefined && (obj.positionTopUnit = yGUnitToJSON(message.positionTopUnit));
|
|
914
|
+
message.positionTop !== undefined && (obj.positionTop = message.positionTop);
|
|
915
|
+
message.positionRightUnit !== undefined && (obj.positionRightUnit = yGUnitToJSON(message.positionRightUnit));
|
|
916
|
+
message.positionRight !== undefined && (obj.positionRight = message.positionRight);
|
|
917
|
+
message.positionBottomUnit !== undefined && (obj.positionBottomUnit = yGUnitToJSON(message.positionBottomUnit));
|
|
918
|
+
message.positionBottom !== undefined && (obj.positionBottom = message.positionBottom);
|
|
919
|
+
message.marginLeftUnit !== undefined && (obj.marginLeftUnit = yGUnitToJSON(message.marginLeftUnit));
|
|
920
|
+
message.marginLeft !== undefined && (obj.marginLeft = message.marginLeft);
|
|
921
|
+
message.marginTopUnit !== undefined && (obj.marginTopUnit = yGUnitToJSON(message.marginTopUnit));
|
|
922
|
+
message.marginTop !== undefined && (obj.marginTop = message.marginTop);
|
|
923
|
+
message.marginRightUnit !== undefined && (obj.marginRightUnit = yGUnitToJSON(message.marginRightUnit));
|
|
924
|
+
message.marginRight !== undefined && (obj.marginRight = message.marginRight);
|
|
925
|
+
message.marginBottomUnit !== undefined && (obj.marginBottomUnit = yGUnitToJSON(message.marginBottomUnit));
|
|
926
|
+
message.marginBottom !== undefined && (obj.marginBottom = message.marginBottom);
|
|
927
|
+
message.paddingLeftUnit !== undefined && (obj.paddingLeftUnit = yGUnitToJSON(message.paddingLeftUnit));
|
|
928
|
+
message.paddingLeft !== undefined && (obj.paddingLeft = message.paddingLeft);
|
|
929
|
+
message.paddingTopUnit !== undefined && (obj.paddingTopUnit = yGUnitToJSON(message.paddingTopUnit));
|
|
930
|
+
message.paddingTop !== undefined && (obj.paddingTop = message.paddingTop);
|
|
931
|
+
message.paddingRightUnit !== undefined && (obj.paddingRightUnit = yGUnitToJSON(message.paddingRightUnit));
|
|
932
|
+
message.paddingRight !== undefined && (obj.paddingRight = message.paddingRight);
|
|
933
|
+
message.paddingBottomUnit !== undefined && (obj.paddingBottomUnit = yGUnitToJSON(message.paddingBottomUnit));
|
|
934
|
+
message.paddingBottom !== undefined && (obj.paddingBottom = message.paddingBottom);
|
|
935
|
+
return obj;
|
|
936
|
+
},
|
|
937
|
+
create(base) {
|
|
938
|
+
return exports.PBUiTransform.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
939
|
+
},
|
|
940
|
+
fromPartial(object) {
|
|
941
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _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;
|
|
942
|
+
const message = createBasePBUiTransform();
|
|
943
|
+
message.parent = (_a = object.parent) !== null && _a !== void 0 ? _a : 0;
|
|
944
|
+
message.rightOf = (_b = object.rightOf) !== null && _b !== void 0 ? _b : 0;
|
|
945
|
+
message.alignContent = (_c = object.alignContent) !== null && _c !== void 0 ? _c : undefined;
|
|
946
|
+
message.alignItems = (_d = object.alignItems) !== null && _d !== void 0 ? _d : undefined;
|
|
947
|
+
message.flexWrap = (_e = object.flexWrap) !== null && _e !== void 0 ? _e : undefined;
|
|
948
|
+
message.flexShrink = (_f = object.flexShrink) !== null && _f !== void 0 ? _f : undefined;
|
|
949
|
+
message.positionType = (_g = object.positionType) !== null && _g !== void 0 ? _g : 0;
|
|
950
|
+
message.alignSelf = (_h = object.alignSelf) !== null && _h !== void 0 ? _h : 0;
|
|
951
|
+
message.flexDirection = (_j = object.flexDirection) !== null && _j !== void 0 ? _j : 0;
|
|
952
|
+
message.justifyContent = (_k = object.justifyContent) !== null && _k !== void 0 ? _k : 0;
|
|
953
|
+
message.overflow = (_l = object.overflow) !== null && _l !== void 0 ? _l : 0;
|
|
954
|
+
message.display = (_m = object.display) !== null && _m !== void 0 ? _m : 0;
|
|
955
|
+
message.flexBasisUnit = (_o = object.flexBasisUnit) !== null && _o !== void 0 ? _o : 0;
|
|
956
|
+
message.flexBasis = (_p = object.flexBasis) !== null && _p !== void 0 ? _p : 0;
|
|
957
|
+
message.flexGrow = (_q = object.flexGrow) !== null && _q !== void 0 ? _q : 0;
|
|
958
|
+
message.widthUnit = (_r = object.widthUnit) !== null && _r !== void 0 ? _r : 0;
|
|
959
|
+
message.width = (_s = object.width) !== null && _s !== void 0 ? _s : 0;
|
|
960
|
+
message.heightUnit = (_t = object.heightUnit) !== null && _t !== void 0 ? _t : 0;
|
|
961
|
+
message.height = (_u = object.height) !== null && _u !== void 0 ? _u : 0;
|
|
962
|
+
message.minWidthUnit = (_v = object.minWidthUnit) !== null && _v !== void 0 ? _v : 0;
|
|
963
|
+
message.minWidth = (_w = object.minWidth) !== null && _w !== void 0 ? _w : 0;
|
|
964
|
+
message.minHeightUnit = (_x = object.minHeightUnit) !== null && _x !== void 0 ? _x : 0;
|
|
965
|
+
message.minHeight = (_y = object.minHeight) !== null && _y !== void 0 ? _y : 0;
|
|
966
|
+
message.maxWidthUnit = (_z = object.maxWidthUnit) !== null && _z !== void 0 ? _z : 0;
|
|
967
|
+
message.maxWidth = (_0 = object.maxWidth) !== null && _0 !== void 0 ? _0 : 0;
|
|
968
|
+
message.maxHeightUnit = (_1 = object.maxHeightUnit) !== null && _1 !== void 0 ? _1 : 0;
|
|
969
|
+
message.maxHeight = (_2 = object.maxHeight) !== null && _2 !== void 0 ? _2 : 0;
|
|
970
|
+
message.positionLeftUnit = (_3 = object.positionLeftUnit) !== null && _3 !== void 0 ? _3 : 0;
|
|
971
|
+
message.positionLeft = (_4 = object.positionLeft) !== null && _4 !== void 0 ? _4 : 0;
|
|
972
|
+
message.positionTopUnit = (_5 = object.positionTopUnit) !== null && _5 !== void 0 ? _5 : 0;
|
|
973
|
+
message.positionTop = (_6 = object.positionTop) !== null && _6 !== void 0 ? _6 : 0;
|
|
974
|
+
message.positionRightUnit = (_7 = object.positionRightUnit) !== null && _7 !== void 0 ? _7 : 0;
|
|
975
|
+
message.positionRight = (_8 = object.positionRight) !== null && _8 !== void 0 ? _8 : 0;
|
|
976
|
+
message.positionBottomUnit = (_9 = object.positionBottomUnit) !== null && _9 !== void 0 ? _9 : 0;
|
|
977
|
+
message.positionBottom = (_10 = object.positionBottom) !== null && _10 !== void 0 ? _10 : 0;
|
|
978
|
+
message.marginLeftUnit = (_11 = object.marginLeftUnit) !== null && _11 !== void 0 ? _11 : 0;
|
|
979
|
+
message.marginLeft = (_12 = object.marginLeft) !== null && _12 !== void 0 ? _12 : 0;
|
|
980
|
+
message.marginTopUnit = (_13 = object.marginTopUnit) !== null && _13 !== void 0 ? _13 : 0;
|
|
981
|
+
message.marginTop = (_14 = object.marginTop) !== null && _14 !== void 0 ? _14 : 0;
|
|
982
|
+
message.marginRightUnit = (_15 = object.marginRightUnit) !== null && _15 !== void 0 ? _15 : 0;
|
|
983
|
+
message.marginRight = (_16 = object.marginRight) !== null && _16 !== void 0 ? _16 : 0;
|
|
984
|
+
message.marginBottomUnit = (_17 = object.marginBottomUnit) !== null && _17 !== void 0 ? _17 : 0;
|
|
985
|
+
message.marginBottom = (_18 = object.marginBottom) !== null && _18 !== void 0 ? _18 : 0;
|
|
986
|
+
message.paddingLeftUnit = (_19 = object.paddingLeftUnit) !== null && _19 !== void 0 ? _19 : 0;
|
|
987
|
+
message.paddingLeft = (_20 = object.paddingLeft) !== null && _20 !== void 0 ? _20 : 0;
|
|
988
|
+
message.paddingTopUnit = (_21 = object.paddingTopUnit) !== null && _21 !== void 0 ? _21 : 0;
|
|
989
|
+
message.paddingTop = (_22 = object.paddingTop) !== null && _22 !== void 0 ? _22 : 0;
|
|
990
|
+
message.paddingRightUnit = (_23 = object.paddingRightUnit) !== null && _23 !== void 0 ? _23 : 0;
|
|
991
|
+
message.paddingRight = (_24 = object.paddingRight) !== null && _24 !== void 0 ? _24 : 0;
|
|
992
|
+
message.paddingBottomUnit = (_25 = object.paddingBottomUnit) !== null && _25 !== void 0 ? _25 : 0;
|
|
993
|
+
message.paddingBottom = (_26 = object.paddingBottom) !== null && _26 !== void 0 ? _26 : 0;
|
|
994
|
+
return message;
|
|
995
|
+
},
|
|
996
|
+
};
|
|
997
|
+
function isSet(value) {
|
|
998
|
+
return value !== null && value !== undefined;
|
|
999
|
+
}
|
|
1000
|
+
//# sourceMappingURL=ui_transform.gen.js.map
|