@galacean/engine-core 0.9.0-beta.80 → 0.9.0-beta.82

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-core",
3
- "version": "0.9.0-beta.80",
3
+ "version": "0.9.0-beta.82",
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": "0.9.0-beta.80"
18
+ "@galacean/engine-math": "0.9.0-beta.82"
19
19
  },
20
20
  "devDependencies": {
21
- "@galacean/engine-design": "0.9.0-beta.80"
21
+ "@galacean/engine-design": "0.9.0-beta.82"
22
22
  },
23
23
  "scripts": {
24
24
  "b:types": "tsc"
@@ -1,8 +1,13 @@
1
- import { TextureFormat } from "../../texture";
1
+ import { TextureFilterMode, TextureFormat, TextureWrapMode } from "../../texture";
2
2
  /**
3
3
  * The original data type of the atlas.
4
4
  */
5
5
  export interface AtlasConfig {
6
+ mipmap?: boolean;
7
+ wrapModeV?: TextureWrapMode;
8
+ wrapModeU?: TextureWrapMode;
9
+ filterMode?: TextureFilterMode;
10
+ anisoLevel?: number;
6
11
  /** Version of Atlas. */
7
12
  version: number;
8
13
  /** Texture format. */
@@ -49,5 +54,11 @@ export interface AtlasSprite {
49
54
  x: number;
50
55
  y: number;
51
56
  };
57
+ border: {
58
+ x: number;
59
+ y: number;
60
+ z: number;
61
+ w: number;
62
+ };
52
63
  pixelsPerUnit: number;
53
64
  }
@@ -54,6 +54,18 @@ export declare class ResourceManager {
54
54
  * @returns AssetPromise
55
55
  */
56
56
  load(assetItems: LoadItem[]): AssetPromise<Object[]>;
57
+ /**
58
+ * Get the resource from cache by asset url, return the resource object if it loaded, otherwise return null.
59
+ * @param url - Resource url
60
+ * @returns Resource object
61
+ */
62
+ getFromCache<T>(url: string): T;
63
+ /**
64
+ * Get asset url from instanceId.
65
+ * @param instanceId - Engine instance id
66
+ * @returns Asset url
67
+ */
68
+ getAssetPath(instanceId: number): string;
57
69
  /**
58
70
  * Cancel all assets that have not finished loading.
59
71
  */
@@ -73,12 +85,6 @@ export declare class ResourceManager {
73
85
  * @remarks The release principle is that it is not referenced by the components, including direct and indirect reference.
74
86
  */
75
87
  gc(): void;
76
- /**
77
- * Get asset url from instanceId.
78
- * @param instanceId - Engine instance id
79
- * @returns Asset url
80
- */
81
- getAssetPath(instanceId: number): string;
82
88
  private _assignDefaultOptions;
83
89
  private _loadSingleItem;
84
90
  private _gc;
@@ -19,7 +19,6 @@ export declare const ShaderLib: {
19
19
  normal_share: string;
20
20
  uv_share: string;
21
21
  worldpos_share: string;
22
- RendererFragmentDeclaration: string;
23
22
  FogVertexDeclaration: string;
24
23
  FogFragmentDeclaration: string;
25
24
  begin_normal_vert: string;
@@ -1,4 +1,4 @@
1
- import { Color } from "@oasis-engine/math";
1
+ import { Color } from "@galacean/engine-math";
2
2
  import { Engine } from "../Engine";
3
3
  import { Material } from "../material/Material";
4
4
  /**