@galacean/engine-math 1.1.0-beta.23 → 1.1.0-beta.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-math",
3
- "version": "1.1.0-beta.23",
3
+ "version": "1.1.0-beta.24",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -1,103 +0,0 @@
1
- import { GradientMode } from "./enums/GradientMode";
2
- import { IClone } from "./IClone";
3
- import { ICopy } from "./ICopy";
4
- import { Vector4 } from "./Vector4";
5
- import { Color } from "./Color";
6
- /**
7
- * Gradient used for animating colors.
8
- */
9
- export declare class Gradient implements IClone<Gradient>, ICopy<Gradient, Gradient> {
10
- private _mode;
11
- private readonly _maxColorRGBKeysCount;
12
- private readonly _maxColorAlphaKeysCount;
13
- private _colorRGBKeysCount;
14
- private _colorAlphaKeysCount;
15
- /**
16
- * element key range
17
- * x: colorKey min
18
- * y: colorKey max
19
- * z: alphaKey min
20
- * w: alphaKey max
21
- */
22
- keyRanges: Vector4;
23
- /** All alpha keys defined in the gradient. */
24
- alphaElements: Float32Array;
25
- /** All color keys defined in the gradient. */
26
- rgbElements: Float32Array;
27
- /**
28
- * Control how the gradient is evaluated.
29
- */
30
- get mode(): GradientMode;
31
- set mode(value: GradientMode);
32
- /**
33
- * Get RGB keys count.
34
- */
35
- get colorRGBKeysCount(): number;
36
- /**
37
- * Get Alpha keys count
38
- */
39
- get colorAlphaKeysCount(): number;
40
- /**
41
- * Get max RGB keys count
42
- */
43
- get maxColorRGBKeysCount(): number;
44
- /**
45
- * Get max alpha keys count
46
- */
47
- get maxColorAlphaKeysCount(): number;
48
- /**
49
- * @param maxColorRGBKeyCount - The max rgb key count
50
- * @param maxColorAlphaKeyCount - Thw max alpha key count
51
- */
52
- constructor(maxColorRGBKeyCount: number, maxColorAlphaKeyCount: number);
53
- /**
54
- * Add rgb keyframe.
55
- * @param key - The lifetime from 0 to 1
56
- * @param value - The rgb value
57
- */
58
- addColorRGB(key: number, value: Color): void;
59
- /**
60
- * Add alpha keyframe
61
- * @param key - The lifetime from 0 to 1
62
- * @param value - The alpha value
63
- */
64
- addColorAlpha(key: number, value: number): void;
65
- /**
66
- * Update rgb keyframe
67
- * @param index - The index
68
- * @param key - The lifetime from 0 to 1
69
- * @param value - The alpha value
70
- */
71
- updateColorRGB(index: number, key: number, value: Color): void;
72
- /**
73
- * Update alpha keyframe
74
- * @param index - The index
75
- * @param key - The lifetime from 0 to 1
76
- * @param value - The alpha value
77
- */
78
- updateColorAlpha(index: number, key: number, value: number): void;
79
- /**
80
- * interpolate the keyframe to get rgb value
81
- * @param lerpFactor - The ratio
82
- * @param out - The result
83
- * @param startSearchIndex - The start search index
84
- * @param reverseSearch - Whether reverse search
85
- */
86
- evaluateColorRGB(lerpFactor: number, out: Color, startSearchIndex?: number, reverseSearch?: boolean): number;
87
- /**
88
- * interpolate the keyframe to get alpha value
89
- * @param lerpFactor - The ratio
90
- * @param outColor - The result
91
- * @param startSearchIndex - The start search index
92
- * @param reverseSearch - Whether reverse search
93
- */
94
- evaluateColorAlpha(lerpFactor: number, outColor: Color, startSearchIndex?: number, reverseSearch?: boolean): number;
95
- /**
96
- * @override
97
- */
98
- copyFrom(source: Gradient): Gradient;
99
- /**
100
- * @override
101
- */
102
- clone(): Gradient;
103
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Select how gradients will be evaluated.
3
- */
4
- export declare enum GradientMode {
5
- /** Find the 2 keys adjacent to the requested evaluation time, and linearly interpolate between them to obtain a blended color. */
6
- Blend = 0,
7
- /** Return a fixed color, by finding the first key whose time value is greater than the requested evaluation time. */
8
- Fixed = 1
9
- }