@galacean/engine-core 1.0.0-beta.14 → 1.0.0-beta.16
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/main.js +126 -77
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +126 -77
- package/dist/module.js +126 -77
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/2d/sprite/Sprite.d.ts +3 -0
- package/types/DisorderedArray.d.ts +4 -3
- package/types/lighting/AmbientLight.d.ts +4 -1
- package/types/lighting/LightManager.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-core",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.16",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"types/**/*"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@galacean/engine-math": "1.0.0-beta.
|
|
18
|
+
"@galacean/engine-math": "1.0.0-beta.16"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@galacean/engine-design": "1.0.0-beta.
|
|
21
|
+
"@galacean/engine-design": "1.0.0-beta.16"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"b:types": "tsc"
|
|
@@ -7,11 +7,12 @@ export declare class DisorderedArray<T> {
|
|
|
7
7
|
constructor(count?: number);
|
|
8
8
|
add(element: T): void;
|
|
9
9
|
delete(element: T): void;
|
|
10
|
+
set(index: number, element: T): void;
|
|
10
11
|
get(index: number): T;
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
-
* @param index
|
|
14
|
-
* @returns The replaced item is used to reset its index
|
|
13
|
+
* Delete the element at the specified index.
|
|
14
|
+
* @param index - The index of the element to be deleted
|
|
15
|
+
* @returns The replaced item is used to reset its index
|
|
15
16
|
*/
|
|
16
17
|
deleteByIndex(index: number): T;
|
|
17
18
|
garbageCollection(): void;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Color, SphericalHarmonics3 } from "@galacean/engine-math";
|
|
2
2
|
import { TextureCube } from "../texture";
|
|
3
3
|
import { DiffuseMode } from "./enums/DiffuseMode";
|
|
4
|
+
import { ReferResource } from "../asset/ReferResource";
|
|
5
|
+
import { Engine } from "../Engine";
|
|
4
6
|
/**
|
|
5
7
|
* Ambient light.
|
|
6
8
|
*/
|
|
7
|
-
export declare class AmbientLight {
|
|
9
|
+
export declare class AmbientLight extends ReferResource {
|
|
8
10
|
private static _shMacro;
|
|
9
11
|
private static _specularMacro;
|
|
10
12
|
private static _decodeRGBMMacro;
|
|
@@ -60,6 +62,7 @@ export declare class AmbientLight {
|
|
|
60
62
|
*/
|
|
61
63
|
get specularIntensity(): number;
|
|
62
64
|
set specularIntensity(value: number);
|
|
65
|
+
constructor(engine: Engine);
|
|
63
66
|
private _setDiffuseMode;
|
|
64
67
|
private _setSpecularTexture;
|
|
65
68
|
private _setSpecularTextureDecodeRGBM;
|