@galacean/effects-core 2.8.0-alpha.4 → 2.8.0-alpha.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.
@@ -10,13 +10,11 @@ export * from './interact/interact-item';
10
10
  export * from './interact/mesh-collider';
11
11
  export * from './sprite/sprite-loader';
12
12
  export * from './sprite/sprite-item';
13
- export * from './sprite/sprite-mesh';
14
13
  export * from './particle/particle-loader';
15
14
  export * from './particle/particle-mesh';
16
15
  export * from './particle/particle-vfx-item';
17
16
  export * from './particle/particle-system';
18
17
  export * from './particle/particle-system-renderer';
19
- export * from './cal/calculate-loader';
20
18
  export * from './shape/build-line';
21
19
  export * from './shape/graphics-path';
22
20
  export * from './shape/ellipse';
@@ -183,8 +183,7 @@ export declare class ParticleSystem extends Component implements Maskable {
183
183
  reset(): void;
184
184
  onStart(): void;
185
185
  onUpdate(dt: number): void;
186
- simulate(time: number): void;
187
- private update;
186
+ update(delta: number): void;
188
187
  drawStencilMask(renderer: Renderer): void;
189
188
  onDestroy(): void;
190
189
  getParticleBoxes(): {
@@ -1,12 +1,10 @@
1
1
  import * as spec from '@galacean/effects-specification';
2
2
  import type { ColorPlayableAssetData } from '../../animation';
3
- import { MaskableGraphic } from '../../components';
4
3
  import type { Engine } from '../../engine';
5
- import type { FrameContext } from '../timeline/playable';
6
- import { Playable, PlayableAsset } from '../timeline/playable';
7
- import { TrackAsset } from '../timeline/track';
8
- import { TrackMixerPlayable } from '../timeline/playables/track-mixer-playable';
9
- import type { Geometry } from '../../render/geometry';
4
+ import type { FrameContext } from '../timeline';
5
+ import { Playable, PlayableAsset, TrackMixerPlayable, TrackAsset } from '../timeline';
6
+ import type { Geometry } from '../../render';
7
+ import { MaskableGraphic } from '../../components';
10
8
  /**
11
9
  * 图层元素基础属性, 经过处理后的 spec.SpriteContent.options
12
10
  */
@@ -1,6 +1,6 @@
1
1
  import type { TrackAsset } from './track';
2
2
  import type { Constructor } from '../../utils';
3
- import type { SceneBinding } from '../../comp-vfx-item';
3
+ import type { SceneBinding } from '../../components';
4
4
  import { EffectsObject } from '../../effects-object';
5
5
  export declare class TimelineAsset extends EffectsObject {
6
6
  tracks: TrackAsset[];
@@ -9,5 +9,4 @@ export * from './mesh';
9
9
  export * from './geometry';
10
10
  export * from './framebuffer';
11
11
  export * from './renderer';
12
- export * from './semantic-map';
13
12
  export * from './draw-object-pass';
package/dist/scene.d.ts CHANGED
@@ -72,6 +72,11 @@ export interface SceneLoadOptions {
72
72
  * @default undefined
73
73
  */
74
74
  useCompressedTexture?: boolean;
75
+ /**
76
+ * 是否使用 Hevc 视频
77
+ * @default undefined
78
+ */
79
+ useHevcVideo?: boolean;
75
80
  /**
76
81
  * 渲染分级。
77
82
  * 分级之后,只会加载当前渲染等级的资源。
@@ -184,6 +184,7 @@ export declare class VFXItem extends EffectsObject implements Disposable {
184
184
  * @returns 一个组件列表,包含所有符合类型的组件
185
185
  */
186
186
  getComponents<T extends Component>(classConstructor: Constructor<T>): T[];
187
+ getDescendants(directDescendantsOnly?: boolean, predicate?: (node: VFXItem) => boolean): VFXItem[];
187
188
  setParent(vfxItem: VFXItem): void;
188
189
  /**
189
190
  * 激活或停用 VFXItem
@@ -289,6 +290,7 @@ export declare class VFXItem extends EffectsObject implements Disposable {
289
290
  private instantiatePreComposition;
290
291
  private resetGUID;
291
292
  private gatherPreviousObjectID;
293
+ private getDescendantsInternal;
292
294
  }
293
295
  export declare namespace Item {
294
296
  function is<T extends spec.Item>(item: spec.Item, type: spec.ItemType): item is T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-core",
3
- "version": "2.8.0-alpha.4",
3
+ "version": "2.8.0-alpha.6",
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": "2.7.0-alpha.0",
45
+ "@galacean/effects-specification": "2.7.1",
46
46
  "@galacean/effects-math": "1.1.0",
47
47
  "flatbuffers": "24.3.25",
48
48
  "uuid": "9.0.1",
@@ -1,3 +0,0 @@
1
- import { Plugin } from '../plugin';
2
- export declare class CalculateLoader extends Plugin {
3
- }
@@ -1,19 +0,0 @@
1
- import type { Vector3 } from '@galacean/effects-math/es/core/vector3';
2
- import type * as spec from '@galacean/effects-specification';
3
- import type { Transform } from '../../transform';
4
- export type SpriteRenderData = {
5
- life: number;
6
- transform: Transform;
7
- visible?: boolean;
8
- startSize?: Vector3;
9
- color?: spec.vec4;
10
- texOffset?: spec.vec4;
11
- active?: boolean;
12
- anchor?: spec.vec3;
13
- };
14
- export type SpriteRegionData = {
15
- color: spec.vec4;
16
- position: spec.vec3;
17
- quat: spec.vec4;
18
- size: spec.vec2;
19
- };
@@ -1,14 +0,0 @@
1
- import type { UniformValue } from '../material';
2
- import type { RenderingData } from '.';
3
- import type { Disposable } from '../utils';
4
- export type SemanticFunc = (state: RenderingData) => UniformValue | undefined;
5
- export type SemanticGetter = UniformValue | SemanticFunc;
6
- export declare class SemanticMap implements Disposable {
7
- readonly semantics: Record<string, SemanticGetter>;
8
- constructor(semantics?: Record<string, SemanticGetter>);
9
- toObject(): Record<string, SemanticGetter>;
10
- setSemantic(name: string, value?: SemanticGetter): void;
11
- getSemanticValue(name: string, state: RenderingData): UniformValue | undefined;
12
- hasSemanticValue(name: string): boolean;
13
- dispose(): void;
14
- }