maplibre-gl-lidar 0.2.0 → 0.3.1
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/dist/{LidarLayerAdapter-AsxiD9q_.cjs → LidarLayerAdapter-BFhI93Is.cjs} +10 -8
- package/dist/{LidarLayerAdapter-AsxiD9q_.cjs.map → LidarLayerAdapter-BFhI93Is.cjs.map} +1 -1
- package/dist/{LidarLayerAdapter-C-CjgaZ_.js → LidarLayerAdapter-Cefl4jQL.js} +10 -8
- package/dist/{LidarLayerAdapter-C-CjgaZ_.js.map → LidarLayerAdapter-Cefl4jQL.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.mjs +2 -2
- package/dist/types/lib/core/LidarControl.d.ts.map +1 -1
- package/dist/types/lib/loaders/PointCloudLoader.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -33539,8 +33539,7 @@ async function getLazPerf$1() {
|
|
|
33539
33539
|
lazPerfInstance$1 = await webExports.createLazPerf({
|
|
33540
33540
|
locateFile: (path) => {
|
|
33541
33541
|
if (path.endsWith(".wasm")) {
|
|
33542
|
-
|
|
33543
|
-
return `${base}laz-perf.wasm`;
|
|
33542
|
+
return "https://unpkg.com/laz-perf@0.0.7/lib/web/laz-perf.wasm";
|
|
33544
33543
|
}
|
|
33545
33544
|
return path;
|
|
33546
33545
|
}
|
|
@@ -34285,8 +34284,7 @@ async function getLazPerf() {
|
|
|
34285
34284
|
lazPerfInstance = await webExports.createLazPerf({
|
|
34286
34285
|
locateFile: (path) => {
|
|
34287
34286
|
if (path.endsWith(".wasm")) {
|
|
34288
|
-
|
|
34289
|
-
return `${base}laz-perf.wasm`;
|
|
34287
|
+
return "https://unpkg.com/laz-perf@0.0.7/lib/web/laz-perf.wasm";
|
|
34290
34288
|
}
|
|
34291
34289
|
return path;
|
|
34292
34290
|
}
|
|
@@ -37400,7 +37398,7 @@ class LidarControl {
|
|
|
37400
37398
|
this._viewportManagers.set(id, viewportManager);
|
|
37401
37399
|
const info2 = {
|
|
37402
37400
|
id,
|
|
37403
|
-
name: `${name}
|
|
37401
|
+
name: `${name}`,
|
|
37404
37402
|
pointCount: totalPoints,
|
|
37405
37403
|
bounds: bounds2,
|
|
37406
37404
|
hasRGB,
|
|
@@ -38054,6 +38052,7 @@ class LidarControl {
|
|
|
38054
38052
|
* @param info - Picked point information or null if no point
|
|
38055
38053
|
*/
|
|
38056
38054
|
_handlePointHover(info2) {
|
|
38055
|
+
var _a;
|
|
38057
38056
|
if (!this._tooltip) return;
|
|
38058
38057
|
if (info2 && this._state.pickable) {
|
|
38059
38058
|
let html = `
|
|
@@ -38093,8 +38092,11 @@ class LidarControl {
|
|
|
38093
38092
|
}
|
|
38094
38093
|
this._tooltip.innerHTML = html;
|
|
38095
38094
|
this._tooltip.style.display = "block";
|
|
38096
|
-
|
|
38097
|
-
|
|
38095
|
+
const containerRect = (_a = this._mapContainer) == null ? void 0 : _a.getBoundingClientRect();
|
|
38096
|
+
const offsetX = (containerRect == null ? void 0 : containerRect.left) ?? 0;
|
|
38097
|
+
const offsetY = (containerRect == null ? void 0 : containerRect.top) ?? 0;
|
|
38098
|
+
this._tooltip.style.left = `${info2.x + offsetX + 15}px`;
|
|
38099
|
+
this._tooltip.style.top = `${info2.y + offsetY + 15}px`;
|
|
38098
38100
|
} else {
|
|
38099
38101
|
this._tooltip.style.display = "none";
|
|
38100
38102
|
}
|
|
@@ -38433,4 +38435,4 @@ exports.generateId = generateId;
|
|
|
38433
38435
|
exports.getClassificationName = getClassificationName;
|
|
38434
38436
|
exports.getFilename = getFilename;
|
|
38435
38437
|
exports.throttle = throttle;
|
|
38436
|
-
//# sourceMappingURL=LidarLayerAdapter-
|
|
38438
|
+
//# sourceMappingURL=LidarLayerAdapter-BFhI93Is.cjs.map
|