@galacean/effects-core 1.2.0 → 1.2.2

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.
@@ -261,7 +261,7 @@ export declare class RenderPass implements Disposable, Sortable {
261
261
  /**
262
262
  * 获取当前 Attachment 数组,注意 RenderPass 可能没有创建完成
263
263
  */
264
- getInitAttachments(): RenderPassColorAttachmentOptions[] | RenderTargetHandle[] | undefined;
264
+ getInitAttachments(): RenderTargetHandle[] | RenderPassColorAttachmentOptions[] | undefined;
265
265
  /**
266
266
  * 配置当前pass的RT,在每帧渲染前调用
267
267
  */
package/dist/scene.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type * as spec from '@galacean/effects-specification';
2
- import type { JSONValue } from './downloader';
2
+ import type { SceneType } from './asset-manager';
3
3
  import type { Texture } from './texture';
4
4
  import type { PluginSystem } from './plugin-system';
5
5
  export type ImageSource = spec.TemplateImage | spec.Image | spec.CompressedImage;
@@ -24,7 +24,7 @@ export interface Scene {
24
24
  * 加载开始时间
25
25
  */
26
26
  startTime?: number;
27
- url: string | JSONValue;
27
+ url: SceneType;
28
28
  usedImages: Record<number, boolean>;
29
29
  }
30
30
  export declare function isScene(scene: any): scene is Scene;
@@ -35,7 +35,7 @@ export declare function noop(): void;
35
35
  * @param {object} obj - 要判断的对象
36
36
  * @return {boolean}
37
37
  */
38
- export declare function isString(obj: any): boolean;
38
+ export declare function isString(obj: any): obj is string;
39
39
  /**
40
40
  * 判断对象是否是`Array`类型
41
41
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-core",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Galacean Effects runtime core for the web",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",