@fxi/zartigl 0.6.0 → 0.7.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/README.md +79 -39
- package/dist/backdrop-DctkJ45Q.js +79 -0
- package/dist/catalog.d.ts +136 -15
- package/dist/catalog.js +246 -90
- package/dist/engine.d.ts +324 -22
- package/dist/engine.js +78 -25
- package/dist/{geovideo-index-CD5wflJT.js → geovideo-index-CMGVia5M.js} +567 -252
- package/dist/zartigl.d.ts +168 -18
- package/dist/zartigl.js +2057 -1890
- package/package.json +7 -20
- package/dist/GeoVideoScalarSource-DoQAnyTy.js +0 -38
- package/dist/land-50m-BX3pQS4x.js +0 -15
- package/dist/projversor.d.ts +0 -919
- package/dist/projversor.js +0 -2374
- package/dist/scalar-color-domain-PEK8Hxg1.js +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fxi/zartigl",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
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",
|
|
@@ -101,18 +92,15 @@
|
|
|
101
92
|
}
|
|
102
93
|
},
|
|
103
94
|
"dependencies": {
|
|
104
|
-
"@types/d3": "^7.4.3",
|
|
105
|
-
"d3": "^7.9.0",
|
|
106
95
|
"numcodecs": "^0.3.2",
|
|
107
|
-
"pako": "^2.1.0"
|
|
108
|
-
"topojson-client": "^3.1.0"
|
|
96
|
+
"pako": "^2.1.0"
|
|
109
97
|
},
|
|
110
98
|
"devDependencies": {
|
|
111
|
-
"@fontsource-variable/inter-tight": "^5.3.0",
|
|
112
99
|
"@tweakpane/core": "^2.0.5",
|
|
100
|
+
"@types/d3": "^7.4.3",
|
|
113
101
|
"@types/pako": "^2.0.4",
|
|
114
|
-
"@types/topojson-client": "^3.1.5",
|
|
115
102
|
"@typescript-eslint/parser": "8.46.4",
|
|
103
|
+
"d3": "^7.9.0",
|
|
116
104
|
"eslint": "9.39.5",
|
|
117
105
|
"eslint-config-prettier": "10.1.8",
|
|
118
106
|
"globals": "16.5.0",
|
|
@@ -123,7 +111,6 @@
|
|
|
123
111
|
"vite": "^7.3.1",
|
|
124
112
|
"vite-plugin-dts": "^4.5.4",
|
|
125
113
|
"vite-plugin-glsl": "^1.5.5",
|
|
126
|
-
"vitest": "^4.1.7"
|
|
127
|
-
"world-atlas": "^2.0.2"
|
|
114
|
+
"vitest": "^4.1.7"
|
|
128
115
|
}
|
|
129
116
|
}
|
|
@@ -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
|
-
};
|