@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.
@@ -10,6 +10,9 @@ export interface GlobalVolume {
10
10
  brightness: number;
11
11
  saturation: number;
12
12
  contrast: number;
13
+ vignetteIntensity: number;
14
+ vignetteSmoothness: number;
15
+ vignetteRoundness: number;
13
16
  useToneMapping: number;
14
17
  }
15
18
  export declare const defaultGlobalVolume: GlobalVolume;
@@ -8,7 +8,7 @@ export declare class SemanticMap implements Disposable {
8
8
  constructor(semantics?: Record<string, SemanticGetter>);
9
9
  toObject(): Record<string, SemanticGetter>;
10
10
  setSemantic(name: string, value?: SemanticGetter): void;
11
- getSemanticValue(name: string, state: RenderingData): number | Float32Array | Int32Array | Float64Array | Uint8Array | Uint32Array | Uint16Array | Int8Array | Int16Array | number[] | number[][] | import("@galacean/effects-math/es/core").Vector3 | import("./texture").Texture | import("@galacean/effects-math/es/core").Vector2 | import("@galacean/effects-math/es/core").Vector4 | import("@galacean/effects-math/es/core").Matrix3 | import("@galacean/effects-math/es/core").Matrix4 | import("./texture").Texture[] | import("./material").UniformStruct | import("./material").UniformStruct[] | SemanticFunc | undefined;
11
+ getSemanticValue(name: string, state: RenderingData): number | Float32Array | Int32Array | Float64Array | Uint8Array | Uint32Array | Uint16Array | Int8Array | Int16Array | number[] | number[][] | import("@galacean/effects-math/es/core").Vector3 | import("@galacean/effects-core").Texture | import("@galacean/effects-math/es/core").Vector2 | import("@galacean/effects-math/es/core").Vector4 | import("@galacean/effects-math/es/core").Matrix3 | import("@galacean/effects-math/es/core").Matrix4 | import("@galacean/effects-core").Texture[] | import("packages/effects-core/src/material/types").UniformStruct | import("packages/effects-core/src/material/types").UniformStruct[] | SemanticFunc | undefined;
12
12
  hasSemanticValue(name: string): boolean;
13
13
  dispose(): void;
14
14
  }
@@ -8,8 +8,5 @@ export declare class Sphere implements Shape {
8
8
  generate(opt: ShapeGeneratorOptions): ShapeParticle;
9
9
  }
10
10
  export declare class Hemisphere extends Sphere {
11
- arc: number;
12
- radius: number;
13
- arcMode: number;
14
11
  getHorizontalAngle(): number;
15
12
  }
@@ -30,7 +30,8 @@ declare class CanvasPool {
30
30
  }
31
31
  export declare const canvasPool: CanvasPool;
32
32
  export declare function getDefaultTemplateCanvasPool(): CanvasPool;
33
- export declare function getBackgroundImage(template: TemplateContentV2, variables?: Record<string, number | string | string[]>): string | number | string[] | undefined;
33
+ export declare function getBackgroundImage(template: TemplateContentV2, variables?: Record<string, number | string | string[]>): string | string[];
34
+ export declare function loadMedia(url: string | string[], loadFn: (url: string) => Promise<any>): Promise<any>;
34
35
  /**
35
36
  * @param {string|HTMLImageElement} url
36
37
  * @param {TemplateContentV2} [template]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-core",
3
- "version": "2.0.0-alpha.5",
3
+ "version": "2.0.0-alpha.7",
4
4
  "description": "Galacean Effects runtime core for the web",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",
@@ -42,15 +42,15 @@
42
42
  "registry": "https://registry.npmjs.org"
43
43
  },
44
44
  "dependencies": {
45
- "@galacean/effects-specification": "2.0.0-alpha.3",
46
- "@galacean/effects-math": "1.0.1",
45
+ "@galacean/effects-specification": "2.0.0-alpha.5",
46
+ "@galacean/effects-math": "1.1.0-alpha.0",
47
47
  "uuid": "9.0.1"
48
48
  },
49
49
  "scripts": {
50
50
  "prebuild": "pnpm clean",
51
51
  "build": "pnpm build:declaration && pnpm build:module",
52
52
  "build:module": "rollup -c",
53
- "build:declaration": "tsc -d --declarationDir dist --emitDeclarationOnly",
53
+ "build:declaration": "tsc -d --emitDeclarationOnly",
54
54
  "clean": "rimraf dist && rimraf '*+(.tsbuildinfo)'"
55
55
  }
56
56
  }