@aibee/crc-bmap 0.8.98 → 0.8.99

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.
@@ -33,6 +33,7 @@ export class Renderer extends WebGLRenderer {
33
33
  this.timer.dispose();
34
34
  this.enable = false;
35
35
  super.dispose();
36
+ this.domElement = null;
36
37
  }
37
38
  constructor(options){
38
39
  super(_extends({
@@ -235,6 +235,13 @@ export class TextTextureFactory {
235
235
  }
236
236
  };
237
237
  this.timer.requestIdleCallback(loop);
238
+ // fix: 部分机型下 idle 不执行 回退到同步
239
+ this.timer.setTimeout(()=>{
240
+ if (i === 0) {
241
+ console.log("idle 不执行 回退到同步");
242
+ resolve(this.getTextsSync(texts, options, originHeight));
243
+ }
244
+ }, 1000);
238
245
  });
239
246
  }
240
247
  static getTextsSync(texts, options, originHeight) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibee/crc-bmap",
3
- "version": "0.8.98",
3
+ "version": "0.8.99",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.min.js",
@@ -35,7 +35,7 @@
35
35
  "@types/node": "^20.8.3",
36
36
  "@types/node-dijkstra": "^2.5.6",
37
37
  "@types/tween.js": "^18.6.1",
38
- "esbuild": "^0.24.2",
38
+ "esbuild": "^0.25.0",
39
39
  "esbuild-plugin-inline-worker": "^0.1.1",
40
40
  "eslint": "^8.51.0",
41
41
  "eslint-plugin-prettier": "^5.0.0",