@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,369 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { BorderRect } from "../../common/border_rect.gen";
|
|
3
|
+
import { Color4 } from "../../common/colors.gen";
|
|
4
|
+
import { TextureUnion } from "../../common/texture.gen";
|
|
5
|
+
export declare const protobufPackage = "decentraland.sdk.components";
|
|
6
|
+
export declare enum BackgroundTextureMode {
|
|
7
|
+
/**
|
|
8
|
+
* NINE_SLICES - https://docs.unity3d.com/Manual/UIE-USS-SupportedProperties.html (Slicing section)
|
|
9
|
+
* https://forum.unity.com/threads/how-does-slicing-in-ui-tookkit-works.1235863/
|
|
10
|
+
* https://docs.unity3d.com/Manual/9SliceSprites.html
|
|
11
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice
|
|
12
|
+
*/
|
|
13
|
+
NINE_SLICES = 0,
|
|
14
|
+
/**
|
|
15
|
+
* CENTER - CENTER enables the texture to be rendered centered in relation to the
|
|
16
|
+
* element. If the element is smaller than the texture then the background
|
|
17
|
+
* should use the element as stencil to cut off the out-of-bounds area
|
|
18
|
+
*/
|
|
19
|
+
CENTER = 1,
|
|
20
|
+
/**
|
|
21
|
+
* STRETCH - STRETCH enables the texture to cover all the area of the container,
|
|
22
|
+
* adopting its aspect ratio.
|
|
23
|
+
*/
|
|
24
|
+
STRETCH = 2,
|
|
25
|
+
UNRECOGNIZED = -1
|
|
26
|
+
}
|
|
27
|
+
export declare function backgroundTextureModeFromJSON(object: any): BackgroundTextureMode;
|
|
28
|
+
export declare function backgroundTextureModeToJSON(object: BackgroundTextureMode): string;
|
|
29
|
+
export interface PBUiBackground {
|
|
30
|
+
/** default=(1.0, 1.0, 1.0, 1.0), pixel = color * sample2D(texture, uv) */
|
|
31
|
+
color?: Color4 | undefined;
|
|
32
|
+
texture?: TextureUnion | undefined;
|
|
33
|
+
textureMode: BackgroundTextureMode;
|
|
34
|
+
/** default=(1/3, 1/3, 1/3, 1/3) */
|
|
35
|
+
textureSlices?: BorderRect | undefined;
|
|
36
|
+
/** default=[0,0,0,1,1,0,1,0]: starting from bottom-left vertex clock-wise */
|
|
37
|
+
uvs: number[];
|
|
38
|
+
}
|
|
39
|
+
export declare const PBUiBackground: {
|
|
40
|
+
encode(message: PBUiBackground, writer?: _m0.Writer): _m0.Writer;
|
|
41
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiBackground;
|
|
42
|
+
fromJSON(object: any): PBUiBackground;
|
|
43
|
+
toJSON(message: PBUiBackground): unknown;
|
|
44
|
+
create<I extends {
|
|
45
|
+
color?: {
|
|
46
|
+
r?: number | undefined;
|
|
47
|
+
g?: number | undefined;
|
|
48
|
+
b?: number | undefined;
|
|
49
|
+
a?: number | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
texture?: {
|
|
52
|
+
tex?: ({
|
|
53
|
+
texture?: {
|
|
54
|
+
src?: string | undefined;
|
|
55
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
56
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
} & {
|
|
59
|
+
$case: "texture";
|
|
60
|
+
}) | ({
|
|
61
|
+
avatarTexture?: {
|
|
62
|
+
userId?: string | undefined;
|
|
63
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
64
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
} & {
|
|
67
|
+
$case: "avatarTexture";
|
|
68
|
+
}) | ({
|
|
69
|
+
videoTexture?: {
|
|
70
|
+
videoPlayerEntity?: number | undefined;
|
|
71
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
72
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
73
|
+
} | undefined;
|
|
74
|
+
} & {
|
|
75
|
+
$case: "videoTexture";
|
|
76
|
+
}) | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
textureMode?: BackgroundTextureMode | undefined;
|
|
79
|
+
textureSlices?: {
|
|
80
|
+
top?: number | undefined;
|
|
81
|
+
left?: number | undefined;
|
|
82
|
+
right?: number | undefined;
|
|
83
|
+
bottom?: number | undefined;
|
|
84
|
+
} | undefined;
|
|
85
|
+
uvs?: number[] | undefined;
|
|
86
|
+
} & {
|
|
87
|
+
color?: ({
|
|
88
|
+
r?: number | undefined;
|
|
89
|
+
g?: number | undefined;
|
|
90
|
+
b?: number | undefined;
|
|
91
|
+
a?: number | undefined;
|
|
92
|
+
} & {
|
|
93
|
+
r?: number | undefined;
|
|
94
|
+
g?: number | undefined;
|
|
95
|
+
b?: number | undefined;
|
|
96
|
+
a?: number | undefined;
|
|
97
|
+
} & { [K in Exclude<keyof I["color"], keyof Color4>]: never; }) | undefined;
|
|
98
|
+
texture?: ({
|
|
99
|
+
tex?: ({
|
|
100
|
+
texture?: {
|
|
101
|
+
src?: string | undefined;
|
|
102
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
103
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
104
|
+
} | undefined;
|
|
105
|
+
} & {
|
|
106
|
+
$case: "texture";
|
|
107
|
+
}) | ({
|
|
108
|
+
avatarTexture?: {
|
|
109
|
+
userId?: string | undefined;
|
|
110
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
111
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
112
|
+
} | undefined;
|
|
113
|
+
} & {
|
|
114
|
+
$case: "avatarTexture";
|
|
115
|
+
}) | ({
|
|
116
|
+
videoTexture?: {
|
|
117
|
+
videoPlayerEntity?: number | undefined;
|
|
118
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
119
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
} & {
|
|
122
|
+
$case: "videoTexture";
|
|
123
|
+
}) | undefined;
|
|
124
|
+
} & {
|
|
125
|
+
tex?: ({
|
|
126
|
+
texture?: {
|
|
127
|
+
src?: string | undefined;
|
|
128
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
129
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
130
|
+
} | undefined;
|
|
131
|
+
} & {
|
|
132
|
+
$case: "texture";
|
|
133
|
+
} & {
|
|
134
|
+
texture?: ({
|
|
135
|
+
src?: string | undefined;
|
|
136
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
137
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
138
|
+
} & {
|
|
139
|
+
src?: string | undefined;
|
|
140
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
141
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
142
|
+
} & { [K_1 in Exclude<keyof I["texture"]["tex"]["texture"], keyof import("../../common/texture.gen").Texture>]: never; }) | undefined;
|
|
143
|
+
$case: "texture";
|
|
144
|
+
} & { [K_2 in Exclude<keyof I["texture"]["tex"], "$case" | "texture">]: never; }) | ({
|
|
145
|
+
avatarTexture?: {
|
|
146
|
+
userId?: string | undefined;
|
|
147
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
148
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
149
|
+
} | undefined;
|
|
150
|
+
} & {
|
|
151
|
+
$case: "avatarTexture";
|
|
152
|
+
} & {
|
|
153
|
+
avatarTexture?: ({
|
|
154
|
+
userId?: string | undefined;
|
|
155
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
156
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
157
|
+
} & {
|
|
158
|
+
userId?: string | undefined;
|
|
159
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
160
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
161
|
+
} & { [K_3 in Exclude<keyof I["texture"]["tex"]["avatarTexture"], keyof import("../../common/texture.gen").AvatarTexture>]: never; }) | undefined;
|
|
162
|
+
$case: "avatarTexture";
|
|
163
|
+
} & { [K_4 in Exclude<keyof I["texture"]["tex"], "$case" | "avatarTexture">]: never; }) | ({
|
|
164
|
+
videoTexture?: {
|
|
165
|
+
videoPlayerEntity?: number | undefined;
|
|
166
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
167
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
168
|
+
} | undefined;
|
|
169
|
+
} & {
|
|
170
|
+
$case: "videoTexture";
|
|
171
|
+
} & {
|
|
172
|
+
videoTexture?: ({
|
|
173
|
+
videoPlayerEntity?: number | undefined;
|
|
174
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
175
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
176
|
+
} & {
|
|
177
|
+
videoPlayerEntity?: number | undefined;
|
|
178
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
179
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
180
|
+
} & { [K_5 in Exclude<keyof I["texture"]["tex"]["videoTexture"], keyof import("../../common/texture.gen").VideoTexture>]: never; }) | undefined;
|
|
181
|
+
$case: "videoTexture";
|
|
182
|
+
} & { [K_6 in Exclude<keyof I["texture"]["tex"], "$case" | "videoTexture">]: never; }) | undefined;
|
|
183
|
+
} & { [K_7 in Exclude<keyof I["texture"], "tex">]: never; }) | undefined;
|
|
184
|
+
textureMode?: BackgroundTextureMode | undefined;
|
|
185
|
+
textureSlices?: ({
|
|
186
|
+
top?: number | undefined;
|
|
187
|
+
left?: number | undefined;
|
|
188
|
+
right?: number | undefined;
|
|
189
|
+
bottom?: number | undefined;
|
|
190
|
+
} & {
|
|
191
|
+
top?: number | undefined;
|
|
192
|
+
left?: number | undefined;
|
|
193
|
+
right?: number | undefined;
|
|
194
|
+
bottom?: number | undefined;
|
|
195
|
+
} & { [K_8 in Exclude<keyof I["textureSlices"], keyof BorderRect>]: never; }) | undefined;
|
|
196
|
+
uvs?: (number[] & number[] & { [K_9 in Exclude<keyof I["uvs"], keyof number[]>]: never; }) | undefined;
|
|
197
|
+
} & { [K_10 in Exclude<keyof I, keyof PBUiBackground>]: never; }>(base?: I | undefined): PBUiBackground;
|
|
198
|
+
fromPartial<I_1 extends {
|
|
199
|
+
color?: {
|
|
200
|
+
r?: number | undefined;
|
|
201
|
+
g?: number | undefined;
|
|
202
|
+
b?: number | undefined;
|
|
203
|
+
a?: number | undefined;
|
|
204
|
+
} | undefined;
|
|
205
|
+
texture?: {
|
|
206
|
+
tex?: ({
|
|
207
|
+
texture?: {
|
|
208
|
+
src?: string | undefined;
|
|
209
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
210
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
211
|
+
} | undefined;
|
|
212
|
+
} & {
|
|
213
|
+
$case: "texture";
|
|
214
|
+
}) | ({
|
|
215
|
+
avatarTexture?: {
|
|
216
|
+
userId?: string | undefined;
|
|
217
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
218
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
219
|
+
} | undefined;
|
|
220
|
+
} & {
|
|
221
|
+
$case: "avatarTexture";
|
|
222
|
+
}) | ({
|
|
223
|
+
videoTexture?: {
|
|
224
|
+
videoPlayerEntity?: number | undefined;
|
|
225
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
226
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
227
|
+
} | undefined;
|
|
228
|
+
} & {
|
|
229
|
+
$case: "videoTexture";
|
|
230
|
+
}) | undefined;
|
|
231
|
+
} | undefined;
|
|
232
|
+
textureMode?: BackgroundTextureMode | undefined;
|
|
233
|
+
textureSlices?: {
|
|
234
|
+
top?: number | undefined;
|
|
235
|
+
left?: number | undefined;
|
|
236
|
+
right?: number | undefined;
|
|
237
|
+
bottom?: number | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
uvs?: number[] | undefined;
|
|
240
|
+
} & {
|
|
241
|
+
color?: ({
|
|
242
|
+
r?: number | undefined;
|
|
243
|
+
g?: number | undefined;
|
|
244
|
+
b?: number | undefined;
|
|
245
|
+
a?: number | undefined;
|
|
246
|
+
} & {
|
|
247
|
+
r?: number | undefined;
|
|
248
|
+
g?: number | undefined;
|
|
249
|
+
b?: number | undefined;
|
|
250
|
+
a?: number | undefined;
|
|
251
|
+
} & { [K_11 in Exclude<keyof I_1["color"], keyof Color4>]: never; }) | undefined;
|
|
252
|
+
texture?: ({
|
|
253
|
+
tex?: ({
|
|
254
|
+
texture?: {
|
|
255
|
+
src?: string | undefined;
|
|
256
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
257
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
258
|
+
} | undefined;
|
|
259
|
+
} & {
|
|
260
|
+
$case: "texture";
|
|
261
|
+
}) | ({
|
|
262
|
+
avatarTexture?: {
|
|
263
|
+
userId?: string | undefined;
|
|
264
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
265
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
266
|
+
} | undefined;
|
|
267
|
+
} & {
|
|
268
|
+
$case: "avatarTexture";
|
|
269
|
+
}) | ({
|
|
270
|
+
videoTexture?: {
|
|
271
|
+
videoPlayerEntity?: number | undefined;
|
|
272
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
273
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
274
|
+
} | undefined;
|
|
275
|
+
} & {
|
|
276
|
+
$case: "videoTexture";
|
|
277
|
+
}) | undefined;
|
|
278
|
+
} & {
|
|
279
|
+
tex?: ({
|
|
280
|
+
texture?: {
|
|
281
|
+
src?: string | undefined;
|
|
282
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
283
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
284
|
+
} | undefined;
|
|
285
|
+
} & {
|
|
286
|
+
$case: "texture";
|
|
287
|
+
} & {
|
|
288
|
+
texture?: ({
|
|
289
|
+
src?: string | undefined;
|
|
290
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
291
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
292
|
+
} & {
|
|
293
|
+
src?: string | undefined;
|
|
294
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
295
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
296
|
+
} & { [K_12 in Exclude<keyof I_1["texture"]["tex"]["texture"], keyof import("../../common/texture.gen").Texture>]: never; }) | undefined;
|
|
297
|
+
$case: "texture";
|
|
298
|
+
} & { [K_13 in Exclude<keyof I_1["texture"]["tex"], "$case" | "texture">]: never; }) | ({
|
|
299
|
+
avatarTexture?: {
|
|
300
|
+
userId?: string | undefined;
|
|
301
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
302
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
303
|
+
} | undefined;
|
|
304
|
+
} & {
|
|
305
|
+
$case: "avatarTexture";
|
|
306
|
+
} & {
|
|
307
|
+
avatarTexture?: ({
|
|
308
|
+
userId?: string | undefined;
|
|
309
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
310
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
311
|
+
} & {
|
|
312
|
+
userId?: string | undefined;
|
|
313
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
314
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
315
|
+
} & { [K_14 in Exclude<keyof I_1["texture"]["tex"]["avatarTexture"], keyof import("../../common/texture.gen").AvatarTexture>]: never; }) | undefined;
|
|
316
|
+
$case: "avatarTexture";
|
|
317
|
+
} & { [K_15 in Exclude<keyof I_1["texture"]["tex"], "$case" | "avatarTexture">]: never; }) | ({
|
|
318
|
+
videoTexture?: {
|
|
319
|
+
videoPlayerEntity?: number | undefined;
|
|
320
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
321
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
322
|
+
} | undefined;
|
|
323
|
+
} & {
|
|
324
|
+
$case: "videoTexture";
|
|
325
|
+
} & {
|
|
326
|
+
videoTexture?: ({
|
|
327
|
+
videoPlayerEntity?: number | undefined;
|
|
328
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
329
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
330
|
+
} & {
|
|
331
|
+
videoPlayerEntity?: number | undefined;
|
|
332
|
+
wrapMode?: import("../../common/texture.gen").TextureWrapMode | undefined;
|
|
333
|
+
filterMode?: import("../../common/texture.gen").TextureFilterMode | undefined;
|
|
334
|
+
} & { [K_16 in Exclude<keyof I_1["texture"]["tex"]["videoTexture"], keyof import("../../common/texture.gen").VideoTexture>]: never; }) | undefined;
|
|
335
|
+
$case: "videoTexture";
|
|
336
|
+
} & { [K_17 in Exclude<keyof I_1["texture"]["tex"], "$case" | "videoTexture">]: never; }) | undefined;
|
|
337
|
+
} & { [K_18 in Exclude<keyof I_1["texture"], "tex">]: never; }) | undefined;
|
|
338
|
+
textureMode?: BackgroundTextureMode | undefined;
|
|
339
|
+
textureSlices?: ({
|
|
340
|
+
top?: number | undefined;
|
|
341
|
+
left?: number | undefined;
|
|
342
|
+
right?: number | undefined;
|
|
343
|
+
bottom?: number | undefined;
|
|
344
|
+
} & {
|
|
345
|
+
top?: number | undefined;
|
|
346
|
+
left?: number | undefined;
|
|
347
|
+
right?: number | undefined;
|
|
348
|
+
bottom?: number | undefined;
|
|
349
|
+
} & { [K_19 in Exclude<keyof I_1["textureSlices"], keyof BorderRect>]: never; }) | undefined;
|
|
350
|
+
uvs?: (number[] & number[] & { [K_20 in Exclude<keyof I_1["uvs"], keyof number[]>]: never; }) | undefined;
|
|
351
|
+
} & { [K_21 in Exclude<keyof I_1, keyof PBUiBackground>]: never; }>(object: I_1): PBUiBackground;
|
|
352
|
+
};
|
|
353
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
354
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
355
|
+
$case: string;
|
|
356
|
+
} ? {
|
|
357
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
358
|
+
} & {
|
|
359
|
+
$case: T["$case"];
|
|
360
|
+
} : T extends {} ? {
|
|
361
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
362
|
+
} : Partial<T>;
|
|
363
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
364
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
365
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
366
|
+
} & {
|
|
367
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
368
|
+
};
|
|
369
|
+
export {};
|
|
@@ -0,0 +1,175 @@
|
|
|
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.PBUiBackground = exports.backgroundTextureModeToJSON = exports.backgroundTextureModeFromJSON = exports.BackgroundTextureMode = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
const border_rect_gen_1 = require("../../common/border_rect.gen");
|
|
10
|
+
const colors_gen_1 = require("../../common/colors.gen");
|
|
11
|
+
const texture_gen_1 = require("../../common/texture.gen");
|
|
12
|
+
exports.protobufPackage = "decentraland.sdk.components";
|
|
13
|
+
var BackgroundTextureMode;
|
|
14
|
+
(function (BackgroundTextureMode) {
|
|
15
|
+
/**
|
|
16
|
+
* NINE_SLICES - https://docs.unity3d.com/Manual/UIE-USS-SupportedProperties.html (Slicing section)
|
|
17
|
+
* https://forum.unity.com/threads/how-does-slicing-in-ui-tookkit-works.1235863/
|
|
18
|
+
* https://docs.unity3d.com/Manual/9SliceSprites.html
|
|
19
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice
|
|
20
|
+
*/
|
|
21
|
+
BackgroundTextureMode[BackgroundTextureMode["NINE_SLICES"] = 0] = "NINE_SLICES";
|
|
22
|
+
/**
|
|
23
|
+
* CENTER - CENTER enables the texture to be rendered centered in relation to the
|
|
24
|
+
* element. If the element is smaller than the texture then the background
|
|
25
|
+
* should use the element as stencil to cut off the out-of-bounds area
|
|
26
|
+
*/
|
|
27
|
+
BackgroundTextureMode[BackgroundTextureMode["CENTER"] = 1] = "CENTER";
|
|
28
|
+
/**
|
|
29
|
+
* STRETCH - STRETCH enables the texture to cover all the area of the container,
|
|
30
|
+
* adopting its aspect ratio.
|
|
31
|
+
*/
|
|
32
|
+
BackgroundTextureMode[BackgroundTextureMode["STRETCH"] = 2] = "STRETCH";
|
|
33
|
+
BackgroundTextureMode[BackgroundTextureMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
34
|
+
})(BackgroundTextureMode = exports.BackgroundTextureMode || (exports.BackgroundTextureMode = {}));
|
|
35
|
+
function backgroundTextureModeFromJSON(object) {
|
|
36
|
+
switch (object) {
|
|
37
|
+
case 0:
|
|
38
|
+
case "NINE_SLICES":
|
|
39
|
+
return BackgroundTextureMode.NINE_SLICES;
|
|
40
|
+
case 1:
|
|
41
|
+
case "CENTER":
|
|
42
|
+
return BackgroundTextureMode.CENTER;
|
|
43
|
+
case 2:
|
|
44
|
+
case "STRETCH":
|
|
45
|
+
return BackgroundTextureMode.STRETCH;
|
|
46
|
+
case -1:
|
|
47
|
+
case "UNRECOGNIZED":
|
|
48
|
+
default:
|
|
49
|
+
return BackgroundTextureMode.UNRECOGNIZED;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.backgroundTextureModeFromJSON = backgroundTextureModeFromJSON;
|
|
53
|
+
function backgroundTextureModeToJSON(object) {
|
|
54
|
+
switch (object) {
|
|
55
|
+
case BackgroundTextureMode.NINE_SLICES:
|
|
56
|
+
return "NINE_SLICES";
|
|
57
|
+
case BackgroundTextureMode.CENTER:
|
|
58
|
+
return "CENTER";
|
|
59
|
+
case BackgroundTextureMode.STRETCH:
|
|
60
|
+
return "STRETCH";
|
|
61
|
+
case BackgroundTextureMode.UNRECOGNIZED:
|
|
62
|
+
default:
|
|
63
|
+
return "UNRECOGNIZED";
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.backgroundTextureModeToJSON = backgroundTextureModeToJSON;
|
|
67
|
+
function createBasePBUiBackground() {
|
|
68
|
+
return { color: undefined, texture: undefined, textureMode: 0, textureSlices: undefined, uvs: [] };
|
|
69
|
+
}
|
|
70
|
+
exports.PBUiBackground = {
|
|
71
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
72
|
+
if (message.color !== undefined) {
|
|
73
|
+
colors_gen_1.Color4.encode(message.color, writer.uint32(10).fork()).ldelim();
|
|
74
|
+
}
|
|
75
|
+
if (message.texture !== undefined) {
|
|
76
|
+
texture_gen_1.TextureUnion.encode(message.texture, writer.uint32(18).fork()).ldelim();
|
|
77
|
+
}
|
|
78
|
+
if (message.textureMode !== 0) {
|
|
79
|
+
writer.uint32(24).int32(message.textureMode);
|
|
80
|
+
}
|
|
81
|
+
if (message.textureSlices !== undefined) {
|
|
82
|
+
border_rect_gen_1.BorderRect.encode(message.textureSlices, writer.uint32(34).fork()).ldelim();
|
|
83
|
+
}
|
|
84
|
+
writer.uint32(42).fork();
|
|
85
|
+
for (const v of message.uvs) {
|
|
86
|
+
writer.float(v);
|
|
87
|
+
}
|
|
88
|
+
writer.ldelim();
|
|
89
|
+
return writer;
|
|
90
|
+
},
|
|
91
|
+
decode(input, length) {
|
|
92
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
93
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
94
|
+
const message = createBasePBUiBackground();
|
|
95
|
+
while (reader.pos < end) {
|
|
96
|
+
const tag = reader.uint32();
|
|
97
|
+
switch (tag >>> 3) {
|
|
98
|
+
case 1:
|
|
99
|
+
message.color = colors_gen_1.Color4.decode(reader, reader.uint32());
|
|
100
|
+
break;
|
|
101
|
+
case 2:
|
|
102
|
+
message.texture = texture_gen_1.TextureUnion.decode(reader, reader.uint32());
|
|
103
|
+
break;
|
|
104
|
+
case 3:
|
|
105
|
+
message.textureMode = reader.int32();
|
|
106
|
+
break;
|
|
107
|
+
case 4:
|
|
108
|
+
message.textureSlices = border_rect_gen_1.BorderRect.decode(reader, reader.uint32());
|
|
109
|
+
break;
|
|
110
|
+
case 5:
|
|
111
|
+
if ((tag & 7) === 2) {
|
|
112
|
+
const end2 = reader.uint32() + reader.pos;
|
|
113
|
+
while (reader.pos < end2) {
|
|
114
|
+
message.uvs.push(reader.float());
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
message.uvs.push(reader.float());
|
|
119
|
+
}
|
|
120
|
+
break;
|
|
121
|
+
default:
|
|
122
|
+
reader.skipType(tag & 7);
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return message;
|
|
127
|
+
},
|
|
128
|
+
fromJSON(object) {
|
|
129
|
+
return {
|
|
130
|
+
color: isSet(object.color) ? colors_gen_1.Color4.fromJSON(object.color) : undefined,
|
|
131
|
+
texture: isSet(object.texture) ? texture_gen_1.TextureUnion.fromJSON(object.texture) : undefined,
|
|
132
|
+
textureMode: isSet(object.textureMode) ? backgroundTextureModeFromJSON(object.textureMode) : 0,
|
|
133
|
+
textureSlices: isSet(object.textureSlices) ? border_rect_gen_1.BorderRect.fromJSON(object.textureSlices) : undefined,
|
|
134
|
+
uvs: Array.isArray(object === null || object === void 0 ? void 0 : object.uvs) ? object.uvs.map((e) => Number(e)) : [],
|
|
135
|
+
};
|
|
136
|
+
},
|
|
137
|
+
toJSON(message) {
|
|
138
|
+
const obj = {};
|
|
139
|
+
message.color !== undefined && (obj.color = message.color ? colors_gen_1.Color4.toJSON(message.color) : undefined);
|
|
140
|
+
message.texture !== undefined && (obj.texture = message.texture ? texture_gen_1.TextureUnion.toJSON(message.texture) : undefined);
|
|
141
|
+
message.textureMode !== undefined && (obj.textureMode = backgroundTextureModeToJSON(message.textureMode));
|
|
142
|
+
message.textureSlices !== undefined &&
|
|
143
|
+
(obj.textureSlices = message.textureSlices ? border_rect_gen_1.BorderRect.toJSON(message.textureSlices) : undefined);
|
|
144
|
+
if (message.uvs) {
|
|
145
|
+
obj.uvs = message.uvs.map((e) => e);
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
obj.uvs = [];
|
|
149
|
+
}
|
|
150
|
+
return obj;
|
|
151
|
+
},
|
|
152
|
+
create(base) {
|
|
153
|
+
return exports.PBUiBackground.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
154
|
+
},
|
|
155
|
+
fromPartial(object) {
|
|
156
|
+
var _a, _b;
|
|
157
|
+
const message = createBasePBUiBackground();
|
|
158
|
+
message.color = (object.color !== undefined && object.color !== null)
|
|
159
|
+
? colors_gen_1.Color4.fromPartial(object.color)
|
|
160
|
+
: undefined;
|
|
161
|
+
message.texture = (object.texture !== undefined && object.texture !== null)
|
|
162
|
+
? texture_gen_1.TextureUnion.fromPartial(object.texture)
|
|
163
|
+
: undefined;
|
|
164
|
+
message.textureMode = (_a = object.textureMode) !== null && _a !== void 0 ? _a : 0;
|
|
165
|
+
message.textureSlices = (object.textureSlices !== undefined && object.textureSlices !== null)
|
|
166
|
+
? border_rect_gen_1.BorderRect.fromPartial(object.textureSlices)
|
|
167
|
+
: undefined;
|
|
168
|
+
message.uvs = ((_b = object.uvs) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
169
|
+
return message;
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
function isSet(value) {
|
|
173
|
+
return value !== null && value !== undefined;
|
|
174
|
+
}
|
|
175
|
+
//# sourceMappingURL=ui_background.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui_background.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/ui_background.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,kEAA0D;AAC1D,wDAAiD;AACjD,0DAAwD;AAE3C,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAE7D,IAAY,qBAoBX;AApBD,WAAY,qBAAqB;IAC/B;;;;;OAKG;IACH,+EAAe,CAAA;IACf;;;;OAIG;IACH,qEAAU,CAAA;IACV;;;OAGG;IACH,uEAAW,CAAA;IACX,kFAAiB,CAAA;AACnB,CAAC,EApBW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAoBhC;AAED,SAAgB,6BAA6B,CAAC,MAAW;IACvD,QAAQ,MAAM,EAAE;QACd,KAAK,CAAC,CAAC;QACP,KAAK,aAAa;YAChB,OAAO,qBAAqB,CAAC,WAAW,CAAC;QAC3C,KAAK,CAAC,CAAC;QACP,KAAK,QAAQ;YACX,OAAO,qBAAqB,CAAC,MAAM,CAAC;QACtC,KAAK,CAAC,CAAC;QACP,KAAK,SAAS;YACZ,OAAO,qBAAqB,CAAC,OAAO,CAAC;QACvC,KAAK,CAAC,CAAC,CAAC;QACR,KAAK,cAAc,CAAC;QACpB;YACE,OAAO,qBAAq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ACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Color4 } from "../../common/colors.gen";
|
|
3
|
+
import { Font, TextAlignMode } from "./common/texts.gen";
|
|
4
|
+
export declare const protobufPackage = "decentraland.sdk.components";
|
|
5
|
+
export interface PBUiDropdown {
|
|
6
|
+
acceptEmpty: boolean;
|
|
7
|
+
emptyLabel?: string | undefined;
|
|
8
|
+
options: string[];
|
|
9
|
+
/** default=null when accept_empty==true; default=0 when accept_empty==false */
|
|
10
|
+
selectedIndex?: number | undefined;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
/** default=(0.0,0.0,0.0,1.0) */
|
|
13
|
+
color?: Color4 | undefined;
|
|
14
|
+
/** default='center' */
|
|
15
|
+
textAlign?: TextAlignMode | undefined;
|
|
16
|
+
/** default=0 */
|
|
17
|
+
font?: Font | undefined;
|
|
18
|
+
/** default=10 */
|
|
19
|
+
fontSize?: number | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare const PBUiDropdown: {
|
|
22
|
+
encode(message: PBUiDropdown, writer?: _m0.Writer): _m0.Writer;
|
|
23
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiDropdown;
|
|
24
|
+
fromJSON(object: any): PBUiDropdown;
|
|
25
|
+
toJSON(message: PBUiDropdown): unknown;
|
|
26
|
+
create<I extends {
|
|
27
|
+
acceptEmpty?: boolean | undefined;
|
|
28
|
+
emptyLabel?: string | undefined;
|
|
29
|
+
options?: string[] | undefined;
|
|
30
|
+
selectedIndex?: number | undefined;
|
|
31
|
+
disabled?: boolean | undefined;
|
|
32
|
+
color?: {
|
|
33
|
+
r?: number | undefined;
|
|
34
|
+
g?: number | undefined;
|
|
35
|
+
b?: number | undefined;
|
|
36
|
+
a?: number | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
textAlign?: TextAlignMode | undefined;
|
|
39
|
+
font?: Font | undefined;
|
|
40
|
+
fontSize?: number | undefined;
|
|
41
|
+
} & {
|
|
42
|
+
acceptEmpty?: boolean | undefined;
|
|
43
|
+
emptyLabel?: string | undefined;
|
|
44
|
+
options?: (string[] & string[] & { [K in Exclude<keyof I["options"], keyof string[]>]: never; }) | undefined;
|
|
45
|
+
selectedIndex?: number | undefined;
|
|
46
|
+
disabled?: boolean | undefined;
|
|
47
|
+
color?: ({
|
|
48
|
+
r?: number | undefined;
|
|
49
|
+
g?: number | undefined;
|
|
50
|
+
b?: number | undefined;
|
|
51
|
+
a?: number | undefined;
|
|
52
|
+
} & {
|
|
53
|
+
r?: number | undefined;
|
|
54
|
+
g?: number | undefined;
|
|
55
|
+
b?: number | undefined;
|
|
56
|
+
a?: number | undefined;
|
|
57
|
+
} & { [K_1 in Exclude<keyof I["color"], keyof Color4>]: never; }) | undefined;
|
|
58
|
+
textAlign?: TextAlignMode | undefined;
|
|
59
|
+
font?: Font | undefined;
|
|
60
|
+
fontSize?: number | undefined;
|
|
61
|
+
} & { [K_2 in Exclude<keyof I, keyof PBUiDropdown>]: never; }>(base?: I | undefined): PBUiDropdown;
|
|
62
|
+
fromPartial<I_1 extends {
|
|
63
|
+
acceptEmpty?: boolean | undefined;
|
|
64
|
+
emptyLabel?: string | undefined;
|
|
65
|
+
options?: string[] | undefined;
|
|
66
|
+
selectedIndex?: number | undefined;
|
|
67
|
+
disabled?: boolean | undefined;
|
|
68
|
+
color?: {
|
|
69
|
+
r?: number | undefined;
|
|
70
|
+
g?: number | undefined;
|
|
71
|
+
b?: number | undefined;
|
|
72
|
+
a?: number | undefined;
|
|
73
|
+
} | undefined;
|
|
74
|
+
textAlign?: TextAlignMode | undefined;
|
|
75
|
+
font?: Font | undefined;
|
|
76
|
+
fontSize?: number | undefined;
|
|
77
|
+
} & {
|
|
78
|
+
acceptEmpty?: boolean | undefined;
|
|
79
|
+
emptyLabel?: string | undefined;
|
|
80
|
+
options?: (string[] & string[] & { [K_3 in Exclude<keyof I_1["options"], keyof string[]>]: never; }) | undefined;
|
|
81
|
+
selectedIndex?: number | undefined;
|
|
82
|
+
disabled?: boolean | undefined;
|
|
83
|
+
color?: ({
|
|
84
|
+
r?: number | undefined;
|
|
85
|
+
g?: number | undefined;
|
|
86
|
+
b?: number | undefined;
|
|
87
|
+
a?: number | undefined;
|
|
88
|
+
} & {
|
|
89
|
+
r?: number | undefined;
|
|
90
|
+
g?: number | undefined;
|
|
91
|
+
b?: number | undefined;
|
|
92
|
+
a?: number | undefined;
|
|
93
|
+
} & { [K_4 in Exclude<keyof I_1["color"], keyof Color4>]: never; }) | undefined;
|
|
94
|
+
textAlign?: TextAlignMode | undefined;
|
|
95
|
+
font?: Font | undefined;
|
|
96
|
+
fontSize?: number | undefined;
|
|
97
|
+
} & { [K_5 in Exclude<keyof I_1, keyof PBUiDropdown>]: never; }>(object: I_1): PBUiDropdown;
|
|
98
|
+
};
|
|
99
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
100
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
101
|
+
$case: string;
|
|
102
|
+
} ? {
|
|
103
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
104
|
+
} & {
|
|
105
|
+
$case: T["$case"];
|
|
106
|
+
} : T extends {} ? {
|
|
107
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
108
|
+
} : Partial<T>;
|
|
109
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
110
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
111
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
112
|
+
} & {
|
|
113
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
114
|
+
};
|
|
115
|
+
export {};
|