@kimap/indoor-positioning-sdk-vue2 4.3.5 → 4.3.6
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/package.json +1 -1
- package/src/KMUtil.js +6 -0
package/package.json
CHANGED
package/src/KMUtil.js
CHANGED
|
@@ -309,6 +309,12 @@
|
|
|
309
309
|
|
|
310
310
|
var obstacles = [];
|
|
311
311
|
|
|
312
|
+
// 0. 如果直接传入的是家具数组,转换为kidata格式
|
|
313
|
+
if (Array.isArray(kidata)) {
|
|
314
|
+
console.log('KMUtil: 检测到直接传入家具数组,数量:', kidata.length);
|
|
315
|
+
kidata = { furnitures: kidata };
|
|
316
|
+
}
|
|
317
|
+
|
|
312
318
|
// 1. 优先从kidata的floors中提取障碍物
|
|
313
319
|
if (kidata.floors && Array.isArray(kidata.floors)) {
|
|
314
320
|
console.log('KMUtil: 从kidata.floors提取障碍物,楼层数量:', kidata.floors.length);
|