@galacean/effects-core 1.1.3 → 1.1.4

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.
@@ -30,5 +30,5 @@ export declare class PluginSystem {
30
30
  processRawJSON(json: spec.JSONScene, options: SceneLoadOptions): Promise<void[]>;
31
31
  private callStatic;
32
32
  precompile(compositions: spec.Composition[], renderer: Renderer, options?: PrecompileOptions): Promise<void[]>;
33
- loadResources(scene: Object, options: SceneLoadOptions): Promise<void[]>;
33
+ loadResources(scene: Scene, options: SceneLoadOptions): Promise<void[]>;
34
34
  }
@@ -150,7 +150,6 @@ export declare class ParticleSystem {
150
150
  private lastUpdate;
151
151
  private loopStartTime;
152
152
  private particleLink;
153
- private parentTransform;
154
153
  private started;
155
154
  private ended;
156
155
  private lastEmitTime;
package/dist/scene.d.ts CHANGED
@@ -8,12 +8,12 @@ export type ImageSource = spec.TemplateImage | spec.Image | spec.CompressedImage
8
8
  */
9
9
  export interface Scene {
10
10
  readonly jsonScene: spec.JSONScene;
11
- readonly images: ImageSource[];
12
- readonly textureOptions: Record<string, any>[];
13
11
  readonly bins: ArrayBuffer[];
14
12
  readonly pluginSystem: PluginSystem;
15
13
  readonly renderLevel?: spec.RenderLevel;
16
14
  readonly storage: Record<string, any>;
15
+ textureOptions: Record<string, any>[];
16
+ images: ImageSource[];
17
17
  consumed?: boolean;
18
18
  textures?: Texture[];
19
19
  /**
@@ -25,5 +25,6 @@ export interface Scene {
25
25
  */
26
26
  startTime?: number;
27
27
  url: string | JSONValue;
28
+ usedImages: Record<number, boolean>;
28
29
  }
29
30
  export declare function isScene(scene: any): scene is Scene;
@@ -132,6 +132,7 @@ export declare abstract class VFXItem<T extends VFXItemContent> implements Dispo
132
132
  static isFilterSprite(item: VFXItem<VFXItemContent>): item is FilterSpriteVFXItem;
133
133
  static isNull(item: VFXItem<VFXItemContent>): item is VFXItem<void>;
134
134
  static isTree(item: VFXItem<VFXItemContent>): item is VFXItem<void>;
135
+ static isCamera(item: VFXItem<VFXItemContent>): item is VFXItem<void>;
135
136
  static isExtraCamera(item: VFXItem<VFXItemContent>): item is CameraVFXItem;
136
137
  constructor(props: VFXItemProps, composition: Composition);
137
138
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-core",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Galacean Effects runtime core for the web",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",