three-base 1.0.80 → 1.0.81

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/lib/Transition.js CHANGED
@@ -73,7 +73,7 @@ export default class Transition {
73
73
  // 设置动画对象的回调事件
74
74
  onChange(onChangeCall) {
75
75
  this.onChangeCall = onChangeCall;
76
- threeUtils.addEventListener("requestAnimationFrame", this.runbindThis);
76
+ this.onChangeCall(this.getJson());
77
77
  return this;
78
78
  }
79
79
  // 计算当前 key 的值
package/lib/Transition.ts CHANGED
@@ -100,7 +100,7 @@ export default class Transition {
100
100
  // 设置动画对象的回调事件
101
101
  onChange(onChangeCall: (josn: { [key: string]: number }) => void): this {
102
102
  this.onChangeCall = onChangeCall;
103
- threeUtils.addEventListener("requestAnimationFrame", this.runbindThis);
103
+ this.onChangeCall(this.getJson());
104
104
  return this;
105
105
  }
106
106
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "three-base",
3
- "version": "1.0.80",
3
+ "version": "1.0.81",
4
4
  "description": "three 3d three-base",
5
5
  "repository": {
6
6
  "type": "git",