@dcl/protocol 1.0.0-22309437617.commit-6617cff → 1.0.0-22483842997.commit-1c3d55b
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/texture.gen.d.ts +0 -18
- package/out-js/decentraland/common/texture.gen.js +4 -104
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +0 -70
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1 -228
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +46 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +315 -12
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -41
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +3 -241
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -19
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +1 -35
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +3 -172
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +9 -3
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +44 -17
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +0 -19
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
- package/out-js/decentraland/sdk/components/material.gen.js +2 -86
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +5 -1
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +31 -3
- package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +0 -13
- package/out-js/decentraland/sdk/components/raycast.gen.js +2 -64
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -4
- package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -30
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +0 -3
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +2 -40
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
- package/out-ts/decentraland/common/texture.gen.ts +4 -119
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +0 -242
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +375 -3
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -292
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +1 -23
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +2 -218
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +43 -16
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
- package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +44 -3
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +1 -73
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -40
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +2 -44
- package/package.json +4 -7
- package/proto/decentraland/common/texture.proto +1 -8
- package/proto/decentraland/kernel/apis/restricted_actions.proto +0 -22
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +29 -0
- package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -21
- package/proto/decentraland/sdk/components/avatar_shape.proto +0 -1
- package/proto/decentraland/sdk/components/camera_mode_area.proto +3 -22
- package/proto/decentraland/sdk/components/common/input_action.proto +7 -3
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
- package/proto/decentraland/sdk/components/light_source.proto +1 -1
- package/proto/decentraland/sdk/components/material.proto +1 -13
- package/proto/decentraland/sdk/components/mesh_collider.proto +0 -7
- package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
- package/proto/decentraland/sdk/components/pointer_events.proto +2 -0
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
- package/proto/decentraland/sdk/components/raycast.proto +0 -13
- package/proto/decentraland/sdk/components/ui_text.proto +0 -3
- package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
- package/proto/decentraland/sdk/components/virtual_camera.proto +2 -0
- package/proto/decentraland/social_service/v2/social_service_v2.proto +0 -3
- package/public/sdk-components.proto +0 -4
- package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +0 -34
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js +0 -101
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +0 -40
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +0 -135
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
- package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
- package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
- package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +0 -119
- package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +0 -163
- package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
- package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
- package/proto/decentraland/sdk/components/avatar_movement.proto +0 -45
- package/proto/decentraland/sdk/components/avatar_movement_info.proto +0 -16
- package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
- package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
- package/proto/decentraland/sdk/components/global_light.proto +0 -22
- package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
- package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
- package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
- package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
- package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
|
@@ -22,10 +22,6 @@ export interface PBUiText {
|
|
|
22
22
|
fontSize?: number | undefined;
|
|
23
23
|
/** wrap text when the border is reached (default: TW_WRAP) */
|
|
24
24
|
textWrap?: TextWrap | undefined;
|
|
25
|
-
/** width of the outline (default: 0) */
|
|
26
|
-
outlineWidth?: number | undefined;
|
|
27
|
-
/** RGBA color of the outline (default: opaque black) */
|
|
28
|
-
outlineColor?: Color4 | undefined;
|
|
29
25
|
}
|
|
30
26
|
export declare namespace PBUiText {
|
|
31
27
|
function encode(message: PBUiText, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -50,8 +50,6 @@ function createBasePBUiText() {
|
|
|
50
50
|
font: undefined,
|
|
51
51
|
fontSize: undefined,
|
|
52
52
|
textWrap: undefined,
|
|
53
|
-
outlineWidth: undefined,
|
|
54
|
-
outlineColor: undefined,
|
|
55
53
|
};
|
|
56
54
|
}
|
|
57
55
|
var PBUiText;
|
|
@@ -75,12 +73,6 @@ var PBUiText;
|
|
|
75
73
|
if (message.textWrap !== undefined) {
|
|
76
74
|
writer.uint32(48).int32(message.textWrap);
|
|
77
75
|
}
|
|
78
|
-
if (message.outlineWidth !== undefined) {
|
|
79
|
-
writer.uint32(61).float(message.outlineWidth);
|
|
80
|
-
}
|
|
81
|
-
if (message.outlineColor !== undefined) {
|
|
82
|
-
colors_gen_1.Color4.encode(message.outlineColor, writer.uint32(66).fork()).ldelim();
|
|
83
|
-
}
|
|
84
76
|
return writer;
|
|
85
77
|
}
|
|
86
78
|
PBUiText.encode = encode;
|
|
@@ -127,18 +119,6 @@ var PBUiText;
|
|
|
127
119
|
}
|
|
128
120
|
message.textWrap = reader.int32();
|
|
129
121
|
continue;
|
|
130
|
-
case 7:
|
|
131
|
-
if (tag !== 61) {
|
|
132
|
-
break;
|
|
133
|
-
}
|
|
134
|
-
message.outlineWidth = reader.float();
|
|
135
|
-
continue;
|
|
136
|
-
case 8:
|
|
137
|
-
if (tag !== 66) {
|
|
138
|
-
break;
|
|
139
|
-
}
|
|
140
|
-
message.outlineColor = colors_gen_1.Color4.decode(reader, reader.uint32());
|
|
141
|
-
continue;
|
|
142
122
|
}
|
|
143
123
|
if ((tag & 7) === 4 || tag === 0) {
|
|
144
124
|
break;
|
|
@@ -156,8 +136,6 @@ var PBUiText;
|
|
|
156
136
|
font: isSet(object.font) ? (0, texts_gen_1.fontFromJSON)(object.font) : undefined,
|
|
157
137
|
fontSize: isSet(object.fontSize) ? Number(object.fontSize) : undefined,
|
|
158
138
|
textWrap: isSet(object.textWrap) ? textWrapFromJSON(object.textWrap) : undefined,
|
|
159
|
-
outlineWidth: isSet(object.outlineWidth) ? Number(object.outlineWidth) : undefined,
|
|
160
|
-
outlineColor: isSet(object.outlineColor) ? colors_gen_1.Color4.fromJSON(object.outlineColor) : undefined,
|
|
161
139
|
};
|
|
162
140
|
}
|
|
163
141
|
PBUiText.fromJSON = fromJSON;
|
|
@@ -171,9 +149,6 @@ var PBUiText;
|
|
|
171
149
|
message.fontSize !== undefined && (obj.fontSize = Math.round(message.fontSize));
|
|
172
150
|
message.textWrap !== undefined &&
|
|
173
151
|
(obj.textWrap = message.textWrap !== undefined ? textWrapToJSON(message.textWrap) : undefined);
|
|
174
|
-
message.outlineWidth !== undefined && (obj.outlineWidth = message.outlineWidth);
|
|
175
|
-
message.outlineColor !== undefined &&
|
|
176
|
-
(obj.outlineColor = message.outlineColor ? colors_gen_1.Color4.toJSON(message.outlineColor) : undefined);
|
|
177
152
|
return obj;
|
|
178
153
|
}
|
|
179
154
|
PBUiText.toJSON = toJSON;
|
|
@@ -182,7 +157,7 @@ var PBUiText;
|
|
|
182
157
|
}
|
|
183
158
|
PBUiText.create = create;
|
|
184
159
|
function fromPartial(object) {
|
|
185
|
-
var _a, _b, _c, _d, _e
|
|
160
|
+
var _a, _b, _c, _d, _e;
|
|
186
161
|
const message = createBasePBUiText();
|
|
187
162
|
message.value = (_a = object.value) !== null && _a !== void 0 ? _a : "";
|
|
188
163
|
message.color = (object.color !== undefined && object.color !== null)
|
|
@@ -192,10 +167,6 @@ var PBUiText;
|
|
|
192
167
|
message.font = (_c = object.font) !== null && _c !== void 0 ? _c : undefined;
|
|
193
168
|
message.fontSize = (_d = object.fontSize) !== null && _d !== void 0 ? _d : undefined;
|
|
194
169
|
message.textWrap = (_e = object.textWrap) !== null && _e !== void 0 ? _e : undefined;
|
|
195
|
-
message.outlineWidth = (_f = object.outlineWidth) !== null && _f !== void 0 ? _f : undefined;
|
|
196
|
-
message.outlineColor = (object.outlineColor !== undefined && object.outlineColor !== null)
|
|
197
|
-
? colors_gen_1.Color4.fromPartial(object.outlineColor)
|
|
198
|
-
: undefined;
|
|
199
170
|
return message;
|
|
200
171
|
}
|
|
201
172
|
PBUiText.fromPartial = fromPartial;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui_text.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/ui_text.gen.ts"],"names":[],"mappings":";;;;;;AAoBA,4CAaC;AAED,wCAUC;AA7CD,oBAAoB;AACpB,iEAAqC;AACrC,wDAAiD;AACjD,kDAO4B;AAEf,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAE7D,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,6CAAW,CAAA;IACX,mDAAc,CAAA;IACd,wDAAiB,CAAA;AACnB,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB;AAED,SAAgB,gBAAgB,CAAC,MAAW;IAC1C,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,CAAC,CAAC;QACP,KAAK,SAAS;YACZ,OAAO,QAAQ,CAAC,OAAO,CAAC;QAC1B,KAAK,CAAC,CAAC;QACP,KAAK,YAAY;YACf,OAAO,QAAQ,CAAC,UAAU,CAAC;QAC7B,KAAK,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,MAAM,CAAC,QAAQ,mCAAI,SAAS,CAAC;QAChD,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,oBAAW,cAW1B,CAAA;AACH,CAAC,EAzHgB,QAAQ,wBAAR,QAAQ,QAyHxB;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
import { Color4 } from "../../common/colors.gen";
|
|
3
|
-
import { Vector2 } from "../../common/vectors.gen";
|
|
4
3
|
export declare const protobufPackage = "decentraland.sdk.components";
|
|
5
4
|
export declare enum YGPositionType {
|
|
6
5
|
YGPT_RELATIVE = 0,
|
|
@@ -95,24 +94,6 @@ export declare enum PointerFilterMode {
|
|
|
95
94
|
}
|
|
96
95
|
export declare function pointerFilterModeFromJSON(object: any): PointerFilterMode;
|
|
97
96
|
export declare function pointerFilterModeToJSON(object: PointerFilterMode): string;
|
|
98
|
-
export declare enum ShowScrollBar {
|
|
99
|
-
SSB_BOTH = 0,
|
|
100
|
-
SSB_ONLY_VERTICAL = 1,
|
|
101
|
-
SSB_ONLY_HORIZONTAL = 2,
|
|
102
|
-
SSB_HIDDEN = 3,
|
|
103
|
-
UNRECOGNIZED = -1
|
|
104
|
-
}
|
|
105
|
-
export declare function showScrollBarFromJSON(object: any): ShowScrollBar;
|
|
106
|
-
export declare function showScrollBarToJSON(object: ShowScrollBar): string;
|
|
107
|
-
export interface ScrollPositionValue {
|
|
108
|
-
value?: {
|
|
109
|
-
$case: "position";
|
|
110
|
-
position: Vector2;
|
|
111
|
-
} | {
|
|
112
|
-
$case: "reference";
|
|
113
|
-
reference: string;
|
|
114
|
-
} | undefined;
|
|
115
|
-
}
|
|
116
97
|
export interface PBUiTransform {
|
|
117
98
|
parent: number;
|
|
118
99
|
rightOf: number;
|
|
@@ -227,23 +208,9 @@ export interface PBUiTransform {
|
|
|
227
208
|
borderRightColor?: Color4 | undefined;
|
|
228
209
|
/** default: 1 */
|
|
229
210
|
opacity?: number | undefined;
|
|
230
|
-
/** reference for scroll_position. default empty */
|
|
231
|
-
elementId?: string | undefined;
|
|
232
|
-
/** default position=(0,0) */
|
|
233
|
-
scrollPosition?: ScrollPositionValue | undefined;
|
|
234
|
-
/** default ShowScrollBar.SSB_BOTH */
|
|
235
|
-
scrollVisible?: ShowScrollBar | undefined;
|
|
236
211
|
/** default: 0 — controls render stacking order. Higher values appear in front of lower values. */
|
|
237
212
|
zIndex?: number | undefined;
|
|
238
213
|
}
|
|
239
|
-
export declare namespace ScrollPositionValue {
|
|
240
|
-
function encode(message: ScrollPositionValue, writer?: _m0.Writer): _m0.Writer;
|
|
241
|
-
function decode(input: _m0.Reader | Uint8Array, length?: number): ScrollPositionValue;
|
|
242
|
-
function fromJSON(object: any): ScrollPositionValue;
|
|
243
|
-
function toJSON(message: ScrollPositionValue): unknown;
|
|
244
|
-
function create<I extends Exact<DeepPartial<ScrollPositionValue>, I>>(base?: I): ScrollPositionValue;
|
|
245
|
-
function fromPartial<I extends Exact<DeepPartial<ScrollPositionValue>, I>>(object: I): ScrollPositionValue;
|
|
246
|
-
}
|
|
247
214
|
export declare namespace PBUiTransform {
|
|
248
215
|
function encode(message: PBUiTransform, writer?: _m0.Writer): _m0.Writer;
|
|
249
216
|
function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiTransform;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PBUiTransform = exports.
|
|
6
|
+
exports.PBUiTransform = exports.PointerFilterMode = exports.YGEdge = exports.YGDisplay = exports.YGOverflow = exports.YGJustify = exports.YGWrap = exports.YGFlexDirection = exports.YGUnit = exports.YGAlign = exports.YGPositionType = exports.protobufPackage = void 0;
|
|
7
7
|
exports.yGPositionTypeFromJSON = yGPositionTypeFromJSON;
|
|
8
8
|
exports.yGPositionTypeToJSON = yGPositionTypeToJSON;
|
|
9
9
|
exports.yGAlignFromJSON = yGAlignFromJSON;
|
|
@@ -24,12 +24,9 @@ exports.yGEdgeFromJSON = yGEdgeFromJSON;
|
|
|
24
24
|
exports.yGEdgeToJSON = yGEdgeToJSON;
|
|
25
25
|
exports.pointerFilterModeFromJSON = pointerFilterModeFromJSON;
|
|
26
26
|
exports.pointerFilterModeToJSON = pointerFilterModeToJSON;
|
|
27
|
-
exports.showScrollBarFromJSON = showScrollBarFromJSON;
|
|
28
|
-
exports.showScrollBarToJSON = showScrollBarToJSON;
|
|
29
27
|
/* eslint-disable */
|
|
30
28
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
31
29
|
const colors_gen_1 = require("../../common/colors.gen");
|
|
32
|
-
const vectors_gen_1 = require("../../common/vectors.gen");
|
|
33
30
|
exports.protobufPackage = "decentraland.sdk.components";
|
|
34
31
|
var YGPositionType;
|
|
35
32
|
(function (YGPositionType) {
|
|
@@ -479,131 +476,6 @@ function pointerFilterModeToJSON(object) {
|
|
|
479
476
|
return "UNRECOGNIZED";
|
|
480
477
|
}
|
|
481
478
|
}
|
|
482
|
-
var ShowScrollBar;
|
|
483
|
-
(function (ShowScrollBar) {
|
|
484
|
-
ShowScrollBar[ShowScrollBar["SSB_BOTH"] = 0] = "SSB_BOTH";
|
|
485
|
-
ShowScrollBar[ShowScrollBar["SSB_ONLY_VERTICAL"] = 1] = "SSB_ONLY_VERTICAL";
|
|
486
|
-
ShowScrollBar[ShowScrollBar["SSB_ONLY_HORIZONTAL"] = 2] = "SSB_ONLY_HORIZONTAL";
|
|
487
|
-
ShowScrollBar[ShowScrollBar["SSB_HIDDEN"] = 3] = "SSB_HIDDEN";
|
|
488
|
-
ShowScrollBar[ShowScrollBar["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
489
|
-
})(ShowScrollBar || (exports.ShowScrollBar = ShowScrollBar = {}));
|
|
490
|
-
function showScrollBarFromJSON(object) {
|
|
491
|
-
switch (object) {
|
|
492
|
-
case 0:
|
|
493
|
-
case "SSB_BOTH":
|
|
494
|
-
return ShowScrollBar.SSB_BOTH;
|
|
495
|
-
case 1:
|
|
496
|
-
case "SSB_ONLY_VERTICAL":
|
|
497
|
-
return ShowScrollBar.SSB_ONLY_VERTICAL;
|
|
498
|
-
case 2:
|
|
499
|
-
case "SSB_ONLY_HORIZONTAL":
|
|
500
|
-
return ShowScrollBar.SSB_ONLY_HORIZONTAL;
|
|
501
|
-
case 3:
|
|
502
|
-
case "SSB_HIDDEN":
|
|
503
|
-
return ShowScrollBar.SSB_HIDDEN;
|
|
504
|
-
case -1:
|
|
505
|
-
case "UNRECOGNIZED":
|
|
506
|
-
default:
|
|
507
|
-
return ShowScrollBar.UNRECOGNIZED;
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
function showScrollBarToJSON(object) {
|
|
511
|
-
switch (object) {
|
|
512
|
-
case ShowScrollBar.SSB_BOTH:
|
|
513
|
-
return "SSB_BOTH";
|
|
514
|
-
case ShowScrollBar.SSB_ONLY_VERTICAL:
|
|
515
|
-
return "SSB_ONLY_VERTICAL";
|
|
516
|
-
case ShowScrollBar.SSB_ONLY_HORIZONTAL:
|
|
517
|
-
return "SSB_ONLY_HORIZONTAL";
|
|
518
|
-
case ShowScrollBar.SSB_HIDDEN:
|
|
519
|
-
return "SSB_HIDDEN";
|
|
520
|
-
case ShowScrollBar.UNRECOGNIZED:
|
|
521
|
-
default:
|
|
522
|
-
return "UNRECOGNIZED";
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
function createBaseScrollPositionValue() {
|
|
526
|
-
return { value: undefined };
|
|
527
|
-
}
|
|
528
|
-
var ScrollPositionValue;
|
|
529
|
-
(function (ScrollPositionValue) {
|
|
530
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
531
|
-
var _a;
|
|
532
|
-
switch ((_a = message.value) === null || _a === void 0 ? void 0 : _a.$case) {
|
|
533
|
-
case "position":
|
|
534
|
-
vectors_gen_1.Vector2.encode(message.value.position, writer.uint32(10).fork()).ldelim();
|
|
535
|
-
break;
|
|
536
|
-
case "reference":
|
|
537
|
-
writer.uint32(18).string(message.value.reference);
|
|
538
|
-
break;
|
|
539
|
-
}
|
|
540
|
-
return writer;
|
|
541
|
-
}
|
|
542
|
-
ScrollPositionValue.encode = encode;
|
|
543
|
-
function decode(input, length) {
|
|
544
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
545
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
546
|
-
const message = createBaseScrollPositionValue();
|
|
547
|
-
while (reader.pos < end) {
|
|
548
|
-
const tag = reader.uint32();
|
|
549
|
-
switch (tag >>> 3) {
|
|
550
|
-
case 1:
|
|
551
|
-
if (tag !== 10) {
|
|
552
|
-
break;
|
|
553
|
-
}
|
|
554
|
-
message.value = { $case: "position", position: vectors_gen_1.Vector2.decode(reader, reader.uint32()) };
|
|
555
|
-
continue;
|
|
556
|
-
case 2:
|
|
557
|
-
if (tag !== 18) {
|
|
558
|
-
break;
|
|
559
|
-
}
|
|
560
|
-
message.value = { $case: "reference", reference: reader.string() };
|
|
561
|
-
continue;
|
|
562
|
-
}
|
|
563
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
564
|
-
break;
|
|
565
|
-
}
|
|
566
|
-
reader.skipType(tag & 7);
|
|
567
|
-
}
|
|
568
|
-
return message;
|
|
569
|
-
}
|
|
570
|
-
ScrollPositionValue.decode = decode;
|
|
571
|
-
function fromJSON(object) {
|
|
572
|
-
return {
|
|
573
|
-
value: isSet(object.position)
|
|
574
|
-
? { $case: "position", position: vectors_gen_1.Vector2.fromJSON(object.position) }
|
|
575
|
-
: isSet(object.reference)
|
|
576
|
-
? { $case: "reference", reference: String(object.reference) }
|
|
577
|
-
: undefined,
|
|
578
|
-
};
|
|
579
|
-
}
|
|
580
|
-
ScrollPositionValue.fromJSON = fromJSON;
|
|
581
|
-
function toJSON(message) {
|
|
582
|
-
var _a, _b, _c, _d, _e;
|
|
583
|
-
const obj = {};
|
|
584
|
-
((_a = message.value) === null || _a === void 0 ? void 0 : _a.$case) === "position" &&
|
|
585
|
-
(obj.position = ((_b = message.value) === null || _b === void 0 ? void 0 : _b.position) ? vectors_gen_1.Vector2.toJSON((_c = message.value) === null || _c === void 0 ? void 0 : _c.position) : undefined);
|
|
586
|
-
((_d = message.value) === null || _d === void 0 ? void 0 : _d.$case) === "reference" && (obj.reference = (_e = message.value) === null || _e === void 0 ? void 0 : _e.reference);
|
|
587
|
-
return obj;
|
|
588
|
-
}
|
|
589
|
-
ScrollPositionValue.toJSON = toJSON;
|
|
590
|
-
function create(base) {
|
|
591
|
-
return ScrollPositionValue.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
592
|
-
}
|
|
593
|
-
ScrollPositionValue.create = create;
|
|
594
|
-
function fromPartial(object) {
|
|
595
|
-
var _a, _b, _c, _d, _e, _f;
|
|
596
|
-
const message = createBaseScrollPositionValue();
|
|
597
|
-
if (((_a = object.value) === null || _a === void 0 ? void 0 : _a.$case) === "position" && ((_b = object.value) === null || _b === void 0 ? void 0 : _b.position) !== undefined && ((_c = object.value) === null || _c === void 0 ? void 0 : _c.position) !== null) {
|
|
598
|
-
message.value = { $case: "position", position: vectors_gen_1.Vector2.fromPartial(object.value.position) };
|
|
599
|
-
}
|
|
600
|
-
if (((_d = object.value) === null || _d === void 0 ? void 0 : _d.$case) === "reference" && ((_e = object.value) === null || _e === void 0 ? void 0 : _e.reference) !== undefined && ((_f = object.value) === null || _f === void 0 ? void 0 : _f.reference) !== null) {
|
|
601
|
-
message.value = { $case: "reference", reference: object.value.reference };
|
|
602
|
-
}
|
|
603
|
-
return message;
|
|
604
|
-
}
|
|
605
|
-
ScrollPositionValue.fromPartial = fromPartial;
|
|
606
|
-
})(ScrollPositionValue || (exports.ScrollPositionValue = ScrollPositionValue = {}));
|
|
607
479
|
function createBasePBUiTransform() {
|
|
608
480
|
return {
|
|
609
481
|
parent: 0,
|
|
@@ -679,9 +551,6 @@ function createBasePBUiTransform() {
|
|
|
679
551
|
borderLeftColor: undefined,
|
|
680
552
|
borderRightColor: undefined,
|
|
681
553
|
opacity: undefined,
|
|
682
|
-
elementId: undefined,
|
|
683
|
-
scrollPosition: undefined,
|
|
684
|
-
scrollVisible: undefined,
|
|
685
554
|
zIndex: undefined,
|
|
686
555
|
};
|
|
687
556
|
}
|
|
@@ -907,15 +776,6 @@ var PBUiTransform;
|
|
|
907
776
|
if (message.opacity !== undefined) {
|
|
908
777
|
writer.uint32(589).float(message.opacity);
|
|
909
778
|
}
|
|
910
|
-
if (message.elementId !== undefined) {
|
|
911
|
-
writer.uint32(594).string(message.elementId);
|
|
912
|
-
}
|
|
913
|
-
if (message.scrollPosition !== undefined) {
|
|
914
|
-
ScrollPositionValue.encode(message.scrollPosition, writer.uint32(602).fork()).ldelim();
|
|
915
|
-
}
|
|
916
|
-
if (message.scrollVisible !== undefined) {
|
|
917
|
-
writer.uint32(608).int32(message.scrollVisible);
|
|
918
|
-
}
|
|
919
779
|
if (message.zIndex !== undefined) {
|
|
920
780
|
writer.uint32(616).int32(message.zIndex);
|
|
921
781
|
}
|
|
@@ -1367,24 +1227,6 @@ var PBUiTransform;
|
|
|
1367
1227
|
}
|
|
1368
1228
|
message.opacity = reader.float();
|
|
1369
1229
|
continue;
|
|
1370
|
-
case 74:
|
|
1371
|
-
if (tag !== 594) {
|
|
1372
|
-
break;
|
|
1373
|
-
}
|
|
1374
|
-
message.elementId = reader.string();
|
|
1375
|
-
continue;
|
|
1376
|
-
case 75:
|
|
1377
|
-
if (tag !== 602) {
|
|
1378
|
-
break;
|
|
1379
|
-
}
|
|
1380
|
-
message.scrollPosition = ScrollPositionValue.decode(reader, reader.uint32());
|
|
1381
|
-
continue;
|
|
1382
|
-
case 76:
|
|
1383
|
-
if (tag !== 608) {
|
|
1384
|
-
break;
|
|
1385
|
-
}
|
|
1386
|
-
message.scrollVisible = reader.int32();
|
|
1387
|
-
continue;
|
|
1388
1230
|
case 77:
|
|
1389
1231
|
if (tag !== 616) {
|
|
1390
1232
|
break;
|
|
@@ -1489,9 +1331,6 @@ var PBUiTransform;
|
|
|
1489
1331
|
borderLeftColor: isSet(object.borderLeftColor) ? colors_gen_1.Color4.fromJSON(object.borderLeftColor) : undefined,
|
|
1490
1332
|
borderRightColor: isSet(object.borderRightColor) ? colors_gen_1.Color4.fromJSON(object.borderRightColor) : undefined,
|
|
1491
1333
|
opacity: isSet(object.opacity) ? Number(object.opacity) : undefined,
|
|
1492
|
-
elementId: isSet(object.elementId) ? String(object.elementId) : undefined,
|
|
1493
|
-
scrollPosition: isSet(object.scrollPosition) ? ScrollPositionValue.fromJSON(object.scrollPosition) : undefined,
|
|
1494
|
-
scrollVisible: isSet(object.scrollVisible) ? showScrollBarFromJSON(object.scrollVisible) : undefined,
|
|
1495
1334
|
zIndex: isSet(object.zIndex) ? Number(object.zIndex) : undefined,
|
|
1496
1335
|
};
|
|
1497
1336
|
}
|
|
@@ -1605,13 +1444,6 @@ var PBUiTransform;
|
|
|
1605
1444
|
message.borderRightColor !== undefined &&
|
|
1606
1445
|
(obj.borderRightColor = message.borderRightColor ? colors_gen_1.Color4.toJSON(message.borderRightColor) : undefined);
|
|
1607
1446
|
message.opacity !== undefined && (obj.opacity = message.opacity);
|
|
1608
|
-
message.elementId !== undefined && (obj.elementId = message.elementId);
|
|
1609
|
-
message.scrollPosition !== undefined &&
|
|
1610
|
-
(obj.scrollPosition = message.scrollPosition ? ScrollPositionValue.toJSON(message.scrollPosition) : undefined);
|
|
1611
|
-
message.scrollVisible !== undefined &&
|
|
1612
|
-
(obj.scrollVisible = message.scrollVisible !== undefined
|
|
1613
|
-
? showScrollBarToJSON(message.scrollVisible)
|
|
1614
|
-
: undefined);
|
|
1615
1447
|
message.zIndex !== undefined && (obj.zIndex = Math.round(message.zIndex));
|
|
1616
1448
|
return obj;
|
|
1617
1449
|
}
|
|
@@ -1621,7 +1453,7 @@ var PBUiTransform;
|
|
|
1621
1453
|
}
|
|
1622
1454
|
PBUiTransform.create = create;
|
|
1623
1455
|
function fromPartial(object) {
|
|
1624
|
-
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, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45
|
|
1456
|
+
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, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45;
|
|
1625
1457
|
const message = createBasePBUiTransform();
|
|
1626
1458
|
message.parent = (_a = object.parent) !== null && _a !== void 0 ? _a : 0;
|
|
1627
1459
|
message.rightOf = (_b = object.rightOf) !== null && _b !== void 0 ? _b : 0;
|
|
@@ -1704,12 +1536,7 @@ var PBUiTransform;
|
|
|
1704
1536
|
? colors_gen_1.Color4.fromPartial(object.borderRightColor)
|
|
1705
1537
|
: undefined;
|
|
1706
1538
|
message.opacity = (_44 = object.opacity) !== null && _44 !== void 0 ? _44 : undefined;
|
|
1707
|
-
message.
|
|
1708
|
-
message.scrollPosition = (object.scrollPosition !== undefined && object.scrollPosition !== null)
|
|
1709
|
-
? ScrollPositionValue.fromPartial(object.scrollPosition)
|
|
1710
|
-
: undefined;
|
|
1711
|
-
message.scrollVisible = (_46 = object.scrollVisible) !== null && _46 !== void 0 ? _46 : undefined;
|
|
1712
|
-
message.zIndex = (_47 = object.zIndex) !== null && _47 !== void 0 ? _47 : undefined;
|
|
1539
|
+
message.zIndex = (_45 = object.zIndex) !== null && _45 !== void 0 ? _45 : undefined;
|
|
1713
1540
|
return message;
|
|
1714
1541
|
}
|
|
1715
1542
|
PBUiTransform.fromPartial = fromPartial;
|