@dcl/react-ecs 7.5.1-9236275282.commit-84ad0a4 → 7.5.1-9257780246.commit-0bf8464
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.
|
@@ -28,7 +28,9 @@ export function Label(props) {
|
|
|
28
28
|
...textProps,
|
|
29
29
|
...getFont(font),
|
|
30
30
|
...getTextAlign(textAlign),
|
|
31
|
-
...getFontSize(fontSize)
|
|
31
|
+
...getFontSize(fontSize),
|
|
32
|
+
outlineWidth: props.outlineWidth,
|
|
33
|
+
outlineColor: props.outlineColor
|
|
32
34
|
};
|
|
33
35
|
return ReactEcs.createElement("entity", { ...commonProps, uiText: uiText });
|
|
34
36
|
}
|
|
@@ -15,6 +15,12 @@ export interface UiLabelProps {
|
|
|
15
15
|
textAlign?: TextAlignType | undefined;
|
|
16
16
|
/** Label font type. @defaultValue 'sans-serif' */
|
|
17
17
|
font?: UiFontType | undefined;
|
|
18
|
+
/** Outline width of the text. @defaultValue 0 */
|
|
19
|
+
outlineWidth?: number | undefined;
|
|
20
|
+
/** Outline color of the text. @defaultValue `{ r: 0, g: 0, b: 0, a: 1 }` */
|
|
21
|
+
outlineColor?: Color4 | undefined;
|
|
22
|
+
/** Text wrapping. @defaultValue false */
|
|
23
|
+
textWrapping?: boolean | undefined;
|
|
18
24
|
}
|
|
19
25
|
/**
|
|
20
26
|
* @public
|
|
@@ -51,7 +51,8 @@ const defaultUiTransform = {
|
|
|
51
51
|
flexBasisUnit: 0 /* YGUnit.YGU_UNDEFINED */,
|
|
52
52
|
widthUnit: 3 /* YGUnit.YGU_AUTO */,
|
|
53
53
|
heightUnit: 0 /* YGUnit.YGU_UNDEFINED */,
|
|
54
|
-
pointerFilter: 0 /* PointerFilterMode.PFM_NONE
|
|
54
|
+
pointerFilter: 0 /* PointerFilterMode.PFM_NONE */,
|
|
55
|
+
opacity: 1
|
|
55
56
|
};
|
|
56
57
|
/**
|
|
57
58
|
* @public
|
|
@@ -113,4 +113,6 @@ export interface UiTransformProps {
|
|
|
113
113
|
overflow?: OverflowType;
|
|
114
114
|
/** The pointer filter property determines if the ui element blocks the pointer or not (elements with pointer events always block the pointer regardless of this property) **/
|
|
115
115
|
pointerFilter?: PointerFilterType;
|
|
116
|
+
/** The opacity property sets the opacity level for an element, it's accumulated across children @defaultValue 1 */
|
|
117
|
+
opacity?: number;
|
|
116
118
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/react-ecs",
|
|
3
3
|
"description": "Decentraland ECS",
|
|
4
|
-
"version": "7.5.1-
|
|
4
|
+
"version": "7.5.1-9257780246.commit-0bf8464",
|
|
5
5
|
"author": "DCL",
|
|
6
6
|
"bugs": "https://github.com/decentraland/js-sdk-toolchain/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@dcl/ecs": "7.5.1-
|
|
8
|
+
"@dcl/ecs": "7.5.1-9257780246.commit-0bf8464",
|
|
9
9
|
"react": "^18.2.0",
|
|
10
10
|
"react-reconciler": "^0.29.0"
|
|
11
11
|
},
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"tsconfig": "./tsconfig.json"
|
|
41
41
|
},
|
|
42
42
|
"types": "./dist/index.d.ts",
|
|
43
|
-
"commit": "
|
|
43
|
+
"commit": "0bf8464664bfd9efe67095afcba8617a3db2d21b"
|
|
44
44
|
}
|