Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
name: Frontend typecheck + build
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
cache: yarn
Expand All @@ -23,7 +23,7 @@ jobs:
name: Rust check + clippy + fmt
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@
"@tauri-apps/api": "^2",
"@tauri-apps/plugin-dialog": "^2.7.2",
"@tauri-apps/plugin-sql": "^2",
"maplibre-gl": "^4",
"maplibre-gl": "^6",
"pdf-lib": "^1.17.1",
"react": "^18",
"react-dom": "^18"
},
"devDependencies": {
"@tauri-apps/cli": "^2",
"@types/geojson": "^7946.0.16",
"@types/react": "^18",
"@types/react-dom": "^18",
"@vitejs/plugin-react": "^4",
"typescript": "^5",
"@vitejs/plugin-react": "^5",
"typescript": "^7",
"vite": "^5"
}
}
4 changes: 2 additions & 2 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/lib/renderMapImage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import maplibregl from "maplibre-gl";
import * as maplibregl from "maplibre-gl";
import type { Bounds } from "./geo";

export interface RasterLayer {
Expand Down Expand Up @@ -60,7 +60,7 @@ export async function renderMapImage(opts: RenderOptions): Promise<string> {
style: { version: 8, sources, layers },
bounds: [bounds.west, bounds.south, bounds.east, bounds.north],
fitBoundsOptions: { padding: 0, animate: false },
preserveDrawingBuffer: true,
canvasContextAttributes: { preserveDrawingBuffer: true },
interactive: false,
attributionControl: false,
pixelRatio: 1,
Expand Down
2 changes: 1 addition & 1 deletion src/screens/DataScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useRef, useState, useCallback } from "react";
import maplibregl from "maplibre-gl";
import * as maplibregl from "maplibre-gl";
import { invoke } from "../lib/ipc";
import type {
LayerManifestEntry,
Expand Down
2 changes: 1 addition & 1 deletion src/tabs/AreaTab.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useCallback, useEffect, useRef, useState } from "react";
import maplibregl from "maplibre-gl";
import * as maplibregl from "maplibre-gl";
import { invoke } from "../lib/ipc";
import { captureSaveEpoch, isSaveEpochCurrent, isStaleGenerationError } from "../lib/saveEpoch";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/tabs/LayersTab.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useRef, useState, useCallback } from "react";
import maplibregl from "maplibre-gl";
import * as maplibregl from "maplibre-gl";
import { invoke } from "../lib/ipc";
import { captureSaveEpoch, isSaveEpochCurrent, isStaleGenerationError } from "../lib/saveEpoch";
import type {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "ES2020",
"types": ["vite/client"],
"types": ["vite/client", "geojson"],
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
Expand Down
421 changes: 213 additions & 208 deletions yarn.lock

Large diffs are not rendered by default.