@aibee/crc-bmap 0.0.34 → 0.0.36

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.esm.js CHANGED
@@ -146,12 +146,12 @@ function initCamera(width, height) {
146
146
  }
147
147
  function initLight() {
148
148
  const lights = new Group();
149
- const hemisphereLight = new HemisphereLight(16777215, 15658734, 1);
149
+ const hemisphereLight = new HemisphereLight(16777215, 16777215, 2);
150
150
  hemisphereLight.intensity = 1;
151
151
  hemisphereLight.position.set(0, 0, 10);
152
152
  hemisphereLight.up.set(0, 0, 1);
153
153
  lights.add(hemisphereLight);
154
- const ambientLight = new AmbientLight(16777215);
154
+ const ambientLight = new AmbientLight(16777215, 1);
155
155
  lights.add(ambientLight);
156
156
  return lights;
157
157
  }
@@ -178,7 +178,7 @@ function initDirectionalLight(color = 16777215, intensity = 1) {
178
178
  directionalLight.castShadow = true;
179
179
  directionalLight.shadow.radius = 8;
180
180
  directionalLight.shadow.bias = -1e-3;
181
- directionalLight.shadow.mapSize.set(256, 256);
181
+ directionalLight.shadow.mapSize.set(64, 64);
182
182
  directionalLight.shadow.camera.left = -200;
183
183
  directionalLight.shadow.camera.right = 200;
184
184
  directionalLight.shadow.camera.top = 200;
@@ -2447,6 +2447,10 @@ var BMap = class extends EventDispatcher6 {
2447
2447
  return { curFloor, graphics: [] };
2448
2448
  }
2449
2449
  const grounds = data.filter((item) => item.info.group === "ground");
2450
+ grounds.forEach((item) => {
2451
+ item.info.fillColor = "#F5F7F9";
2452
+ item.info.strokeOpacity = 0;
2453
+ });
2450
2454
  const groundGraphics = grounds.map((ground) => new Graphic(this.context, ground.info));
2451
2455
  curFloor.addGrounds(groundGraphics);
2452
2456
  const graphicData = data.filter((item) => item.info.group !== "ground");