@aibee/crc-bmap 0.8.63 → 0.8.65

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.
@@ -40,6 +40,7 @@ export interface NavigationConfig {
40
40
  speed: number;
41
41
  roadData: RoadData2[];
42
42
  runAnimationMaxTime: number;
43
+ navigationCameraBasic: number;
43
44
  }
44
45
  export declare class Navigation extends Plugin<EventMap> {
45
46
  path: Path | null;
@@ -24,7 +24,8 @@ const defaultConfig = {
24
24
  disablePathAnimation: false,
25
25
  speed: 1,
26
26
  roadData: [],
27
- runAnimationMaxTime: 1
27
+ runAnimationMaxTime: 1,
28
+ navigationCameraBasic: 45
28
29
  };
29
30
  export class Navigation extends Plugin {
30
31
  get curFloorPathLength() {
@@ -446,7 +447,7 @@ export class Navigation extends Plugin {
446
447
  const { clientSize: { width, height }, currentFloor } = this.bmap.context;
447
448
  const { max, min } = currentFloor.box;
448
449
  const baseScale = Math.min(width / (max.x - min.x), height / (max.y - min.y));
449
- const zoom = baseScale * (max.x - min.x) / 45;
450
+ const zoom = baseScale * (max.x - min.x) / this.options.navigationCameraBasic;
450
451
  return this.bmap.context.setZoom(zoom, this.startPoi.position, duration).finally(()=>{
451
452
  this.bmap.context.control.enabled = true;
452
453
  });
@@ -91,7 +91,7 @@ export class Path extends Object3D {
91
91
  });
92
92
  // 生成模型
93
93
  const mesh = this.mesh = new Mesh(lineGeometry, material);
94
- mesh.renderOrder = 9;
94
+ mesh.renderOrder = 100009;
95
95
  this.add(mesh);
96
96
  return mesh;
97
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibee/crc-bmap",
3
- "version": "0.8.63",
3
+ "version": "0.8.65",
4
4
  "description": "",
5
5
  "main": "lib/bmap.min.js",
6
6
  "module": "lib/bmap.esm.js",