@dcl/sdk 7.0.0-3039764556.commit-d9e186e → 7.0.0-3040253589.commit-8782388
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.
@@ -5,7 +5,21 @@ option (ecs_component_id) = 1052;
|
|
5
5
|
|
6
6
|
import "common/Color3.proto";
|
7
7
|
|
8
|
+
enum TextAlign {
|
9
|
+
Center = 0;
|
10
|
+
Left = 1;
|
11
|
+
Right = 2;
|
12
|
+
}
|
13
|
+
|
14
|
+
enum Font {
|
15
|
+
LiberationSans = 0;
|
16
|
+
SansSerif = 1;
|
17
|
+
}
|
18
|
+
|
8
19
|
message PBUiText {
|
9
|
-
string
|
10
|
-
Color3
|
20
|
+
string value = 1;
|
21
|
+
optional Color3 color = 2; // default=(1.0,1.0,1.0)
|
22
|
+
optional TextAlign text_align = 3; // default='center'
|
23
|
+
optional Font font = 4; // default=0
|
24
|
+
optional int32 font_size = 5; // default=10
|
11
25
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk",
|
3
|
-
"version": "7.0.0-
|
3
|
+
"version": "7.0.0-3040253589.commit-8782388",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/src/index.js",
|
6
6
|
"typings": "dist/index.d.ts",
|
@@ -27,8 +27,8 @@
|
|
27
27
|
"src/cli/**/*.js"
|
28
28
|
],
|
29
29
|
"dependencies": {
|
30
|
-
"@dcl/amd": "6.11.7-
|
31
|
-
"@dcl/build-ecs": "6.11.7-
|
30
|
+
"@dcl/amd": "6.11.7-3040253589.commit-8782388",
|
31
|
+
"@dcl/build-ecs": "6.11.7-3040253589.commit-8782388",
|
32
32
|
"@dcl/kernel": "1.0.0-2994874542.commit-c3ae489",
|
33
33
|
"@dcl/posix": "^1.0.4",
|
34
34
|
"@dcl/schemas": "4.8.0",
|
@@ -38,5 +38,5 @@
|
|
38
38
|
"ignore": "^5.1.8"
|
39
39
|
},
|
40
40
|
"minCliVersion": "3.10.2",
|
41
|
-
"commit": "
|
41
|
+
"commit": "87823881fde5a1b044041c5a1a8fc4a8a7602d92"
|
42
42
|
}
|
package/types/ecs7/index.d.ts
CHANGED
@@ -558,6 +558,12 @@ declare type float = number;
|
|
558
558
|
/** @public */
|
559
559
|
declare type FloatArray = number[];
|
560
560
|
|
561
|
+
declare const enum Font {
|
562
|
+
LiberationSans = 0,
|
563
|
+
SansSerif = 1,
|
564
|
+
UNRECOGNIZED = -1
|
565
|
+
}
|
566
|
+
|
561
567
|
/** @public */
|
562
568
|
declare const GLTFShape: ComponentDefinition<ISchema<PBGLTFShape>, PBGLTFShape>;
|
563
569
|
|
@@ -2203,8 +2209,15 @@ declare interface PBTextShape {
|
|
2203
2209
|
}
|
2204
2210
|
|
2205
2211
|
declare interface PBUiText {
|
2206
|
-
|
2207
|
-
|
2212
|
+
value: string;
|
2213
|
+
/** default=(1.0,1.0,1.0) */
|
2214
|
+
color?: Color3 | undefined;
|
2215
|
+
/** default='center' */
|
2216
|
+
textAlign?: TextAlign | undefined;
|
2217
|
+
/** default=0 */
|
2218
|
+
font?: Font | undefined;
|
2219
|
+
/** default=10 */
|
2220
|
+
fontSize?: number | undefined;
|
2208
2221
|
}
|
2209
2222
|
|
2210
2223
|
declare interface PBUiTransform {
|
@@ -2702,6 +2715,13 @@ declare const SphereShape: ComponentDefinition<ISchema<PBSphereShape>, PBSphereS
|
|
2702
2715
|
*/
|
2703
2716
|
declare type SystemFn = (dt: number) => void;
|
2704
2717
|
|
2718
|
+
declare const enum TextAlign {
|
2719
|
+
Center = 0,
|
2720
|
+
Left = 1,
|
2721
|
+
Right = 2,
|
2722
|
+
UNRECOGNIZED = -1
|
2723
|
+
}
|
2724
|
+
|
2705
2725
|
/** @public */
|
2706
2726
|
declare const TextShape: ComponentDefinition<ISchema<PBTextShape>, PBTextShape>;
|
2707
2727
|
|