@navaramap/core 0.0.8 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2026 MapLibre contributors
1
+ Copyright (c) 2026 Navara contributors
2
2
 
3
3
  This project is dual-licensed under either of
4
4
 
package/README.md CHANGED
@@ -1,3 +1,13 @@
1
1
  # @navaramap/core
2
2
 
3
- This is a core module for Navara for Web platform.
3
+ The shared foundation for Navara's web packages. Navara is a 3D globe map engine whose reusable GIS logic lives in a Rust/WASM core with drawing delegated to a swappable rendering backend. This package holds the rendering-engine-agnostic TypeScript building blocks that every other `@navaramap/*` package builds on: common geospatial and engine types (geodetic coordinates, camera, transform, ray/plane, tile, feature, layer), the event and transaction system, plugin abstractions, color and colormap utilities, globe constants, and assorted helpers (IDs, batching, assertions).
4
+
5
+ Most applications don't depend on this package directly. Rendering bindings such as [`@navaramap/three`](https://github.com/reearth/navara/tree/main/web/navara_three) depend on it and re-export the types and utilities (e.g. `Color`, `LatLngHeight`) that applications need.
6
+
7
+ ## Documentation
8
+
9
+ See https://navara-docs.reearth.workers.dev/ for the full Navara documentation.
10
+
11
+ ## License
12
+
13
+ MIT OR Apache-2.0
package/dist/index.d.ts CHANGED
@@ -315,8 +315,12 @@ export declare type JsEvents = {
315
315
 
316
316
  export declare type JsEventsKey = keyof JsEvents;
317
317
 
318
+ /** Geodetic position: `lat`/`lng` in **degrees**. */
318
319
  export declare type LatLng = Omit<LatLngHeight, "height">;
319
320
 
321
+ /**
322
+ * Geodetic position: `lat`/`lng` in **degrees**, `height` in meters.
323
+ */
320
324
  export declare type LatLngHeight = Required<NormalizeWASMClass<LLE>>;
321
325
 
322
326
  export declare type LayerId = string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@navaramap/core",
3
3
  "type": "module",
4
- "version": "0.0.8",
4
+ "version": "0.1.0",
5
5
  "main": "dist/index.umd.cjs",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
package/src/types/unit.ts CHANGED
@@ -3,5 +3,9 @@ import type { LLE } from "@navaramap/engine";
3
3
  import type { NormalizeWASMClass } from "./utils";
4
4
 
5
5
  export type XYZ = { x: number; y: number; z: number };
6
+ /**
7
+ * Geodetic position: `lat`/`lng` in **degrees**, `height` in meters.
8
+ */
6
9
  export type LatLngHeight = Required<NormalizeWASMClass<LLE>>;
10
+ /** Geodetic position: `lat`/`lng` in **degrees**. */
7
11
  export type LatLng = Omit<LatLngHeight, "height">;