Skip to content

Commit 9662f03

Browse files
committed
Update route-snapper-ts (no changes here)
1 parent b3a2f81 commit 9662f03

File tree

4 files changed

+96
-9
lines changed

4 files changed

+96
-9
lines changed

web/package-lock.json

+91-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"dependencies": {
3131
"@picocss/pico": "^2.0.3",
3232
"@turf/along": "^7.0.0-alpha.114",
33-
"route-snapper-ts": "^0.0.3",
33+
"route-snapper-ts": "^0.0.5",
3434
"svelte-maplibre": "^0.8.3",
3535
"svelte-utils": "github:a-b-street/svelte-utils"
3636
}

web/src/SetBoundaryMode.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
import SnapPolygonControls from "./common/snapper/SnapPolygonControls.svelte";
77
import SplitComponent from "./SplitComponent.svelte";
88
import { autosave, app, mode, route_tool } from "./stores";
9-
import type { Props } from "route-snapper-ts";
9+
import type { AreaProps } from "route-snapper-ts";
1010
1111
export let name: string;
12-
export let existing: Feature<Polygon, Props> | null;
12+
export let existing: Feature<Polygon, AreaProps> | null;
1313
1414
if (existing) {
1515
$route_tool!.editExistingArea(existing);

web/src/stores.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { LTN } from "backend";
22
import type { Feature, Polygon } from "geojson";
33
import { LngLat, type Map } from "maplibre-gl";
44
import { get, writable, type Writable } from "svelte/store";
5-
import { RouteTool, type Props } from "route-snapper-ts";
5+
import { RouteTool, type AreaProps } from "route-snapper-ts";
66

77
export const maptilerApiKey = "MZEJTanw3WpxRvt7qDfo";
88

@@ -19,7 +19,7 @@ export type Mode =
1919
| {
2020
mode: "set-boundary";
2121
name: string;
22-
existing: Feature<Polygon, Props> | null;
22+
existing: Feature<Polygon, AreaProps> | null;
2323
}
2424
| {
2525
mode: "neighbourhood";

0 commit comments

Comments
 (0)