three-base 2.0.62 → 2.0.64

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/ThreeBase.js CHANGED
@@ -134,6 +134,9 @@ export default class ThreeBase extends EventDispatcher {
134
134
  this.renderer.forceContextRestore();
135
135
  this.renderer.domElement.style.opacity = "1";
136
136
  this.needRender = true;
137
+ setTimeout(() => {
138
+ this.needRender = true;
139
+ }, 100);
137
140
  }
138
141
  this.setSize(div.clientWidth, div.clientHeight);
139
142
  // 开启时时渲染
package/ThreeBase.ts CHANGED
@@ -153,6 +153,9 @@ export default class ThreeBase extends EventDispatcher {
153
153
  this.renderer.forceContextRestore();
154
154
  this.renderer.domElement.style.opacity = "1";
155
155
  this.needRender = true;
156
+ setTimeout(() => {
157
+ this.needRender = true;
158
+ }, 100);
156
159
  }
157
160
 
158
161
  this.setSize(div.clientWidth, div.clientHeight);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "three-base",
3
- "version": "2.0.62",
3
+ "version": "2.0.64",
4
4
  "description": "three 3d three-base",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"