Browse Source

feat: replace @turf/turf with vanilla TS version

pull/388/head
Dan Ditomaso 1 year ago
parent
commit
b2e3dcbdec
  1. 2
      src/core/utils/maps.ts
  2. 2
      src/pages/Map.tsx

2
src/core/utils/maps.ts

@ -106,4 +106,4 @@ function getAllCoordinates(
return coords; return coords;
} }
export { bbox, lineString } export { bbox, lineString };

2
src/pages/Map.tsx

@ -8,9 +8,9 @@ import { SidebarSection } from "@components/UI/Sidebar/SidebarSection.tsx";
import { SidebarButton } from "@components/UI/Sidebar/sidebarButton.tsx"; import { SidebarButton } from "@components/UI/Sidebar/sidebarButton.tsx";
import { useAppStore } from "@core/stores/appStore.ts"; import { useAppStore } from "@core/stores/appStore.ts";
import { useDevice } from "@core/stores/deviceStore.ts"; import { useDevice } from "@core/stores/deviceStore.ts";
import { bbox, lineString } from "@core/utils/maps";
import type { Protobuf } from "@meshtastic/js"; import type { Protobuf } from "@meshtastic/js";
import { numberToHexUnpadded } from "@noble/curves/abstract/utils"; import { numberToHexUnpadded } from "@noble/curves/abstract/utils";
import { bbox, lineString } from "@core/utils/maps";
import { import {
BoxSelectIcon, BoxSelectIcon,
MapPinIcon, MapPinIcon,

Loading…
Cancel
Save