UNPKG

svelte-local-gpx-viewer

Version:

Local-first GPX routes viewer. Svelte-based components. Useable in Svelte projects and standalone (vanilla JS).

22 lines (21 loc) 707 B
import { type EntityTable, type Dexie as Dexietype } from 'dexie'; import type { FeatureCollection, Geometry, GeoJsonProperties } from 'geojson'; interface LocalGeoJSONRouteEntity { id?: number; name: string; data: FeatureCollection<Geometry, GeoJsonProperties>; distance: number; elevation: { positive: number; negative: number; }; visible: boolean; originalGPXData?: string; color: string; } declare const db: Dexietype & { geoJSONRoutes: EntityTable<LocalGeoJSONRouteEntity, "id">; }; declare const liveGeoJSONRoutes: import("dexie").Observable<LocalGeoJSONRouteEntity[]>; export { db, liveGeoJSONRoutes }; export type { LocalGeoJSONRouteEntity };