three-base 2.0.62 → 2.0.63

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,8 @@ 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
+ await new Promise(resolve => setTimeout(resolve, 100));
138
+ this.needRender = true;
137
139
  }
138
140
  this.setSize(div.clientWidth, div.clientHeight);
139
141
  // 开启时时渲染
package/ThreeBase.ts CHANGED
@@ -153,6 +153,8 @@ 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
+ await new Promise(resolve => setTimeout(resolve, 100));
157
+ this.needRender = true;
156
158
  }
157
159
 
158
160
  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.63",
4
4
  "description": "three 3d three-base",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"