@galacean/effects-core 1.4.0-beta.0 → 1.4.0
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/comp-vfx-item.d.ts +2 -0
- package/dist/index.js +81 -223
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +81 -223
- package/dist/index.mjs.map +1 -1
- package/dist/math/bezier.d.ts +0 -1
- package/dist/math/value-getter.d.ts +3 -3
- package/dist/plugins/particle/particle-loader.d.ts +1 -1
- package/package.json +2 -2
package/dist/math/bezier.d.ts
CHANGED
|
@@ -48,7 +48,6 @@ export declare class BezierEasing {
|
|
|
48
48
|
mY2: number;
|
|
49
49
|
private precomputed;
|
|
50
50
|
private mSampleValues;
|
|
51
|
-
cachingValue: Record<string, number>;
|
|
52
51
|
constructor(mX1: number, mY1: number, mX2: number, mY2: number);
|
|
53
52
|
precompute(): void;
|
|
54
53
|
getValue(x: number): number;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Vector2 } from '@galacean/effects-math/es/core/vector2';
|
|
2
|
-
import { Vector3 } from '@galacean/effects-math/es/core/vector3';
|
|
3
2
|
import * as spec from '@galacean/effects-specification';
|
|
4
3
|
import type { ColorStop } from '../utils';
|
|
5
4
|
import type { BezierEasing } from './bezier';
|
|
@@ -98,12 +97,13 @@ export declare class BezierCurve extends ValueGetter<number> {
|
|
|
98
97
|
onCreate(props: spec.BezierKeyframeValue[]): void;
|
|
99
98
|
getValue(time: number): number;
|
|
100
99
|
getIntegrateValue(t0: number, t1: number, ts?: number): number;
|
|
100
|
+
getIntegrateByTime(t0: number, t1: number): number;
|
|
101
101
|
getCurveIntegrateValue(curveKey: string, time: number): number;
|
|
102
102
|
getCurveValue(curveKey: string, time: number): number;
|
|
103
103
|
toUniform(meta: KeyFrameMeta): Float32Array;
|
|
104
104
|
toData(): Float32Array;
|
|
105
105
|
}
|
|
106
|
-
export declare class BezierCurvePath extends ValueGetter<
|
|
106
|
+
export declare class BezierCurvePath extends ValueGetter<spec.vec3> {
|
|
107
107
|
curveSegments: Record<string, {
|
|
108
108
|
points: Vector2[];
|
|
109
109
|
easingCurve: BezierEasing;
|
|
@@ -112,7 +112,7 @@ export declare class BezierCurvePath extends ValueGetter<Vector3> {
|
|
|
112
112
|
pathCurve: BezierPath;
|
|
113
113
|
}>;
|
|
114
114
|
onCreate(props: spec.BezierCurvePathValue): void;
|
|
115
|
-
getValue(time: number):
|
|
115
|
+
getValue(time: number): [x: number, y: number, z: number];
|
|
116
116
|
getPercValue(curveKey: string, time: number): number;
|
|
117
117
|
}
|
|
118
118
|
export declare function createValueGetter(args: any): ValueGetter<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as spec from '@galacean/effects-specification';
|
|
1
|
+
import type * as spec from '@galacean/effects-specification';
|
|
2
2
|
import type { Composition } from '../../composition';
|
|
3
3
|
import type { Renderer, RenderFrame } from '../../render';
|
|
4
4
|
import { type VFXItem } from '../../vfx-item';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/effects-core",
|
|
3
|
-
"version": "1.4.0
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Galacean Effects runtime core for the web",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"registry": "https://registry.npmjs.org"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@galacean/effects-specification": "1.2.0
|
|
45
|
+
"@galacean/effects-specification": "1.2.0",
|
|
46
46
|
"@galacean/effects-math": "1.0.1"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|