@aibee/crc-bmap 0.8.63 → 0.8.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.
@@ -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
  });
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.64",
4
4
  "description": "",
5
5
  "main": "lib/bmap.min.js",
6
6
  "module": "lib/bmap.esm.js",