@aibee/crc-bmap 0.8.84 → 0.8.85

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.
@@ -89,13 +89,13 @@ export class PositionNavigation extends EventDispatcher {
89
89
  }
90
90
  const { distance, closestPoint } = distancePointToSegment(_position, cur, arr[index + 1]);
91
91
  if (prevFloor === floor) {
92
- // TODO 只能找30米内最近的点
92
+ // TODO 只能找10米内最近的点
93
93
  const remindPath = [
94
94
  _position,
95
95
  ...arr.slice(index + 1)
96
96
  ];
97
97
  const distance2 = getPathLength(remindPath);
98
- // console.log("index 距离", distance2, prevCurRouteRemainDistance, prevCurRouteRemainDistance - distance2, index, this.pointIndex)
98
+ // console.log("index 距离", floor, distance2, prevCurRouteRemainDistance, prevCurRouteRemainDistance - distance2, index, this.pointIndex)
99
99
  if (prevCurRouteRemainDistance - distance2 > 10) {
100
100
  // console.log("index 吵了", index, this.pointIndex)
101
101
  return obj;
@@ -138,7 +138,11 @@ export class PositionNavigation extends EventDispatcher {
138
138
  }
139
139
  toPosition(floor, pos) {
140
140
  const adsorbData = this.adsorb(floor, pos);
141
- // console.log("adsorbData index", adsorbData, pos)
141
+ // if (adsorbData) {
142
+ // console.log("adsorbData index", this.paths[adsorbData!.routeIndex]?.floor, adsorbData?.pointIndex, pos, this.paths[adsorbData!.routeIndex]?.points[0], adsorbData, pos)
143
+ // } else {
144
+ // console.log("adsorbData index", null)
145
+ // }
142
146
  if (!adsorbData) {
143
147
  return;
144
148
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibee/crc-bmap",
3
- "version": "0.8.84",
3
+ "version": "0.8.85",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",