@aibee/crc-bmap 0.0.77 → 0.0.79

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
@@ -414,9 +414,10 @@ function darkenColor(hexColor) {
414
414
  let r = parseInt(hexColor.substring(1, 3), 16);
415
415
  let g = parseInt(hexColor.substring(3, 5), 16);
416
416
  let b = parseInt(hexColor.substring(5, 7), 16);
417
- r = Math.floor(r * 0.95);
418
- g = Math.floor(g * 0.95);
419
- b = Math.floor(b * 0.95);
417
+ const factor = 0.7;
418
+ r = Math.floor(r * factor);
419
+ g = Math.floor(g * factor);
420
+ b = Math.floor(b * factor);
420
421
  let darkHexColor = "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
421
422
  return darkHexColor;
422
423
  }
@@ -1316,12 +1317,7 @@ var PoiLayer = class extends Layer {
1316
1317
  return;
1317
1318
  }
1318
1319
  const valid = range.some((box) => {
1319
- const xIntersect = right < box.right && right > box.left || left > box.left && left < box.right || left === box.left && right === box.right;
1320
- if (xIntersect) {
1321
- const yIntersect = bottom <= box.bottom && bottom > box.top || top >= box.top && top < box.bottom;
1322
- return yIntersect;
1323
- }
1324
- return false;
1320
+ return box.left < right && box.right > left && box.top < bottom && box.bottom > top;
1325
1321
  });
1326
1322
  item.parentSetVisible(!valid);
1327
1323
  if (!valid) {