@glowjs/core 2024.1.19 → 2024.1.29
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/glow.core.js +1 -1
- package/dist/typings/entity/Text3D.d.ts +12 -4
- package/package.json +1 -1
|
@@ -9,6 +9,8 @@ export declare class Text3D extends Entity {
|
|
|
9
9
|
private _isVertical;
|
|
10
10
|
private _mesh;
|
|
11
11
|
private _material;
|
|
12
|
+
private _hasBackground;
|
|
13
|
+
private _backgroundColor;
|
|
12
14
|
/**
|
|
13
15
|
* 实例化一个3D文本对象
|
|
14
16
|
* @param app 应用
|
|
@@ -33,6 +35,16 @@ export declare class Text3D extends Entity {
|
|
|
33
35
|
*/
|
|
34
36
|
get isVertical(): boolean;
|
|
35
37
|
set isVertical(value: boolean);
|
|
38
|
+
/**
|
|
39
|
+
* 获取或设置是否开启背景
|
|
40
|
+
*/
|
|
41
|
+
get hasBackground(): boolean;
|
|
42
|
+
set hasBackground(value: boolean);
|
|
43
|
+
/**
|
|
44
|
+
* 获取或设置背景颜色
|
|
45
|
+
*/
|
|
46
|
+
get backgroundColor(): string;
|
|
47
|
+
set backgroundColor(value: string);
|
|
36
48
|
/**
|
|
37
49
|
* 序列化成JSON对象
|
|
38
50
|
*/
|
|
@@ -56,7 +68,3 @@ export declare class Text3D extends Entity {
|
|
|
56
68
|
*/
|
|
57
69
|
dispose(): void;
|
|
58
70
|
}
|
|
59
|
-
export declare function getImageData(text: string, color: string): {
|
|
60
|
-
image: string;
|
|
61
|
-
width: number;
|
|
62
|
-
};
|