@aibee/crc-bmap 0.2.20 → 0.2.21
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.
- package/lib/bmap.cjs.min.js +1 -1
- package/lib/bmap.cjs.min.js.map +3 -3
- package/lib/bmap.esm.js +5 -1
- package/lib/bmap.esm.js.map +2 -2
- package/lib/bmap.esm.min.js +1 -1
- package/lib/bmap.esm.min.js.map +3 -3
- package/lib/bmap.min.js +1 -1
- package/lib/bmap.min.js.map +3 -3
- package/package.json +1 -1
package/lib/bmap.esm.js
CHANGED
|
@@ -10384,8 +10384,11 @@ var PositionNavigation = class extends EventDispatcher10 {
|
|
|
10384
10384
|
const paths = [
|
|
10385
10385
|
{ floor: curRoutePath?.floor, points: path },
|
|
10386
10386
|
...allPath.slice(routeIndex + 1)
|
|
10387
|
-
]
|
|
10387
|
+
];
|
|
10388
10388
|
const { distance, closestPoint, index, i: i2 } = paths.reduce((obj, cur, index2) => {
|
|
10389
|
+
if (cur.floor !== floor2) {
|
|
10390
|
+
return obj;
|
|
10391
|
+
}
|
|
10389
10392
|
const { distance: distance2, closestPoint: closestPoint2, index: i3 } = cur.points.reduce((obj2, cur2, index3, arr) => {
|
|
10390
10393
|
if (!arr[index3 + 1]) {
|
|
10391
10394
|
return obj2;
|
|
@@ -10405,6 +10408,7 @@ var PositionNavigation = class extends EventDispatcher10 {
|
|
|
10405
10408
|
}
|
|
10406
10409
|
toPosition(floor2, pos) {
|
|
10407
10410
|
const adsorbData = this.adsorb(floor2, pos);
|
|
10411
|
+
console.log("adsorbData", adsorbData);
|
|
10408
10412
|
if (!adsorbData) {
|
|
10409
10413
|
return;
|
|
10410
10414
|
}
|