@kimap/indoor-positioning-sdk-vue2 3.9.3 → 3.9.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kimap/indoor-positioning-sdk-vue2",
3
- "version": "3.9.3",
3
+ "version": "3.9.4",
4
4
  "description": "Vue2自包含室内定位SDK - 完全兼容Webpack3+Babel6 | Vue2 Self-Contained Indoor Positioning SDK",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -340,19 +340,17 @@
340
340
  this.renderer.shadowMap.enabled = true;
341
341
  this.renderer.shadowMap.type = THREE.PCFSoftShadowMap;
342
342
 
343
- // 设置输出色彩空间为sRGB
343
+ // 设置输出色彩空间为sRGB(与3D预览保持一致)
344
344
  this.renderer.outputColorSpace = THREE.SRGBColorSpace;
345
345
 
346
- // 色调映射设置(优化颜色显示)
347
- this.renderer.toneMapping = THREE.CineonToneMapping; // 3 = Cineon
348
- this.renderer.toneMappingExposure = 1.0;
346
+ // 不使用toneMapping,与3D预览保持一致
347
+ // this.renderer.toneMapping = THREE.CineonToneMapping;
348
+ // this.renderer.toneMappingExposure = 1.0;
349
349
 
350
350
  console.log('🖼️ 渲染器配置:', {
351
351
  outputColorSpace: this.renderer.outputColorSpace,
352
352
  shadowMapEnabled: this.renderer.shadowMap.enabled,
353
- shadowMapType: this.renderer.shadowMap.type,
354
- toneMapping: this.renderer.toneMapping,
355
- toneMappingExposure: this.renderer.toneMappingExposure
353
+ shadowMapType: this.renderer.shadowMap.type
356
354
  });
357
355
 
358
356
  this.container.appendChild(this.renderer.domElement);
package/src/KimapCore.js CHANGED
@@ -370,7 +370,7 @@ SceneCore.prototype.setCameraPosition = function() {
370
370
  };
371
371
 
372
372
  SceneCore.prototype.initRenderer = function() {
373
- this.renderer = new THREE.WebGLRenderer({ antialias: true });
373
+ this.renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
374
374
  this.renderer.setSize(this.container.clientWidth, this.container.clientHeight);
375
375
  this.renderer.setPixelRatio(window.devicePixelRatio);
376
376
 
@@ -378,12 +378,12 @@ SceneCore.prototype.initRenderer = function() {
378
378
  this.renderer.shadowMap.enabled = true;
379
379
  this.renderer.shadowMap.type = THREE.PCFSoftShadowMap;
380
380
 
381
- // 设置输出色彩空间为sRGB
381
+ // 设置输出色彩空间为sRGB(与3D预览保持一致)
382
382
  this.renderer.outputColorSpace = THREE.SRGBColorSpace;
383
383
 
384
- // 色调映射设置(优化颜色显示)
385
- this.renderer.toneMapping = THREE.CineonToneMapping; // 3 = Cineon
386
- this.renderer.toneMappingExposure = 1.0;
384
+ // 不使用toneMapping,与3D预览保持一致
385
+ // this.renderer.toneMapping = THREE.CineonToneMapping;
386
+ // this.renderer.toneMappingExposure = 1.0;
387
387
 
388
388
  this.container.appendChild(this.renderer.domElement);
389
389
  };