@aibee/crc-bmap 0.8.97 → 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({
@@ -9,10 +9,10 @@ interface MergeGraphicEventMap extends GraphicEventMap {
9
9
  }
10
10
  export declare class MergeGraphic extends Object3D<MergeGraphicEventMap> {
11
11
  private context;
12
- geometry: BufferGeometry;
13
- material: ShaderMaterial;
14
- mesh: Mesh;
15
- line: LineSegments;
12
+ geometry?: BufferGeometry;
13
+ material?: ShaderMaterial;
14
+ mesh?: Mesh;
15
+ line?: LineSegments;
16
16
  lineMaterial?: LineBasicMaterial;
17
17
  lineGeometry?: BufferGeometry;
18
18
  options: GraphicOptions[];
@@ -115,9 +115,9 @@ export class MergeGraphic extends Object3D {
115
115
  return line;
116
116
  }
117
117
  dispose() {
118
- var _this_line;
119
- this.geometry.dispose();
120
- this.material.dispose();
118
+ var _this_geometry, _this_material, _this_line;
119
+ (_this_geometry = this.geometry) == null ? void 0 : _this_geometry.dispose();
120
+ (_this_material = this.material) == null ? void 0 : _this_material.dispose();
121
121
  (_this_line = this.line) == null ? void 0 : _this_line.geometry.dispose();
122
122
  this.clear();
123
123
  }
@@ -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.97",
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",