@galacean/effects-core 2.0.0-alpha.4 → 2.0.0-alpha.6
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.
- package/dist/asset-migrations.d.ts +1 -3
- package/dist/components/component.d.ts +1 -1
- package/dist/composition.d.ts +1 -1
- package/dist/downloader.d.ts +1 -11
- package/dist/index.js +12368 -14735
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12370 -14738
- package/dist/index.mjs.map +1 -1
- package/dist/semantic-map.d.ts +1 -1
- package/dist/shape/sphere.d.ts +0 -3
- package/dist/template-image/index.d.ts +2 -1
- package/package.json +4 -4
package/dist/semantic-map.d.ts
CHANGED
|
@@ -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("
|
|
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
|
}
|
package/dist/shape/sphere.d.ts
CHANGED
|
@@ -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 |
|
|
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.
|
|
3
|
+
"version": "2.0.0-alpha.6",
|
|
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.
|
|
46
|
-
"@galacean/effects-math": "1.0.
|
|
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 --
|
|
53
|
+
"build:declaration": "tsc -d --emitDeclarationOnly",
|
|
54
54
|
"clean": "rimraf dist && rimraf '*+(.tsbuildinfo)'"
|
|
55
55
|
}
|
|
56
56
|
}
|