@galacean/effects-core 2.0.0-alpha.11 → 2.0.0-alpha.12

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,12 +17,6 @@ export declare class AssetLoader {
17
17
  export declare class Database {
18
18
  loadGUID(guid: string): Promise<EffectsObject | undefined>;
19
19
  }
20
- export interface GeometryData extends spec.EffectsObjectData {
21
- vertexData: spec.VertexData;
22
- indexFormat: number;
23
- indexOffset: number;
24
- buffer: string;
25
- }
26
20
  export interface EffectComponentData extends spec.EffectsObjectData {
27
21
  _priority: number;
28
22
  item: spec.DataPath;
@@ -189,12 +189,6 @@ export declare class Composition implements Disposable, LostHandler {
189
189
  * @param compositionSourceManager
190
190
  */
191
191
  constructor(props: CompositionProps, scene: Scene, compositionSourceManager: CompositionSourceManager);
192
- /**
193
- * 合成结束回调
194
- * @param {(composition: Composition) => void} func
195
- * @deprecated since 2.0 - use `onEnd` instead
196
- */
197
- set handleEnd(func: (composition: Composition) => void);
198
192
  /**
199
193
  * 获取场景中的纹理数组
200
194
  */
@@ -1,17 +1,6 @@
1
1
  import type { FixedNumberExpression, RGBAColorValue, ColorExpression, NumberExpression, GradientColor, FixedVec3Expression, vec4, vec3, BezierKeyframeValue, vec2 } from '@galacean/effects-specification';
2
2
  import { ParticleOrigin } from '@galacean/effects-specification';
3
3
  export declare function arrAdd<T>(arr: T[], item: T): boolean | undefined;
4
- /**
5
- * @deprecated 请直接使用 Array.prototype.forEach 或 for...of
6
- * @param object
7
- * @param callback
8
- * @returns the mutated input object
9
- */
10
- export declare function forEach<T>(object: null | undefined | {
11
- [key: string]: T | Record<any, T>;
12
- }, callback: (val: T, key: string) => void, thisObj?: any): {
13
- [key: string]: T | Record<any, T>;
14
- } | null | undefined;
15
4
  export declare function ensureFixedNumber(a: any): FixedNumberExpression | undefined;
16
5
  export declare function ensureFixedNumberWithRandom(a: any, p: number): FixedNumberExpression | undefined;
17
6
  export declare function ensureRGBAValue(a: any): RGBAColorValue;
@@ -1,6 +1,9 @@
1
+ import * as spec from '@galacean/effects-specification';
1
2
  export * from './create-gl-context';
2
3
  export * from './gpu-time';
3
4
  export declare const initErrors: string[];
4
5
  export declare const glContext: WebGL2RenderingContext;
5
6
  export declare function initGLContext(): void;
6
7
  export declare function isWebGL2(gl: WebGLRenderingContext | WebGL2RenderingContext): gl is WebGL2RenderingContext;
8
+ export declare function vertexFormatType2GLType(formatType: spec.VertexFormatType): spec.BufferType;
9
+ export declare function glType2VertexFormatType(webglType: spec.BufferType): spec.VertexFormatType;