@galacean/effects-core 2.0.0-alpha.5 → 2.0.0-alpha.7

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,4 @@
1
- import * as spec from '@galacean/effects-specification';
2
- import type { Scene } from './scene';
3
- export declare function version3Migration(scene: Record<string, any>): Scene;
1
+ import type * as spec from '@galacean/effects-specification';
4
2
  /**
5
3
  * 提取并转换 JSON 数据中的 anchor 值
6
4
  */
@@ -13,7 +13,7 @@ export declare abstract class Component extends EffectsObject {
13
13
  /**
14
14
  * 附加到的 VFXItem 对象 Transform 组件
15
15
  */
16
- get transform(): import("..").Transform;
16
+ get transform(): import("@galacean/effects-core").Transform;
17
17
  onAttached(): void;
18
18
  onDestroy(): void;
19
19
  fromData(data: any): void;
@@ -342,7 +342,7 @@ export declare class Composition implements Disposable, LostHandler {
342
342
  * 获取 engine 对象
343
343
  * @returns
344
344
  */
345
- getEngine(): import("./engine").Engine;
345
+ getEngine(): import("@galacean/effects-core").Engine;
346
346
  /**
347
347
  * Item 求交测试,返回求交结果列表,x 和 y 是归一化到[-1, 1]区间的值,原点在左上角
348
348
  * @param x - 鼠标或触点的 x,已经归一化到[-1, 1]
@@ -1,14 +1,5 @@
1
1
  type SuccessHandler<T> = (data: T) => void;
2
2
  type ErrorHandler = (status: number, responseText: string) => void;
3
- /**
4
- *
5
- */
6
- type VideoLoadOptions = {
7
- /**
8
- * 视频是否循环播放
9
- */
10
- loop?: boolean;
11
- };
12
3
  /**
13
4
  * JSON 值,它可以是字符串、数字、布尔值、对象或者 JSON 值的数组。
14
5
  *
@@ -77,7 +68,6 @@ export declare function loadBlob(url: string): Promise<Blob>;
77
68
  /**
78
69
  * 异步加载一个视频文件
79
70
  * @param url - 视频文件的 URL 或 MediaProvider 对象
80
- * @param options - 加载参数
81
71
  */
82
- export declare function loadVideo(url: string | MediaProvider, options?: VideoLoadOptions): Promise<HTMLVideoElement>;
72
+ export declare function loadVideo(url: string | MediaProvider): Promise<HTMLVideoElement>;
83
73
  export {};