@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/README.md +1 -1
- package/example/index.css +22 -22
- package/example/index.html +63 -63
- package/example/src/main.ts +581 -581
- package/example/vite.config.ts +29 -28
- package/lib/bmap.cjs.min.js +1 -1
- package/lib/bmap.cjs.min.js.map +3 -3
- package/lib/bmap.esm.js +5 -9
- package/lib/bmap.esm.js.map +2 -2
- package/lib/bmap.esm.min.js +1 -1
- package/lib/bmap.esm.min.js.map +3 -3
- package/lib/bmap.min.js +1 -1
- package/lib/bmap.min.js.map +3 -3
- package/package.json +47 -47
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
|
-
|
|
418
|
-
|
|
419
|
-
|
|
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
|
-
|
|
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) {
|