@galacean/engine-core 1.1.0-beta.24 → 1.1.0-beta.27
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/main.js +101 -16
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +101 -16
- package/dist/module.js +101 -16
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/particle/modules/ParticleGradient.d.ts +38 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-core",
|
|
3
|
-
"version": "1.1.0-beta.
|
|
3
|
+
"version": "1.1.0-beta.27",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"types/**/*"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@galacean/engine-math": "1.1.0-beta.
|
|
18
|
+
"@galacean/engine-math": "1.1.0-beta.27"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@galacean/engine-design": "1.1.0-beta.
|
|
21
|
+
"@galacean/engine-design": "1.1.0-beta.27"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"b:types": "tsc"
|
|
@@ -63,32 +63,52 @@ export declare class ParticleGradient {
|
|
|
63
63
|
setKeys(colorKeys: GradientColorKey[], alphaKeys: GradientAlphaKey[]): void;
|
|
64
64
|
private _addKey;
|
|
65
65
|
private _removeKey;
|
|
66
|
+
private _setColorTypeArrayDirty;
|
|
67
|
+
private _setAlphaTypeArrayDirty;
|
|
66
68
|
}
|
|
67
69
|
/**
|
|
68
70
|
* The color key of the particle gradient.
|
|
69
71
|
*/
|
|
70
72
|
export declare class GradientColorKey {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
time: number
|
|
78
|
-
/**
|
|
79
|
-
|
|
73
|
+
private _time;
|
|
74
|
+
private _color;
|
|
75
|
+
/**
|
|
76
|
+
* The key time.
|
|
77
|
+
*/
|
|
78
|
+
get time(): number;
|
|
79
|
+
set time(value: number);
|
|
80
|
+
/**
|
|
81
|
+
* The key color.
|
|
82
|
+
*/
|
|
83
|
+
get color(): Color;
|
|
84
|
+
set color(value: Color);
|
|
85
|
+
/**
|
|
86
|
+
* Constructor of GradientColorKey.
|
|
87
|
+
* @param time - The time of the gradient colorKey
|
|
88
|
+
* @param color - The alpha component of the gradient colorKey
|
|
89
|
+
*/
|
|
90
|
+
constructor(time: number, color: Color);
|
|
80
91
|
}
|
|
81
92
|
/**
|
|
82
93
|
* The alpha key of the particle gradient.
|
|
83
94
|
*/
|
|
84
95
|
export declare class GradientAlphaKey {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
time: number
|
|
92
|
-
/**
|
|
93
|
-
|
|
96
|
+
private _time;
|
|
97
|
+
private _alpha;
|
|
98
|
+
/**
|
|
99
|
+
* The key time.
|
|
100
|
+
*/
|
|
101
|
+
get time(): number;
|
|
102
|
+
set time(value: number);
|
|
103
|
+
/**
|
|
104
|
+
* The key alpha.
|
|
105
|
+
*/
|
|
106
|
+
get alpha(): number;
|
|
107
|
+
set alpha(value: number);
|
|
108
|
+
/**
|
|
109
|
+
* Constructor of GradientAlphaKey.
|
|
110
|
+
* @param time - The time of the gradient alpha key
|
|
111
|
+
* @param alpha - The alpha component of the gradient alpha key
|
|
112
|
+
*/
|
|
113
|
+
constructor(time: number, alpha: number);
|
|
94
114
|
}
|