@galacean/effects-core 2.2.5 → 2.2.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.
@@ -1,6 +1,10 @@
1
1
  import { Vector2 } from '@galacean/effects-math/es/core/vector2';
2
2
  import * as spec from '@galacean/effects-specification';
3
3
  export declare const keyframeInfo: {
4
+ pointIndexCache: {
5
+ xIndex: number;
6
+ yIndex: number;
7
+ };
4
8
  /**
5
9
  * 根据不同关键帧类型,获取位于曲线上的点
6
10
  */
@@ -8,7 +12,10 @@ export declare const keyframeInfo: {
8
12
  /**
9
13
  * 根据不同关键帧类型,获取位于曲线上的点的索引
10
14
  */
11
- getPointIndexInCurve(keyframe: spec.BezierKeyframeValue): {
15
+ getPointIndexInCurve(keyframe: spec.BezierKeyframeValue, res?: {
16
+ xIndex: number;
17
+ yIndex: number;
18
+ }): {
12
19
  xIndex: number;
13
20
  yIndex: number;
14
21
  };
@@ -1,6 +1,6 @@
1
+ import { Quaternion } from '@galacean/effects-math/es/core/quaternion';
1
2
  import type { Vector2 } from '@galacean/effects-math/es/core/vector2';
2
3
  import { Vector3 } from '@galacean/effects-math/es/core/vector3';
3
- import { Quaternion } from '@galacean/effects-math/es/core/quaternion';
4
4
  import * as spec from '@galacean/effects-specification';
5
5
  import type { ColorStop } from '../../utils';
6
6
  import type { BezierEasing } from '../bezier';
@@ -102,6 +102,8 @@ export declare class BezierCurve extends ValueGetter<number> {
102
102
  }>;
103
103
  keys: number[][];
104
104
  keyTimeData: string[];
105
+ startKeyframe: spec.BezierKeyframeValue;
106
+ endKeyframe: spec.BezierKeyframeValue;
105
107
  onCreate(props: spec.BezierKeyframeValue[]): void;
106
108
  getValue(time: number): number;
107
109
  getIntegrateValue(t0: number, t1: number, ts?: number): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-core",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "Galacean Effects runtime core for the web",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",