@galacean/effects-threejs 2.0.0-alpha.12 → 2.0.0-alpha.14

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.
@@ -1,4 +1,4 @@
1
- import type { Scene, ShaderLibrary, Transform, MeshRendererOptions, EventSystem, VFXItemContent, VFXItem, MessageItem, CompositionProps, CompositionSourceManager } from '@galacean/effects-core';
1
+ import type { Scene, ShaderLibrary, Transform, MeshRendererOptions, EventSystem, VFXItem, MessageItem, CompositionProps, CompositionSourceManager } from '@galacean/effects-core';
2
2
  import { Composition } from '@galacean/effects-core';
3
3
  import type THREE from 'three';
4
4
  /**
@@ -48,7 +48,7 @@ export interface CompositionBaseProps {
48
48
  * @param item
49
49
  * @returns
50
50
  */
51
- onPlayerPause?: (item: VFXItem<VFXItemContent>) => void;
51
+ onPlayerPause?: (item: VFXItem) => void;
52
52
  }
53
53
  export interface ThreeCompositionProps extends CompositionProps {
54
54
  /**
@@ -1,4 +1,4 @@
1
- import type { Engine, GeometryProps, spec } from '@galacean/effects-core';
1
+ import type { Engine, GeometryProps, SkinProps, spec } from '@galacean/effects-core';
2
2
  import { Geometry } from '@galacean/effects-core';
3
3
  import * as THREE from 'three';
4
4
  /**
@@ -139,6 +139,12 @@ export declare class ThreeGeometry extends Geometry {
139
139
  * @returns 返回绘制数量
140
140
  */
141
141
  getDrawCount(): number;
142
+ /**
143
+ * 获取蒙皮数据
144
+ *
145
+ * @returns 返回蒙皮数据
146
+ */
147
+ getSkinProps(): SkinProps;
142
148
  /**
143
149
  * 销毁方法
144
150
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-threejs",
3
- "version": "2.0.0-alpha.12",
3
+ "version": "2.0.0-alpha.14",
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.12"
46
+ "@galacean/effects-core": "2.0.0-alpha.14"
47
47
  },
48
48
  "devDependencies": {
49
49
  "three": "^0.149.0",