Skip to content

Commit

Permalink
Update svelte-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed May 17, 2024
1 parent 83c146f commit b3a2f81
Show file tree
Hide file tree
Showing 8 changed files with 780 additions and 24 deletions.
788 changes: 771 additions & 17 deletions web/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"dependencies": {
"@picocss/pico": "^2.0.3",
"@turf/along": "^6.5.0",
"@turf/along": "^7.0.0-alpha.114",
"route-snapper-ts": "^0.0.3",
"svelte-maplibre": "^0.8.3",
"svelte-utils": "github:a-b-street/svelte-utils"
Expand Down
3 changes: 2 additions & 1 deletion web/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
import { init as initRouteSnapper } from "route-snapper-ts";
import { onMount } from "svelte";
import { FillLayer, GeoJSON, MapLibre } from "svelte-maplibre";
import { notNull, Geocoder } from "svelte-utils";
import { notNull } from "svelte-utils";
import { Geocoder } from "svelte-utils/map";
import {
DisableInteractiveLayers,
Layout,
Expand Down
3 changes: 2 additions & 1 deletion web/src/RouteMode.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<script lang="ts">
import BackButton from "./BackButton.svelte";
import { GeoJSON, LineLayer, Marker } from "svelte-maplibre";
import { constructMatchExpression, notNull } from "svelte-utils";
import { notNull } from "svelte-utils";
import { constructMatchExpression } from "svelte-utils/map";
import { layerId, Link } from "./common";
import ModalFilterLayer from "./ModalFilterLayer.svelte";
import RenderNeighbourhood from "./RenderNeighbourhood.svelte";
Expand Down
2 changes: 1 addition & 1 deletion web/src/common/snapper/RouteSnapperLayer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
isLine,
isPoint,
isPolygon,
} from "svelte-utils";
} from "svelte-utils/map";
import { routeToolGj } from "./stores";
const circleRadiusPixels = 10;
Expand Down
2 changes: 1 addition & 1 deletion web/src/title/NewProjectMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { onMount } from "svelte";
import { Loading } from "svelte-utils";
import { Link } from "../common";
import { OverpassSelector } from "svelte-utils";
import { OverpassSelector } from "svelte-utils/overpass";
import { PolygonToolLayer } from "maplibre-draw-polygon";
import SplitComponent from "../SplitComponent.svelte";
import {
Expand Down
2 changes: 1 addition & 1 deletion web/src/title/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { get } from "svelte/store";
import { LngLat } from "maplibre-gl";
import { LTN } from "backend";
import type { Feature } from "geojson";
import { overpassQueryForPolygon } from "svelte-utils";
import { overpassQueryForPolygon } from "svelte-utils/overpass";
import { RouteTool } from "route-snapper-ts";
import { routeToolGj, snapMode, undoLength } from "../common/snapper/stores";
import {
Expand Down
2 changes: 1 addition & 1 deletion web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"moduleResolution": "Node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
/**
* Typecheck JS in `.svelte` and `.js` files by default.
Expand Down

0 comments on commit b3a2f81

Please sign in to comment.