@dcl/ecs 7.5.3 → 7.5.4-9583437273.commit-b701277
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/generated/pb/decentraland/sdk/components/ui_text.gen.d.ts +10 -1
- package/dist/components/generated/pb/decentraland/sdk/components/ui_text.gen.js +25 -1
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/ui_text.gen.d.ts +10 -1
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/ui_text.gen.js +26 -2
- package/package.json +2 -2
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
import { Color4 } from "../../common/colors.gen";
|
|
3
3
|
import { Font, TextAlignMode } from "./common/texts.gen";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const enum TextWrap {
|
|
8
|
+
TW_WRAP = 0,
|
|
9
|
+
TW_NO_WRAP = 1
|
|
10
|
+
}
|
|
4
11
|
/**
|
|
5
12
|
* @public
|
|
6
13
|
*/
|
|
7
14
|
export interface PBUiText {
|
|
8
|
-
/** the text content */
|
|
15
|
+
/** the text content, tag <b> and <i> are supported */
|
|
9
16
|
value: string;
|
|
10
17
|
/** RGBA color (default: opaque white) */
|
|
11
18
|
color?: Color4 | undefined;
|
|
@@ -15,6 +22,8 @@ export interface PBUiText {
|
|
|
15
22
|
font?: Font | undefined;
|
|
16
23
|
/** size of the text (default: 10) */
|
|
17
24
|
fontSize?: number | undefined;
|
|
25
|
+
/** wrap text when the border is reached (default: TW_WRAP) */
|
|
26
|
+
textWrap?: TextWrap | undefined;
|
|
18
27
|
}
|
|
19
28
|
/**
|
|
20
29
|
* @public
|
|
@@ -2,8 +2,23 @@
|
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { Color4 } from "../../common/colors.gen";
|
|
4
4
|
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export var TextWrap;
|
|
9
|
+
(function (TextWrap) {
|
|
10
|
+
TextWrap[TextWrap["TW_WRAP"] = 0] = "TW_WRAP";
|
|
11
|
+
TextWrap[TextWrap["TW_NO_WRAP"] = 1] = "TW_NO_WRAP";
|
|
12
|
+
})(TextWrap || (TextWrap = {}));
|
|
5
13
|
function createBasePBUiText() {
|
|
6
|
-
return {
|
|
14
|
+
return {
|
|
15
|
+
value: "",
|
|
16
|
+
color: undefined,
|
|
17
|
+
textAlign: undefined,
|
|
18
|
+
font: undefined,
|
|
19
|
+
fontSize: undefined,
|
|
20
|
+
textWrap: undefined,
|
|
21
|
+
};
|
|
7
22
|
}
|
|
8
23
|
/**
|
|
9
24
|
* @public
|
|
@@ -26,6 +41,9 @@ export var PBUiText;
|
|
|
26
41
|
if (message.fontSize !== undefined) {
|
|
27
42
|
writer.uint32(40).int32(message.fontSize);
|
|
28
43
|
}
|
|
44
|
+
if (message.textWrap !== undefined) {
|
|
45
|
+
writer.uint32(48).int32(message.textWrap);
|
|
46
|
+
}
|
|
29
47
|
return writer;
|
|
30
48
|
}
|
|
31
49
|
PBUiText.encode = encode;
|
|
@@ -66,6 +84,12 @@ export var PBUiText;
|
|
|
66
84
|
}
|
|
67
85
|
message.fontSize = reader.int32();
|
|
68
86
|
continue;
|
|
87
|
+
case 6:
|
|
88
|
+
if (tag !== 48) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
message.textWrap = reader.int32();
|
|
92
|
+
continue;
|
|
69
93
|
}
|
|
70
94
|
if ((tag & 7) === 4 || tag === 0) {
|
|
71
95
|
break;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
import { Color4 } from "../../common/colors.gen";
|
|
3
3
|
import { Font, TextAlignMode } from "./common/texts.gen";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const enum TextWrap {
|
|
8
|
+
TW_WRAP = 0,
|
|
9
|
+
TW_NO_WRAP = 1
|
|
10
|
+
}
|
|
4
11
|
/**
|
|
5
12
|
* @public
|
|
6
13
|
*/
|
|
7
14
|
export interface PBUiText {
|
|
8
|
-
/** the text content */
|
|
15
|
+
/** the text content, tag <b> and <i> are supported */
|
|
9
16
|
value: string;
|
|
10
17
|
/** RGBA color (default: opaque white) */
|
|
11
18
|
color?: Color4 | undefined;
|
|
@@ -15,6 +22,8 @@ export interface PBUiText {
|
|
|
15
22
|
font?: Font | undefined;
|
|
16
23
|
/** size of the text (default: 10) */
|
|
17
24
|
fontSize?: number | undefined;
|
|
25
|
+
/** wrap text when the border is reached (default: TW_WRAP) */
|
|
26
|
+
textWrap?: TextWrap | undefined;
|
|
18
27
|
}
|
|
19
28
|
/**
|
|
20
29
|
* @public
|
|
@@ -3,13 +3,28 @@ 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.PBUiText = void 0;
|
|
6
|
+
exports.PBUiText = exports.TextWrap = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
9
|
const colors_gen_1 = require("../../common/colors.gen");
|
|
10
10
|
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
var TextWrap;
|
|
15
|
+
(function (TextWrap) {
|
|
16
|
+
TextWrap[TextWrap["TW_WRAP"] = 0] = "TW_WRAP";
|
|
17
|
+
TextWrap[TextWrap["TW_NO_WRAP"] = 1] = "TW_NO_WRAP";
|
|
18
|
+
})(TextWrap = exports.TextWrap || (exports.TextWrap = {}));
|
|
11
19
|
function createBasePBUiText() {
|
|
12
|
-
return {
|
|
20
|
+
return {
|
|
21
|
+
value: "",
|
|
22
|
+
color: undefined,
|
|
23
|
+
textAlign: undefined,
|
|
24
|
+
font: undefined,
|
|
25
|
+
fontSize: undefined,
|
|
26
|
+
textWrap: undefined,
|
|
27
|
+
};
|
|
13
28
|
}
|
|
14
29
|
/**
|
|
15
30
|
* @public
|
|
@@ -32,6 +47,9 @@ var PBUiText;
|
|
|
32
47
|
if (message.fontSize !== undefined) {
|
|
33
48
|
writer.uint32(40).int32(message.fontSize);
|
|
34
49
|
}
|
|
50
|
+
if (message.textWrap !== undefined) {
|
|
51
|
+
writer.uint32(48).int32(message.textWrap);
|
|
52
|
+
}
|
|
35
53
|
return writer;
|
|
36
54
|
}
|
|
37
55
|
PBUiText.encode = encode;
|
|
@@ -72,6 +90,12 @@ var PBUiText;
|
|
|
72
90
|
}
|
|
73
91
|
message.fontSize = reader.int32();
|
|
74
92
|
continue;
|
|
93
|
+
case 6:
|
|
94
|
+
if (tag !== 48) {
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
message.textWrap = reader.int32();
|
|
98
|
+
continue;
|
|
75
99
|
}
|
|
76
100
|
if ((tag & 7) === 4 || tag === 0) {
|
|
77
101
|
break;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/ecs",
|
|
3
3
|
"description": "Decentraland ECS",
|
|
4
|
-
"version": "7.5.
|
|
4
|
+
"version": "7.5.4-9583437273.commit-b701277",
|
|
5
5
|
"author": "DCL",
|
|
6
6
|
"bugs": "https://github.com/decentraland/ecs/issues",
|
|
7
7
|
"files": [
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
},
|
|
34
34
|
"types": "./dist/index.d.ts",
|
|
35
35
|
"typings": "./dist/index.d.ts",
|
|
36
|
-
"commit": "
|
|
36
|
+
"commit": "b701277939f21021c5b0cfe33e85cb4c56f4d797"
|
|
37
37
|
}
|