@galacean/effects-threejs 2.0.0-alpha.16 → 2.0.0-alpha.18

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.
@@ -167,7 +167,7 @@ export declare class ThreeMaterial extends Material {
167
167
  isMacroEnabled(keyword: string): boolean;
168
168
  clone(props?: MaterialProps): Material;
169
169
  cloneUniforms(sourceMaterial: Material): void;
170
- fromData(data: any): void;
170
+ fromData(data: unknown): void;
171
171
  dispose(destroyOptions?: MaterialDestroyOptions): void;
172
172
  }
173
173
  export {};
@@ -47,5 +47,10 @@ export declare class ThreeTexture extends Texture {
47
47
  * 释放纹理占用的内存
48
48
  */
49
49
  dispose(): void;
50
+ /**
51
+ * 通过图层设置创建贴图
52
+ * @param data - 图层设置
53
+ */
54
+ fromData(data: any): void;
50
55
  private createTextureByType;
51
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-threejs",
3
- "version": "2.0.0-alpha.16",
3
+ "version": "2.0.0-alpha.18",
4
4
  "description": "Galacean Effects runtime threejs plugin for the web",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",
@@ -43,7 +43,7 @@
43
43
  "registry": "https://registry.npmjs.org"
44
44
  },
45
45
  "dependencies": {
46
- "@galacean/effects-core": "2.0.0-alpha.16"
46
+ "@galacean/effects-core": "2.0.0-alpha.18"
47
47
  },
48
48
  "devDependencies": {
49
49
  "three": "^0.149.0",