@kimap/indoor-positioning-sdk-vue2 3.4.1 → 3.4.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kimap/indoor-positioning-sdk-vue2",
3
- "version": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "description": "Vue2自包含室内定位SDK - 完全兼容Webpack3+Babel6 | Vue2 Self-Contained Indoor Positioning SDK",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -159,7 +159,10 @@
159
159
  config.modelToRealScale = parseFloat(line.split(' ')[2]);
160
160
  }
161
161
 
162
- if (line.indexOf('End Config Info') !== -1) break;
162
+ // 只在遇到 End Config Info 时停止(不要在 End Border Info 时停止)
163
+ if (line.indexOf('End Config Info') !== -1) {
164
+ break;
165
+ }
163
166
  }
164
167
 
165
168
  return foundConfig ? config : null;
package/src/KimapCore.js CHANGED
@@ -252,8 +252,8 @@ function extractMapConfigFromOBJ(objContent) {
252
252
  config.modelToRealScale = parseFloat(line.split(' ')[2]);
253
253
  }
254
254
 
255
- // 如果遇到 End Config Info 或其他结束标记,停止解析
256
- if (line.indexOf('End Config Info') !== -1 || line.indexOf('===== End Border Info =====') !== -1) {
255
+ // 只在遇到 End Config Info 时停止(不要在 End Border Info 时停止)
256
+ if (line.indexOf('End Config Info') !== -1) {
257
257
  break;
258
258
  }
259
259
  }