@fxi/zartigl 0.6.0 → 0.7.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fxi/zartigl",
3
- "version": "0.6.0",
3
+ "version": "0.7.1",
4
4
  "description": "MapLibre GL JS visualization for catalog-backed Zarr, WMTS, and GeoVideo data",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,10 +23,6 @@
23
23
  "import": "./dist/engine.js",
24
24
  "types": "./dist/engine.d.ts"
25
25
  },
26
- "./projversor": {
27
- "import": "./dist/projversor.js",
28
- "types": "./dist/projversor.d.ts"
29
- },
30
26
  "./story": {
31
27
  "import": "./dist/story.js",
32
28
  "types": "./dist/story.d.ts"
@@ -39,19 +35,14 @@
39
35
  "dev": "vite",
40
36
  "dev:story": "vite --config vite.config.story.ts",
41
37
  "dev:geovideo-vector": "vite --config vite.config.geovideo-vector.ts",
42
- "dev:projection": "vite --config vite.config.projection.ts",
43
- "dev:story-projversor": "vite --config vite.config.story-projversor.ts",
44
- "dev:site": "vite --config vite.config.site.ts",
45
38
  "dev:prod": "npm run dev",
46
39
  "test": "vitest run",
47
40
  "test:unit": "vitest run",
48
41
  "build": "vite build",
49
42
  "build:story": "vite build --config vite.config.story.ts",
50
- "build:projection": "vite build --config vite.config.projection.ts",
51
- "build:story-projversor": "vite build --config vite.config.story-projversor.ts",
52
- "build:site": "vite build --config vite.config.site.ts",
53
43
  "build:prod": "npm run build",
54
- "build:lib": "vite build --config vite.config.lib.ts",
44
+ "build:lib": "vite build --config vite.config.lib.ts && npm run check:dist",
45
+ "check:dist": "node scripts/check-dist-imports.mjs",
55
46
  "preview": "vite preview",
56
47
  "release": "npm run release:patch",
57
48
  "release:patch": "npm version patch && git push origin main --follow-tags",
@@ -68,6 +59,7 @@
68
59
  "geovideo:run": "uv run scripts/geovideo/archive.py run",
69
60
  "geovideo:progress": "uv run scripts/geovideo/archive.py plan --summary",
70
61
  "test:geovideo": "uv run --no-project --with boto3 --with 'fsspec[http]' --with numpy --with requests --with xarray --with 'zarr>=3' python -m unittest discover -s scripts/geovideo -p 'test_*.py'",
62
+ "test:netcdf-to-zarr": "uv run --no-project --with boto3 --with 'dask[array]' --with fsspec --with netcdf4 --with numcodecs --with numpy --with requests --with xarray --with 'zarr>=3' python -m unittest discover -s scripts/netcdf_to_zarr/noaa/crw_dhw -p 'test_*.py'",
71
63
  "geovideo:calibrate": "uv run scripts/geovideo/calibrate.py",
72
64
  "geovideo:calibrate:browser": "uv run scripts/geovideo/browser_calibrate.py",
73
65
  "smoke:sample": "npm run build:lib && node scripts/smoke-sample-point.mjs",
@@ -101,18 +93,15 @@
101
93
  }
102
94
  },
103
95
  "dependencies": {
104
- "@types/d3": "^7.4.3",
105
- "d3": "^7.9.0",
106
96
  "numcodecs": "^0.3.2",
107
- "pako": "^2.1.0",
108
- "topojson-client": "^3.1.0"
97
+ "pako": "^2.1.0"
109
98
  },
110
99
  "devDependencies": {
111
- "@fontsource-variable/inter-tight": "^5.3.0",
112
100
  "@tweakpane/core": "^2.0.5",
101
+ "@types/d3": "^7.4.3",
113
102
  "@types/pako": "^2.0.4",
114
- "@types/topojson-client": "^3.1.5",
115
103
  "@typescript-eslint/parser": "8.46.4",
104
+ "d3": "^7.9.0",
116
105
  "eslint": "9.39.5",
117
106
  "eslint-config-prettier": "10.1.8",
118
107
  "globals": "16.5.0",
@@ -123,7 +112,6 @@
123
112
  "vite": "^7.3.1",
124
113
  "vite-plugin-dts": "^4.5.4",
125
114
  "vite-plugin-glsl": "^1.5.5",
126
- "vitest": "^4.1.7",
127
- "world-atlas": "^2.0.2"
115
+ "vitest": "^4.1.7"
128
116
  }
129
117
  }
@@ -1,38 +0,0 @@
1
- import { G as s } from "./geovideo-index-CD5wflJT.js";
2
- function u(o, e) {
3
- const a = Math.max(
4
- 0,
5
- Math.min(
6
- 1,
7
- (o - e.codeMin) / (e.codeMax - e.codeMin)
8
- )
9
- );
10
- return e.valueMin + a * (e.valueMax - e.valueMin);
11
- }
12
- function d(o, e, a, c) {
13
- const t = e.length;
14
- if (o.length !== t)
15
- throw new Error(
16
- `GeoVideo scalar frame has ${o.length} codes, expected ${t}`
17
- );
18
- const n = new Float32Array(256);
19
- for (let r = 0; r < 256; r++)
20
- n[r] = u(r, c);
21
- const i = a * 255, l = new Float32Array(t);
22
- for (let r = 0; r < t; r++)
23
- l[r] = e[r] >= i ? n[o[r]] : NaN;
24
- return l;
25
- }
26
- class m extends s {
27
- constructor(e, a = {}) {
28
- if (e.encoding.kind !== "scalar-luma")
29
- throw new Error("GeoVideoScalarSource requires a scalar-luma manifest");
30
- super(e, 1, a), this.encoding = e.encoding;
31
- }
32
- decodeCodes(e, a, c) {
33
- return d(e, a, c, this.encoding);
34
- }
35
- }
36
- export {
37
- m as G
38
- };