@galacean/engine-ui 2.0.0-alpha.2 → 2.0.0-alpha.6
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/browser.js +74 -27
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/main.js +74 -27
- package/dist/main.js.map +1 -1
- package/dist/module.js +74 -27
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/component/UICanvas.d.ts +10 -3
- package/types/component/advanced/Text.d.ts +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-ui",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"types/**/*"
|
|
27
27
|
],
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@galacean/engine": "2.0.0-alpha.
|
|
29
|
+
"@galacean/engine": "2.0.0-alpha.6"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@galacean/engine": "2.0.0-alpha.
|
|
32
|
+
"@galacean/engine": "2.0.0-alpha.6"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"b:types": "tsc"
|
|
@@ -12,7 +12,7 @@ export declare class UICanvas extends Component implements IElement {
|
|
|
12
12
|
private static _tempVec3;
|
|
13
13
|
private static _tempMat;
|
|
14
14
|
private _renderMode;
|
|
15
|
-
private
|
|
15
|
+
private _camera;
|
|
16
16
|
private _cameraObserver;
|
|
17
17
|
private _resolutionAdaptationMode;
|
|
18
18
|
private _sortOrder;
|
|
@@ -38,8 +38,15 @@ export declare class UICanvas extends Component implements IElement {
|
|
|
38
38
|
get renderMode(): CanvasRenderMode;
|
|
39
39
|
set renderMode(mode: CanvasRenderMode);
|
|
40
40
|
/**
|
|
41
|
-
* The camera
|
|
42
|
-
* @remarks
|
|
41
|
+
* The camera associated with this canvas.
|
|
42
|
+
* @remarks
|
|
43
|
+
* - `ScreenSpaceCamera` mode: Used for rendering adaptation. Defaults to `ScreenSpaceOverlay` if not assigned.
|
|
44
|
+
* - `WorldSpace` mode: Used for event detection. If not assigned, events are handled by the highest-priority camera.
|
|
45
|
+
*/
|
|
46
|
+
get camera(): Camera;
|
|
47
|
+
set camera(value: Camera);
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated Use {@link camera} instead.
|
|
43
50
|
*/
|
|
44
51
|
get renderCamera(): Camera;
|
|
45
52
|
set renderCamera(value: Camera);
|
|
@@ -15,6 +15,7 @@ export declare class Text extends UIRenderer implements ITextRenderer {
|
|
|
15
15
|
private _fontSize;
|
|
16
16
|
private _fontStyle;
|
|
17
17
|
private _lineSpacing;
|
|
18
|
+
private _characterSpacing;
|
|
18
19
|
private _horizontalAlignment;
|
|
19
20
|
private _verticalAlignment;
|
|
20
21
|
private _enableWrapping;
|
|
@@ -40,10 +41,15 @@ export declare class Text extends UIRenderer implements ITextRenderer {
|
|
|
40
41
|
get fontStyle(): FontStyle;
|
|
41
42
|
set fontStyle(value: FontStyle);
|
|
42
43
|
/**
|
|
43
|
-
* The space between two lines
|
|
44
|
+
* The space between two lines, in em (ratio of fontSize).
|
|
44
45
|
*/
|
|
45
46
|
get lineSpacing(): number;
|
|
46
47
|
set lineSpacing(value: number);
|
|
48
|
+
/**
|
|
49
|
+
* The space between two characters, in em (ratio of fontSize).
|
|
50
|
+
*/
|
|
51
|
+
get characterSpacing(): number;
|
|
52
|
+
set characterSpacing(value: number);
|
|
47
53
|
/**
|
|
48
54
|
* The horizontal alignment.
|
|
49
55
|
*/
|