@kimap/indoor-positioning-sdk-vue2 3.1.3 → 3.1.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/KimapCore.js +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kimap/indoor-positioning-sdk-vue2",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "Vue2自包含室内定位SDK - 完全兼容Webpack3+Babel6 | Vue2 Self-Contained Indoor Positioning SDK",
5
5
  "main": "index.js",
6
6
  "files": [
package/src/KimapCore.js CHANGED
@@ -453,6 +453,13 @@ SceneCore.prototype.loadMap = function(OBJLoader, MTLLoader) {
453
453
  var boundingBox = new THREE.Box3();
454
454
 
455
455
  self.mapModel.traverse(function(child) {
456
+ // 隐藏底平面交互层(用于射线检测,但不渲染)
457
+ if (child.name === 'HiddenGroundPlane' || child.name.includes('InteractionLayer')) {
458
+ child.visible = false;
459
+ console.log('✅ 隐藏交互层底平面:', child.name);
460
+ return;
461
+ }
462
+
456
463
  if (child instanceof THREE.Mesh) {
457
464
  meshCount++;
458
465
 
@@ -626,6 +633,13 @@ SceneCore.prototype.loadMap = function(OBJLoader, MTLLoader) {
626
633
  var boundingBox = new THREE.Box3();
627
634
 
628
635
  self.mapModel.traverse(function(child) {
636
+ // 隐藏底平面交互层(用于射线检测,但不渲染)
637
+ if (child.name === 'HiddenGroundPlane' || child.name.includes('InteractionLayer')) {
638
+ child.visible = false;
639
+ console.log('✅ 隐藏交互层底平面:', child.name);
640
+ return;
641
+ }
642
+
629
643
  if (child instanceof THREE.Mesh) {
630
644
  meshCount++;
631
645