@galacean/effects-core 2.0.0-alpha.32 → 2.0.0-alpha.33

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.
@@ -17,5 +17,6 @@ export declare class Link<T> {
17
17
  removeNode(node: LinkNode<T>): void;
18
18
  forEach(func: (content: T, index: number) => void, thisObj?: any): void;
19
19
  forEachReverse(func: (content: T, index: number) => void, thisObj?: any): void;
20
+ getNodeByIndex(index: number): LinkNode<T> | null;
20
21
  }
21
22
  export {};
@@ -140,11 +140,6 @@ export declare class ParticleMesh implements ParticleMeshData {
140
140
  readonly anchor: Vector2;
141
141
  constructor(engine: Engine, props: ParticleMeshProps);
142
142
  getPointColor(index: number): number[];
143
- /**
144
- * 待废弃
145
- * @deprecated - 使用 `particle-system.getPointPosition` 替代
146
- */
147
- getPointPosition(index: number): Vector3;
148
143
  clearPoints(): void;
149
144
  resetGeometryData(geometry: Geometry): void;
150
145
  minusTime(time: number): void;
@@ -182,9 +182,15 @@ export declare class ParticleSystem extends Component {
182
182
  raycast(options: ParticleSystemRayCastOptions): Vector3[] | undefined;
183
183
  clearPointTrail(pointIndex: number): void;
184
184
  updatePointTrail(pointIndex: number, emitterLifetime: number, point: Point, startTime: number): void;
185
+ /**
186
+ * 通过索引获取指定index粒子当前时刻的位置
187
+ * @params index - 粒子索引
188
+ */
189
+ getPointPositionByIndex(index: number): Vector3 | null;
190
+ /**
191
+ * 通过粒子参数获取当前时刻粒子的位置
192
+ */
185
193
  getPointPosition(point: Point): Vector3;
186
- onEnd(particle: ParticleSystem): void;
187
- onIterate(particle: ParticleSystem): void;
188
194
  initPoint(data: Record<string, any>): Point;
189
195
  addBurst(burst: Burst, offsets: vec3[]): number;
190
196
  removeBurst(index: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-core",
3
- "version": "2.0.0-alpha.32",
3
+ "version": "2.0.0-alpha.33",
4
4
  "description": "Galacean Effects runtime core for the web",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",