Skip to content

Commit

Permalink
npm run fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Aug 17, 2023
1 parent 2a9e93d commit aa9aa4c
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/lib/browse/InterventionColorSelector.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts">
import { constructMatchExpression } from "../maplibre";
import { colorInterventionsBySchema, schemaLegend } from "../../schemas";
import { map } from "../../stores";
import { Legend } from "../common";
import { Select } from "../govuk";
import { constructMatchExpression } from "../maplibre";
import { colors } from "./colors";
let colorInterventionsAccordingTo = "interventionType";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/browse/SchemeCard.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts">
import type { FeatureCollection } from "geojson";
import { bbox } from "../maplibre";
import { gjScheme, map } from "../../stores";
import { CollapsibleCard } from "../common";
import { SecondaryButton } from "../govuk";
import { bbox } from "../maplibre";
import type { Scheme } from "./data";
export let scheme: Scheme;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/draw/GeometryMode.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts">
import type { LineString, Point, Polygon } from "geojson";
import { MapMouseEvent } from "maplibre-gl";
import type { FeatureWithProps } from "../maplibre";
import { schemaSingularNoun } from "../../schemas";
import { currentMode, gjScheme, map, mapHover } from "../../stores";
import type { Feature, FeatureUnion, Schema } from "../../types";
import type { FeatureWithProps } from "../maplibre";
import type { EventHandler } from "./event_handler";
import type { PointTool } from "./point/point_tool";
import PointControls from "./point/PointControls.svelte";
Expand Down
16 changes: 8 additions & 8 deletions src/lib/draw/HoverLayer.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
<script lang="ts">
import type { GeoJSONSource } from "maplibre-gl";
import { circleRadius, colors, lineWidth } from "../../colors";
import {
formOpen,
gjScheme,
isAToolInUse,
map,
mapHover,
sidebarHover,
} from "../../stores";
import {
emptyGeojson,
isLine,
Expand All @@ -10,14 +18,6 @@
overwriteLineLayer,
overwriteSource,
} from "../maplibre";
import {
formOpen,
gjScheme,
isAToolInUse,
map,
mapHover,
sidebarHover,
} from "../../stores";
// Show clickable objects on the map using the cursor
$: {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/draw/InterventionLayer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
GeoJSONSource,
} from "maplibre-gl";
import { circleRadius, colors, lineWidth } from "../../colors";
import { gjScheme, map } from "../../stores";
import {
isLine,
isPoint,
Expand All @@ -14,7 +15,6 @@
overwritePolygonLayer,
overwriteSource,
} from "../maplibre";
import { gjScheme, map } from "../../stores";
export let colorInterventions: DataDrivenPropertyValueSpecification<string>;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/draw/polygon/PolygonMode.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts">
import type { Polygon } from "geojson";
import type { FeatureWithProps } from "../../maplibre";
import { currentMode } from "../../../stores";
import type { Mode } from "../../../types";
import type { FeatureWithProps } from "../../maplibre";
import { handleUnsavedFeature, setupEventListeners } from "../common";
import type { EventHandler } from "../event_handler";
import type { PolygonTool } from "./polygon_tool";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/draw/snap_polygon/SnapPolygonMode.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts">
import type { Polygon } from "geojson";
import type { FeatureWithProps } from "../../maplibre";
import { currentMode } from "../../../stores";
import type { Mode } from "../../../types";
import type { FeatureWithProps } from "../../maplibre";
import { handleUnsavedFeature, setupEventListeners } from "../common";
import type { EventHandler } from "../event_handler";
import type { RouteTool } from "../route/route_tool";
Expand Down
6 changes: 3 additions & 3 deletions src/lib/layers/SpeedLimits.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
} from "maplibre-gl";
import { onDestroy, onMount } from "svelte";
import { lineWidth } from "../../colors";
import { gjScheme, map, routeInfo } from "../../stores";
import type { Feature } from "../../types";
import { DiscreteLegend, HelpButton, InteractiveLayer } from "../common";
import {
emptyGeojson,
overwriteLineLayer,
overwriteSource,
} from "../maplibre";
import { gjScheme, map, routeInfo } from "../../stores";
import type { Feature } from "../../types";
import { DiscreteLegend, HelpButton, InteractiveLayer } from "../common";
// Show along a route if specified, or show all otherwise
export let id: number | undefined;
Expand Down

0 comments on commit aa9aa4c

Please sign in to comment.