@nika-js/onlymap 0.8.4 → 0.9.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/CHANGELOG.md +32 -0
- package/README.md +56 -3
- package/dist/{LercDecode.es-BKustV-1.js → LercDecode.es-IEPCRZOv.js} +1 -1
- package/dist/{basemap-B0SwrOqQ.js → basemap-DL0mk9Bf.js} +780 -780
- package/dist/dem-decode.d.ts +58 -0
- package/dist/elements/om-map.d.ts +12 -0
- package/dist/{geoparquet-C5E6N6G0.js → geoparquet-DJxZA0if.js} +1 -1
- package/dist/hillshade-DR3TxO1a.js +186 -0
- package/dist/hillshade-apron-Bem3DWyJ.js +40 -0
- package/dist/hillshade-apron.d.ts +54 -0
- package/dist/hillshade-shader-n_zManfZ.js +160 -0
- package/dist/hillshade-shader.d.ts +152 -0
- package/dist/hillshade.d.ts +133 -0
- package/dist/html-data.d.ts +2 -2
- package/dist/{index-BLIjrGOE.js → index-BjcPjICh.js} +28 -28
- package/dist/{index-xUVMTGZG.js → index-CvuDsvnk.js} +23 -23
- package/dist/index-DO_w0tqR.js +514 -0
- package/dist/{index-BnQDfKfE.js → index-DdTZSuAb.js} +1 -1
- package/dist/{index-D5Fqn_eZ.js → index-oY3XHIux.js} +13145 -12484
- package/dist/{index-CaM1C93G.js → index-vLXZuog4.js} +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/lerc-Bph62dCb.js +22 -0
- package/dist/onlymap.standalone.js +28919 -27259
- package/dist/onlymapjs.js +95 -92
- package/dist/post-process/catalogue.d.ts +61 -0
- package/dist/post-process/compile.d.ts +37 -0
- package/dist/post-process/index.d.ts +71 -0
- package/dist/post-process/ops.d.ts +22 -0
- package/dist/post-process/presets.d.ts +33 -0
- package/dist/post-process/validate.d.ts +8 -0
- package/dist/programmatic.d.ts +11 -0
- package/dist/{raster-B_wekCHv.js → raster-D-eTzCE3.js} +609 -499
- package/dist/raster-hillshade.d.ts +119 -0
- package/dist/{raster-pipeline-Dn2fkLYx.js → raster-pipeline-BlOnMPJe.js} +510 -484
- package/dist/raster-pipeline.d.ts +10 -0
- package/dist/raster.d.ts +5 -0
- package/dist/runtime-core.d.ts +39 -1
- package/dist/terrain-heightfield.d.ts +0 -16
- package/dist/terrain-sample.d.ts +0 -13
- package/dist/version.d.ts +1 -1
- package/dist/volumetrics.d.ts +7 -0
- package/dist/{zarr-Dan2ab-l.js → zarr-BGDoEtFb.js} +2 -2
- package/docs/cartograph.md +2 -2
- package/docs/design/hillshade.md +290 -0
- package/docs/effects.md +208 -0
- package/docs/hillshade.md +203 -0
- package/llms.txt +3 -1
- package/onlymapjs.attributes.json +27 -2
- package/onlymapjs.html-data.json +207 -6
- package/package.json +13 -9
- package/skills/onlymapjs/SKILL.md +4 -2
- package/skills/onlymapjs/references/syntax.md +17 -2
- package/dist/lerc-TxsFLMlC.js +0 -30
package/onlymapjs.html-data.json
CHANGED
|
@@ -126,6 +126,10 @@
|
|
|
126
126
|
}
|
|
127
127
|
]
|
|
128
128
|
},
|
|
129
|
+
{
|
|
130
|
+
"name": "effects",
|
|
131
|
+
"description": "Print-finish switcher — preset radios over the map's own <om-effect>, written through the set-effect action so the choice is undoable and saved."
|
|
132
|
+
},
|
|
129
133
|
{
|
|
130
134
|
"name": "lighting-ambient",
|
|
131
135
|
"description": "Ambient light intensity (always-on fill), e.g. 0.9."
|
|
@@ -301,6 +305,163 @@
|
|
|
301
305
|
}
|
|
302
306
|
]
|
|
303
307
|
},
|
|
308
|
+
{
|
|
309
|
+
"name": "om-effect",
|
|
310
|
+
"description": "One entry in deck's effects array, as markup — a post-process pass over the rendered frame. Document order is pipeline order. Declare exactly one of: preset (a named look), op (one named operation), or an inline <script type=\"application/json\"> luma ShaderModule for raw GLSL.",
|
|
311
|
+
"attributes": [
|
|
312
|
+
{
|
|
313
|
+
"name": "preset",
|
|
314
|
+
"description": "A named look, expanded to its ops. Tune one knob with <op>-<param> (e.g. grain-amount), or eject it into markup with OmMap.expandPreset(name).",
|
|
315
|
+
"values": [
|
|
316
|
+
{
|
|
317
|
+
"name": "vintage"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"name": "engraved"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "night"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "blueprint"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "riso"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "newsprint"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"name": "muted"
|
|
336
|
+
}
|
|
337
|
+
]
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"name": "op",
|
|
341
|
+
"description": "One named operation; its knobs are this element's other attributes.",
|
|
342
|
+
"values": [
|
|
343
|
+
{
|
|
344
|
+
"name": "tint",
|
|
345
|
+
"description": "Duotone: pull the image toward ink-on-paper. `keep-color` lets saturated marks (the data) resist, so the base goes monochrome while the symbology stays readable."
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "levels",
|
|
349
|
+
"description": "Brightness, contrast and gamma, in that order — the usual tonal trim."
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "saturation",
|
|
353
|
+
"description": "0 is greyscale, 1 unchanged, above 1 boosts. Useful on its own to check a sheet survives photocopying."
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"name": "posterize",
|
|
357
|
+
"description": "Quantise each channel to N steps — a screen-print/riso flatness."
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "vignette",
|
|
361
|
+
"description": "Darken toward the corners. Keyed to the FRAME, not the map, so it is a property of the plate rather than of the ground it shows."
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"name": "grain",
|
|
365
|
+
"description": "Paper grain. `size` is the grain cell in millimetres, so it stays the same physical texture at any export resolution."
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "edges",
|
|
369
|
+
"description": "Ink the edges Sobel finds, in millimetres of line width — an engraved or pen-drawn register."
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "blur",
|
|
373
|
+
"description": "Gaussian-ish softening, radius in millimetres. Pair with `sharpen` for a printed-then-scanned register."
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"name": "sharpen",
|
|
377
|
+
"description": "Unsharp mask — puts a crisp edge back on a plate that has been softened or downsampled."
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"name": "halftone",
|
|
381
|
+
"description": "Screen the image into dots on a rotated grid, cell size in millimetres. Keeps each cell's own hue rather than going mono, so a thematic map stays readable."
|
|
382
|
+
}
|
|
383
|
+
]
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"name": "uniforms",
|
|
387
|
+
"description": "JSON uniform values for an inline shader module. Ignored by the preset and op lanes."
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "paper",
|
|
391
|
+
"description": "The light end of the duotone. Valid on: tint, halftone. On a preset, spell it <op>-paper."
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"name": "ink",
|
|
395
|
+
"description": "The dark end of the duotone. Valid on: tint. On a preset, spell it <op>-ink."
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"name": "amount",
|
|
399
|
+
"description": "0 leaves the image alone, 1 is full duotone. Valid on: tint, saturation, vignette, grain, edges, sharpen, halftone. On a preset, spell it <op>-amount."
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "keep-color",
|
|
403
|
+
"description": "How strongly saturated pixels resist the duotone. 0 tints everything; 1 keeps vivid marks. Valid on: tint. On a preset, spell it <op>-keep-color."
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"name": "brightness",
|
|
407
|
+
"description": "Added after contrast; -1 to 1. Valid on: levels. On a preset, spell it <op>-brightness."
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"name": "contrast",
|
|
411
|
+
"description": "1 leaves the image alone. Valid on: levels. On a preset, spell it <op>-contrast."
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"name": "gamma",
|
|
415
|
+
"description": "Above 1 lifts midtones, below 1 deepens them. Valid on: levels. On a preset, spell it <op>-gamma."
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"name": "levels",
|
|
419
|
+
"description": "Steps per channel; 2 or more. Valid on: posterize. On a preset, spell it <op>-levels."
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"name": "radius",
|
|
423
|
+
"description": "Where the falloff starts; 0 centre, 1 corner. Valid on: vignette, blur, sharpen. On a preset, spell it <op>-radius."
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"name": "softness",
|
|
427
|
+
"description": "How gradually it arrives. Valid on: vignette. On a preset, spell it <op>-softness."
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"name": "size",
|
|
431
|
+
"description": "Grain cell size in mm. In MILLIMETRES (e.g. 0.12mm), so it keeps its physical size at any export resolution. Valid on: grain. On a preset, spell it <op>-size."
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"name": "seed",
|
|
435
|
+
"description": "Any number; the same seed gives the same grain. Valid on: grain. On a preset, spell it <op>-seed."
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"name": "mono",
|
|
439
|
+
"description": "1 is luminance noise, 0 is per-channel colour noise. Valid on: grain. On a preset, spell it <op>-mono."
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"name": "width",
|
|
443
|
+
"description": "Sampling radius in mm — the ink's weight. In MILLIMETRES (e.g. 0.12mm), so it keeps its physical size at any export resolution. Valid on: edges. On a preset, spell it <op>-width."
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"name": "color",
|
|
447
|
+
"description": "Ink colour. Valid on: edges. On a preset, spell it <op>-color."
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"name": "cell",
|
|
451
|
+
"description": "Screen cell size in mm. In MILLIMETRES (e.g. 0.12mm), so it keeps its physical size at any export resolution. Valid on: halftone. On a preset, spell it <op>-cell."
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"name": "angle",
|
|
455
|
+
"description": "Screen angle in degrees. Valid on: halftone. On a preset, spell it <op>-angle."
|
|
456
|
+
}
|
|
457
|
+
],
|
|
458
|
+
"references": [
|
|
459
|
+
{
|
|
460
|
+
"name": "README",
|
|
461
|
+
"url": "https://github.com/NikaGeospatial/onlymapjs/blob/main/README.md"
|
|
462
|
+
}
|
|
463
|
+
]
|
|
464
|
+
},
|
|
304
465
|
{
|
|
305
466
|
"name": "om-layer",
|
|
306
467
|
"description": "A deck.gl layer declared as markup — attributes map to props (kebab-case), get-* attributes compile as accessors.",
|
|
@@ -361,6 +522,9 @@
|
|
|
361
522
|
{
|
|
362
523
|
"name": "HexagonLayer"
|
|
363
524
|
},
|
|
525
|
+
{
|
|
526
|
+
"name": "HillshadeLayer"
|
|
527
|
+
},
|
|
364
528
|
{
|
|
365
529
|
"name": "IconLayer"
|
|
366
530
|
},
|
|
@@ -988,7 +1152,7 @@
|
|
|
988
1152
|
},
|
|
989
1153
|
{
|
|
990
1154
|
"name": "max-zoom",
|
|
991
|
-
"description": "deck.gl maxZoom. Valid on: MVTLayer, PopupLayer, TerrainLayer, TileLayer."
|
|
1155
|
+
"description": "deck.gl maxZoom. Valid on: HillshadeLayer, MVTLayer, PopupLayer, TerrainLayer, TileLayer."
|
|
992
1156
|
},
|
|
993
1157
|
{
|
|
994
1158
|
"name": "scenegraph",
|
|
@@ -1104,7 +1268,7 @@
|
|
|
1104
1268
|
},
|
|
1105
1269
|
{
|
|
1106
1270
|
"name": "src",
|
|
1107
|
-
"description": "deck.gl src. Valid on: BIMLayer, COGLayer, ImageOverlay, ZarrLayer."
|
|
1271
|
+
"description": "deck.gl src. Valid on: BIMLayer, COGLayer, HillshadeLayer, ImageOverlay, ZarrLayer."
|
|
1108
1272
|
},
|
|
1109
1273
|
{
|
|
1110
1274
|
"name": "geometry",
|
|
@@ -1254,6 +1418,26 @@
|
|
|
1254
1418
|
"name": "nodata",
|
|
1255
1419
|
"description": "deck.gl nodataOverride. Valid on: COGLayer, ZarrLayer."
|
|
1256
1420
|
},
|
|
1421
|
+
{
|
|
1422
|
+
"name": "shading",
|
|
1423
|
+
"description": "deck.gl shading. Valid on: COGLayer, ZarrLayer."
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
"name": "sun-azimuth",
|
|
1427
|
+
"description": "deck.gl sunAzimuth. Valid on: COGLayer, HillshadeLayer, ZarrLayer."
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
"name": "sun-weight",
|
|
1431
|
+
"description": "deck.gl sunWeight. Valid on: COGLayer, HillshadeLayer, ZarrLayer."
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
"name": "sun-elevation",
|
|
1435
|
+
"description": "deck.gl sunElevation. Valid on: COGLayer, HillshadeLayer, ZarrLayer."
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
"name": "z-factor",
|
|
1439
|
+
"description": "deck.gl zFactor. Valid on: COGLayer, HillshadeLayer, ZarrLayer."
|
|
1440
|
+
},
|
|
1257
1441
|
{
|
|
1258
1442
|
"name": "variable",
|
|
1259
1443
|
"description": "deck.gl variable. Valid on: ZarrLayer."
|
|
@@ -1270,6 +1454,18 @@
|
|
|
1270
1454
|
"name": "spatial-dims",
|
|
1271
1455
|
"description": "deck.gl spatialDims. Valid on: ZarrLayer."
|
|
1272
1456
|
},
|
|
1457
|
+
{
|
|
1458
|
+
"name": "decoder",
|
|
1459
|
+
"description": "deck.gl decoder. Valid on: HillshadeLayer."
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
"name": "blend",
|
|
1463
|
+
"description": "deck.gl blend. Valid on: HillshadeLayer."
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
"name": "zoom-offset",
|
|
1467
|
+
"description": "deck.gl zoomOffset. Valid on: HillshadeLayer, MVTLayer, TerrainLayer, TileLayer."
|
|
1468
|
+
},
|
|
1273
1469
|
{
|
|
1274
1470
|
"name": "get-source-position",
|
|
1275
1471
|
"description": "Accessor for deck.gl getSourcePosition — expression language: $field, scale(), formatDate(), arithmetic. Valid on: ArcLayer, GreatCircleLayer, LineLayer."
|
|
@@ -1538,10 +1734,6 @@
|
|
|
1538
1734
|
"name": "debounce-time",
|
|
1539
1735
|
"description": "deck.gl debounceTime. Valid on: MVTLayer, TerrainLayer, TileLayer."
|
|
1540
1736
|
},
|
|
1541
|
-
{
|
|
1542
|
-
"name": "zoom-offset",
|
|
1543
|
-
"description": "deck.gl zoomOffset. Valid on: MVTLayer, TerrainLayer, TileLayer."
|
|
1544
|
-
},
|
|
1545
1737
|
{
|
|
1546
1738
|
"name": "visible-min-zoom",
|
|
1547
1739
|
"description": "deck.gl visibleMinZoom. Valid on: MVTLayer, TerrainLayer, TileLayer."
|
|
@@ -1975,6 +2167,9 @@
|
|
|
1975
2167
|
{
|
|
1976
2168
|
"name": "set-basemap"
|
|
1977
2169
|
},
|
|
2170
|
+
{
|
|
2171
|
+
"name": "set-effect"
|
|
2172
|
+
},
|
|
1978
2173
|
{
|
|
1979
2174
|
"name": "set-lighting"
|
|
1980
2175
|
},
|
|
@@ -2058,6 +2253,9 @@
|
|
|
2058
2253
|
{
|
|
2059
2254
|
"name": "lighting"
|
|
2060
2255
|
},
|
|
2256
|
+
{
|
|
2257
|
+
"name": "effects"
|
|
2258
|
+
},
|
|
2061
2259
|
{
|
|
2062
2260
|
"name": "clip-box"
|
|
2063
2261
|
},
|
|
@@ -2580,6 +2778,9 @@
|
|
|
2580
2778
|
{
|
|
2581
2779
|
"name": "set-basemap"
|
|
2582
2780
|
},
|
|
2781
|
+
{
|
|
2782
|
+
"name": "set-effect"
|
|
2783
|
+
},
|
|
2583
2784
|
{
|
|
2584
2785
|
"name": "set-lighting"
|
|
2585
2786
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nika-js/onlymap",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Declarative deck.gl maps for HTML and React
|
|
3
|
+
"version": "0.9.1",
|
|
4
|
+
"description": "Declarative deck.gl maps for HTML and React — interactive WebGL mapping with GeoJSON/CSV/Arrow data, MapLibre basemaps, widgets, popups, and live streams from a custom-element manifest or typed React components. TypeScript, no build step.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -119,14 +119,14 @@
|
|
|
119
119
|
],
|
|
120
120
|
"scripts": {
|
|
121
121
|
"dev": "vite",
|
|
122
|
-
"build": "npm run typecheck && npm run gen:licenses && vite build && vite build --config vite.react.config.ts && vite build --config vite.deck.config.ts && vite build --config vite.standalone.config.ts && vite build --config vite.cartograph.config.ts && vite build --config vite.cartograph-standalone.config.ts && node dev/assert-bundle-cdn-safe.mjs && npm run build:types",
|
|
122
|
+
"build": "npm run typecheck:src && npm run gen:licenses && vite build && vite build --config vite.react.config.ts && vite build --config vite.deck.config.ts && vite build --config vite.standalone.config.ts && vite build --config vite.cartograph.config.ts && vite build --config vite.cartograph-standalone.config.ts && node dev/assert-bundle-cdn-safe.mjs && npm run build:types",
|
|
123
123
|
"build:types": "tsc -p tsconfig.build.json --emitDeclarationOnly",
|
|
124
124
|
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.e2e.json --noEmit && tsc -p cloud/workers/telemetry/tsconfig.json && tsc -p cloud/workers/examples/tsconfig.json",
|
|
125
125
|
"test": "vitest run",
|
|
126
|
-
"comment:e2e-smoke": "Release gate for rendered-pixel guarantees the unit suite
|
|
127
|
-
"test:e2e:smoke": "playwright test
|
|
126
|
+
"comment:e2e-smoke": "Release gate for rendered-pixel guarantees the unit suite cannot see. Selection is BY TAG, not by file: add ` @smoke` to a test title and it joins the gate. The rule for earning the tag is one test per ESCAPE THAT ACTUALLY HAPPENED — the red badge that shipped across 0.6.24 and 0.6.25, frame determinism, the 0.8.1/0.8.2 tilt cap MapLibre never received, a post-process shader that compiles and keeps its millimetre knobs at print DPI, and the 0.9.0 rebuild that kept the stale shader. Adding a whole spec is how this grew from 2 tests to 13 and from 20s to 63s; the full suite (`test:e2e`) stays the manual/CI concern.",
|
|
127
|
+
"test:e2e:smoke": "playwright test --grep \"@smoke\"",
|
|
128
128
|
"prepublishOnly": "node dev/tools/announce-release.mjs --check && npm run build && npm run test:e2e:smoke",
|
|
129
|
-
"postpublish": "node dev/tools/announce-release.mjs",
|
|
129
|
+
"postpublish": "node dev/tools/wait-for-publish.mjs && node dev/tools/announce-release.mjs",
|
|
130
130
|
"try": "vite-node dev/expr-repl.mjs",
|
|
131
131
|
"test:e2e": "playwright test",
|
|
132
132
|
"check-layout": "playwright test e2e/layout-audit.spec.ts",
|
|
@@ -140,9 +140,13 @@
|
|
|
140
140
|
"dev:telemetry": "wrangler dev --config cloud/workers/telemetry/wrangler.toml",
|
|
141
141
|
"deploy:examples": "wrangler deploy --config cloud/workers/examples/wrangler.toml",
|
|
142
142
|
"dev:examples": "wrangler dev --config cloud/workers/examples/wrangler.toml",
|
|
143
|
-
"gen:licenses": "node dev/gen-third-party-licenses.mjs"
|
|
143
|
+
"gen:licenses": "node dev/gen-third-party-licenses.mjs",
|
|
144
|
+
"typecheck:src": "tsc -p tsconfig.json --noEmit",
|
|
145
|
+
"comment:typecheck": "`typecheck` is the full sweep (src + e2e + both cloud workers) for dev and CI; `build` runs only `typecheck:src`, because the e2e suite and the workers are not in the published tarball.",
|
|
146
|
+
"wait-for-publish": "node dev/tools/wait-for-publish.mjs",
|
|
147
|
+
"comment:postpublish": "`npm publish` returns before the version is readable: the packument is CDN-cached for 300s, which is why `npm view` kept reporting the old version and looked like a failed publish. wait-for-publish polls the version-specific endpoint (a different cache key, ~8KB vs ~476KB) and blocks until it answers 200 — so the announce fires against a release that is actually fetchable."
|
|
144
148
|
},
|
|
145
|
-
"comment:deps": "This library ships a fully self-contained bundle in dist/ (verified: zero external bare imports), so it has NO runtime dependencies
|
|
149
|
+
"comment:deps": "This library ships a fully self-contained bundle in dist/ (verified: zero external bare imports), so it has NO runtime dependencies — deck.gl, loaders.gl, MapLibre, Arrow, d3, acorn, etc. are build-time-only and get bundled by Vite. Keeping them here (not in dependencies) is what stops every consumer install from pulling ~250 MB it never uses.",
|
|
146
150
|
"devDependencies": {
|
|
147
151
|
"@deck.gl/aggregation-layers": "9.3.5",
|
|
148
152
|
"@deck.gl/core": "9.3.5",
|
|
@@ -195,5 +199,5 @@
|
|
|
195
199
|
"ws": "^8.21.0",
|
|
196
200
|
"zustand": "^5.0.14"
|
|
197
201
|
},
|
|
198
|
-
"comment:deck-pin": "deck.gl/luma.gl devDeps are EXACT pins: they get BUNDLED into dist, and both libraries hard-throw on duplicate-version detection
|
|
202
|
+
"comment:deck-pin": "deck.gl/luma.gl devDeps are EXACT pins: they get BUNDLED into dist, and both libraries hard-throw on duplicate-version detection — consumers that also ship their own deck.gl (nika-agent) must match these versions exactly. CONTRACT: the bundled deck.gl/luma.gl version is part of the release surface and only changes at the SemVer boundary a caret does NOT cross — a MAJOR onlymap release (a 0.x MINOR while pre-1.0). Anything a caret floats (minor+patch once >=1.0; patch while 0.x) must NEVER move deck.gl, so a consumer can caret onlymap safely. Bumping deck is a breaking-coordination event, never a side effect of a minor/patch release or a reinstall."
|
|
199
203
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: onlymapjs
|
|
3
|
-
description: Build, edit, debug, or review OnlyMapJS declarative HTML maps and dashboards, or React maps via the @nika-js/onlymap/react adapter. Use when a user asks for an interactive map, deck.gl-style visualization, geospatial dashboard, live fleet/telemetry map, choropleth, popup/tooltip map, map story/tour, manual drawing/sketch map, 3D map assets, a React map component, a map page shared as a single HTML file (incl. no-JS fallbacks for chat/email previews), a print-ready map sheet / PDF map / atlas (the cartograph entry: mm-based pages, frames, derived legends, scale bars, graticules), a responsive/mobile map whose controls auto-fold on narrow screens, auditing a map's widget layout with the check-layout tool, syncing OnlyMapJS map/camera state into an app state store (Redux, MobX, Zustand, Jotai — the getStore contract), BIM/IFC models (loading .ifc files in the browser, 3D Tiles per-element picking, isolate/hide/ghost, clash detection, model federation), routes and directions (a styled A-to-B route line, OSRM or another routing engine, click-to-route), live vehicle/rider/delivery tracking (a moving marker gliding between GPS fixes with a follow camera), a Remotion map video or programmatic map flyover with overlays (route to the separate @nika-js/onlymap-remotion package), a React Native or Expo mobile map (route to the separate @nika-js/onlymap-native package), or help with OnlyMapJS syntax, validation, widgets, data formats, testing, or publishing examples.
|
|
3
|
+
description: Build, edit, debug, or review OnlyMapJS declarative HTML maps and dashboards, or React maps via the @nika-js/onlymap/react adapter. Use when a user asks for an interactive map, deck.gl-style visualization, geospatial dashboard, live fleet/telemetry map, choropleth, popup/tooltip map, map story/tour, manual drawing/sketch map, 3D map assets, a React map component, a map page shared as a single HTML file (incl. no-JS fallbacks for chat/email previews), a print-ready map sheet / PDF map / atlas (the cartograph entry: mm-based pages, frames, derived legends, scale bars, graticules), a styled/post-processed map look (film grain, halftone, duotone, vintage or printed finish, bloom-style passes — the <om-effect> pipeline), shaded relief / hillshade / terrain shading on a flat cartographic map (the HillshadeLayer), a responsive/mobile map whose controls auto-fold on narrow screens, auditing a map's widget layout with the check-layout tool, syncing OnlyMapJS map/camera state into an app state store (Redux, MobX, Zustand, Jotai — the getStore contract), BIM/IFC models (loading .ifc files in the browser, 3D Tiles per-element picking, isolate/hide/ghost, clash detection, model federation), routes and directions (a styled A-to-B route line, OSRM or another routing engine, click-to-route), live vehicle/rider/delivery tracking (a moving marker gliding between GPS fixes with a follow camera), a Remotion map video or programmatic map flyover with overlays (route to the separate @nika-js/onlymap-remotion package), a React Native or Expo mobile map (route to the separate @nika-js/onlymap-native package), or help with OnlyMapJS syntax, validation, widgets, data formats, testing, or publishing examples.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# OnlyMapJS
|
|
@@ -23,7 +23,7 @@ Use OnlyMapJS as a declarative HTML map library. Write custom elements such as `
|
|
|
23
23
|
</script>
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
For no-build CDN pages, use the single-file standalone bundle from a raw-file CDN — `https://unpkg.com/@nika-js/onlymap@0.
|
|
26
|
+
For no-build CDN pages, use the single-file standalone bundle from a raw-file CDN — `https://unpkg.com/@nika-js/onlymap@0.9.1` (the bare package URL serves `dist/onlymap.standalone.js`) — plus `<link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.9.1/dist/onlymapjs.css">`. Never a rebundling CDN (esm.sh, skypack): re-bundling duplicates the deck.gl/luma.gl runtime and every layer fails shader compilation.
|
|
27
27
|
|
|
28
28
|
## React Projects
|
|
29
29
|
|
|
@@ -71,12 +71,14 @@ Load the smallest reference needed for the task:
|
|
|
71
71
|
- UI panel, control, chart, legend, stats, filter, or draw toolbar -> `<om-widget>`.
|
|
72
72
|
- Sparse rich HTML at one geographic location -> `<om-overlay>`.
|
|
73
73
|
- Many labels/badges -> `<om-layer type="PopupLayer">`.
|
|
74
|
+
- A styled look for the whole map (vintage / printed / risograph / newsprint / night plate, film grain, halftone, duotone) -> `<om-effect>` children of `<om-map>`: `preset="vintage|engraved|night|blueprint|riso|newsprint|muted"`, or `op=` with knobs, in document order. Spatial knobs are MILLIMETRES, never px. See references/syntax.md.
|
|
74
75
|
- Guided tour or narrative sequence -> `<om-story>` with `<om-step>` siblings that reference existing layers/overlays by id.
|
|
75
76
|
- Basemap choice or user-switchable basemaps -> `basemap` presets (`positron`, `liberty`, `dark-matter`, `osm`, ...) + `<om-widget type="basemap-switcher">`; MapTiler custom styles via a style URL or `basemap-key`.
|
|
76
77
|
- Undoable UI (step back after layer toggles, filter changes, basemap switches, sketch edits) -> `<om-widget type="undo-redo">`; Cmd/Ctrl-Z works even without the widget. Camera moves and story playback are not undo steps.
|
|
77
78
|
- Hide all map chrome (a clean/cinematic frame, a screenshot, a story beat) -> `widgets-hidden` attribute on `<om-map>`, the `set-widgets-visible` action, or a `<om-widget type="widgets-toggle">` button. State survives (not destroyed); attribution never hides. Do NOT hand-roll `display:none`.
|
|
78
79
|
- Keep mobile chrome usable -> rely on the default map-width auto-fold into per-side drawers; mark only essential controls `fold="never"`. Use `widgets-fold="off"` only when the user explicitly wants fixed wide-layout chrome.
|
|
79
80
|
- Group adjacent map buttons (zoom + undo + toggle into one control group) -> just place compact button widgets in the same `position` slot; they auto-cluster. `cluster="false"` opts one out. Do NOT build a wrapper widget.
|
|
81
|
+
- Shaded relief / hillshade / terrain shading on a FLAT map (a cartographic relief base, Swiss-style multi-directional relief) -> `<om-layer type="HillshadeLayer" src="terrarium">`, NOT `terrain=` (that raises a 3D surface and means nothing at pitch 0). `sun-azimuth` takes a LIST of one to four azimuths (`"315 45 135"`) — there is no `multi-directional` boolean. `src` is required even though `terrarium` is keyless. See references/syntax.md and docs/hillshade.md.
|
|
80
82
|
- GeoTIFF/COG raster (DEM, satellite imagery, NDVI) -> `<om-layer type="COGLayer" src="…tif">` with `min`/`max`/`colormap` for single-band data (see syntax.md — `src`, not `data`).
|
|
81
83
|
- Zarr / GeoZarr raster (chunked N-D arrays — climate/weather grids, datacubes) -> `<om-layer type="ZarrLayer" src="….zarr" variable="…" select="time=0">` with `min`/`max`/`colormap` (same raster styling as COGLayer). Pick the `variable` and pin every non-spatial dim in `select`. A GeoZarr store georeferences itself; a plain Zarr needs manual `bounds` + `crs` + `spatial-dims`. `src`, not `data` — and it can be any absolute URL to a remote store, which needs no server setup but must be CORS-enabled (fetched in the browser) and public (authenticated stores are a follow-up). See syntax.md.
|
|
82
84
|
- BIM model / .ifc file / 3D Tiles with per-element picking -> `<om-layer type="BIMLayer" src="….ifc" pickable>` (parses the IFC in-browser; web-ifc WASM is CDN-fetched on first use) or `type="Tile3DLayer" tileset="…" pick-features` for a pre-built tileset. Author `terrain` explicitly (`terrain="mapterhorn"`, or `terrain="off"` for flat ground) — a model that resolves real elevation (IfcMapConversion + OrthogonalHeight) on a terrain-less map raises an error through the validation channel at load time, and the library never writes attributes for you. Style by property with `feature-color-by`/`feature-color-scale` (+ `feature-palette`); isolate/hide/ghost elements declaratively with `feature-filter-field` + `isolate-features`/`hide-features`/`ghost-features` (undoable, story-steppable). See syntax.md.
|
|
@@ -16,8 +16,8 @@ Vite/npm project:
|
|
|
16
16
|
Static CDN page (raw-file CDNs only — unpkg/jsDelivr; never esm.sh or another rebundling CDN, which duplicates the WebGL runtime and breaks layer shaders):
|
|
17
17
|
|
|
18
18
|
```html
|
|
19
|
-
<link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.
|
|
20
|
-
<script type="module" src="https://unpkg.com/@nika-js/onlymap@0.
|
|
19
|
+
<link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.9.1/dist/onlymapjs.css">
|
|
20
|
+
<script type="module" src="https://unpkg.com/@nika-js/onlymap@0.9.1"></script>
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
Always include `onlymapjs.css` — it carries the MapLibre basemap styles and the no-JS fallback rules (`<om-fallback>` / default banner). For the fallback to work in script-disabled previews it must load without JavaScript: a real `<link rel="stylesheet">` or inlined `<style>` on no-build pages (a bundler-emitted stylesheet is fine in npm projects).
|
|
@@ -44,6 +44,19 @@ Common attributes:
|
|
|
44
44
|
- `license-key="om_live_…"` — lifts the free-plan limits (5 layers, 25k rows per layer — a layer past the layer cap doesn't render, a layer past the row cap renders its first 25k rows plus a dismissible on-map notice; caps apply only on HOSTED http(s) pages — localhost/file:// and other dev contexts run uncapped, badge stays) and removes the corner badge; publishable origin-restricted token, safe in page source (or `OmMap.configureLicense(key)` once). Free-plan violations don't break the map: the offending layer isn't rendered and validation names the limit. Badge removal is a permission, not a requirement — `keep-badge` on `<om-map>` (or `OmMap.setKeepBadge(true)`) keeps it on a paid plan, rendering the credit without the free-tier license sentence; on the free plan it changes nothing. The preference is page-level and live (editable after boot), and a sheet's foot credit follows it; `<om-cartograph keep-badge>` opts one in on its own, for a static sheet with no map runtime.
|
|
45
45
|
- `terrain="terrarium|<preset>|<{z}/{x}/{y} DEM URL>|off"` — 3D elevation surface. `terrarium` is keyless (AWS); `mapterhorn` is also keyless and carries a CARTO Positron drape by default; `maptiler-terrain` needs `basemap-key`/`configureBasemap`; raw DEM URLs need `terrain-decoder` (`terrarium`, `mapbox-rgb`, or `{rScaler,gScaler,bScaler,offset}` JSON). `terrain-exaggeration` scales relief (1 = true); `terrain-max-zoom` = the provider's REAL tileset cap; `terrain-texture` drapes a `{z}/{x}/{y}` imagery template. Geographic layers drape automatically; per-layer `terrain="drape|offset|off"` overrides (3D-model layers default to `offset`). Terrain REPLACES an active basemap while on (restored when off) — validation warns. Register presets with `OmMap.registerTerrain(name, {...})`; `set-terrain` action + `terrain` watch token; attribute-backed (undoable). **BIM requires explicit terrain**: a model that resolves real elevation on a map with no `terrain` attribute raises an ERROR through the validation channel at load time — the library never writes `terrain` for you; author a preset (`mapterhorn` pairs a keyless DEM with a CARTO drape) or an explicit `terrain="off"` for flat-ground siting.
|
|
46
46
|
- `lighting="daylight|studio|flat|custom"` — scene lighting for 3D content (extruded polygons, models); absent = deck defaults. Preset seeds values; `lighting-ambient`, `lighting-sun` (intensity; 0 removes the sun), `lighting-sun-azimuth` (° CW from north), `lighting-sun-elevation` (° above horizon), `lighting-camera` (model-inspection fill) override individual fields; `lighting-sun-date` (ISO 8601 or epoch ms) computes the sun from solar position at the map center and wins over azimuth/elevation. Attribute-backed: changes are undoable, and the `set-lighting {lighting, sunAzimuth, …}` action makes lighting story-steppable (`lighting="default"` removes the whole attribute set; a bare preset is a clean reset). `<om-widget type="lighting">` is the native UI. Widget scripts can `watch = ["lighting"]`.
|
|
47
|
+
- POST-PROCESS FINISHES (core `<om-map>`, no extra entry point needed) are `<om-effect>` children of `<om-map>`, which ARE deck's `effects` array (document order = pipeline order). Exactly one lane per element:
|
|
48
|
+
- `preset="vintage|engraved|night|blueprint|riso|newsprint|muted"` — a named look. Override one knob with `<op>-<param>` (`grain-amount="0.02"`); get the preset as editable markup with `OmMap.expandPreset(name)`.
|
|
49
|
+
- `op="tint|levels|saturation|posterize|vignette|grain|edges|blur|sharpen|halftone"` — one operation, its knobs as attributes.
|
|
50
|
+
- an inline `<script type="application/json">` luma ShaderModule — raw GLSL, multi-pass, passed to deck untouched.
|
|
51
|
+
Spatial knobs are MILLIMETRES (`size="0.12mm"`): they resolve against the live pixel density so a look keeps its physical size at print DPI, and a pixel value is a validation error. A preset is literally a saved op list. `set-effect {preset}` swaps it live and writes the document; `<om-widget type="effects">` renders that as preset radios (plus Off) and mirrors the document rather than holding state. With a MapLibre basemap the basemap is composited underneath and stays untreated — the validator warns.
|
|
52
|
+
- SHADED RELIEF is a LAYER, not a mode of `terrain=`: `<om-layer id="relief" type="HillshadeLayer" src="terrarium">`. Reach for it whenever the map is FLAT (pitch 0, a print sheet) and wants terrain texture; reach for `terrain=` only when you want a real 3D surface the camera can tilt over. Being a layer is what puts relief inside deck's framebuffer, so `snapshot()` captures it and `<om-effect>` treats it (a MapLibre basemap composites underneath and would not be).
|
|
53
|
+
- `src` (REQUIRED) — a registered terrain preset (`terrarium`, `mapterhorn`; both keyless and global) or a raw `{z}/{x}/{y}` DEM template. Keyless means no key, not no attribute — name it the way `basemap="positron"` is named.
|
|
54
|
+
- `decoder="terrarium|mapbox-rgb"` or `{rScaler,gScaler,bScaler,offset}` JSON — REQUIRED with a raw template. Omitting it warns, because mapbox-encoded heights read as terrarium give smooth plausible relief that is ~25x wrong.
|
|
55
|
+
- `sun-azimuth="315 45 135"` — ONE TO FOUR azimuths, ° clockwise from north (the `lighting-sun-azimuth` convention, but not coupled to it). A list, never a `multi-directional` boolean: a shorthand must not reach a look the tier below cannot write, and the azimuths want choosing for the terrain. `sun-weight="3 1 1"` weights them (normalized; equal if omitted).
|
|
56
|
+
- `sun-elevation="45"` (strictly between 0 and 90), `z-factor="1.4"` (vertical exaggeration), `opacity`, `max-zoom`, `zoom-offset`.
|
|
57
|
+
- `blend="normal|multiply"` — `multiply` lets relief read UNDER the fills above it instead of greying them; it needs something beneath it, so `normal` is the default and is what makes relief usable as the base of a sheet.
|
|
58
|
+
SECOND ENTRY POINT: `shading="hillshade"` on a `COGLayer`/`ZarrLayer` shades the author's OWN raster with the same `sun-*`/`z-factor` attributes. Relief runs LAST in the styling chain, so it multiplies onto a `colormap` rather than replacing it — `colormap="terrain" shading="hillshade"` is a hypsometric tint with relief through it, one layer not two. Reads ONE band as elevation. Ground scale comes from the file's geotransform + CRS units (a geographic source is anisotropic and is corrected per fragment). `identify="off"` cannot free memory while shading is on — the apron reads neighbouring pixels on the CPU, and the validator flags the combination.
|
|
59
|
+
Every illumination knob is a UNIFORM — moving the sun refetches nothing. Tile edges are seamless (one-pixel apron from the eight neighbours; clamping would draw a pale grid), latitude is corrected per fragment, and tile zoom follows the capture pixel ratio so a 300 dpi plate is not upscaled screen relief. DEM tiles must be PNG or LOSSLESS WebP — heights are the RGB bytes, so a lossy codec invents terrain. Lazy chunk: a map without relief downloads none of it. NOT YET: `shading="hillshade"` on COGLayer/ZarrLayer. Slope/aspect as queryable VALUES is deliberately out of scope — rendered texture only, never an analytic product. Deep reference: docs/hillshade.md.
|
|
47
60
|
- `clip-box-min="[lng, lat, elevation]"` + `clip-box-max="[lng, lat, elevation]"` (issue #34) — a real axis-aligned 3D box clipping the whole scene: geometry outside it is discarded (order of the two corners doesn't matter). Every layer is clipped once a box is configured; opt a specific layer out with `clip="off"` on its `<om-layer>`. `clip-box-invert` shows what's OUTSIDE the box instead; `clip-box-highlight` dims clipped-out geometry instead of discarding it (non-destructive preview — nothing disappears). Works on ANY layer type, including georeferenced `Tile3DLayer`/`BIMLayer` content, so a dense BIM scene can be cut open to see what's inside — not just flat `GeoJsonLayer` extrusions. Attribute-backed (undoable, story-steppable) via `set-clip-box {min, max, invert?, highlight?}` (`{clear: true}` removes the box) and `<om-widget type="clip-box">` (six number inputs + invert/highlight checkboxes + clear button). v1 is axis-aligned only — rotated boxes are a documented follow-up.
|
|
48
61
|
- `snap="vertex edge midpoint"` + `snap-tolerance="12"` (issue #34 Part A) — XY snapping for draw/measure vertex capture: refines whatever deck already picked under the cursor to the nearest vertex, edge, or edge midpoint of THAT feature's own geometry, within `snap-tolerance` pixels (default 12) — not a spatial index, only the already-picked feature is searched. Applies to every layer by default; `snap="off"` on any `<om-layer>` opts it out, mirroring `clip="off"`. Also snaps to a `BIMLayer`'s own edge/crease overlay (its real wall corners/edges, converted from local mesh coordinates automatically) — the raw triangle mesh itself is not a snap target. Vertex beats midpoint beats edge on range conflicts. Hold Space to place a point nearby without snapping. No action/attribute-backed toggle beyond the attribute itself; live-reactive like `terrain`/`clip-box-*`.
|
|
49
62
|
- `widgets-dim="off"` disables collision-dim — by default a widget slot dims (`--om-widget-opacity-dimmed`, 0.35) while an open `<om-overlay>` popup covers it, rather than the popup dodging (attribution/toggle slots never dim).
|
|
@@ -640,6 +653,7 @@ A separate lazy entry (`import "@nika-js/onlymap/cartograph"`; CDN: `https://unp
|
|
|
640
653
|
```
|
|
641
654
|
|
|
642
655
|
- Frames: live (`<om-map>` child, the FRAME's camera attributes win) or `mode="static"` with `crs` + `corners` for a georeferenced raster. `overview-of="<frame-id>"` draws a locator footprint.
|
|
656
|
+
|
|
643
657
|
- A live frame georeferences whatever its map shows. Zoomed out past the whole world, the map wraps inside the frame like any web map — the graticule labels each copy by where it is on the globe, and the scale bar measures its own row — and the frame never limits or rewrites the camera. Once the map inside a frame settles after a pan, rotate or tilt, the frame's georeference follows the map's own view: north arrow, scale bar, graticule, locator inset and `{{frame.<id>.scale}}` describe what is on screen, and freezing captures that view. `max-pitch` and `min-zoom` on `<om-map>` are author-set controls (a kiosk map that should stay upright or within an area); nothing sets them for you.
|
|
644
658
|
- `<om-legend for>` derives rows from the live map's own symbology (classified breaks included); literal rows via `derived="false"` + `<om-legend-row>` children.
|
|
645
659
|
- `<om-atlas for="<frame-id>" layer="<layer-id>">` renders one page per feature sequentially and exports a ZIP.
|
|
@@ -682,6 +696,7 @@ Common built-in actions:
|
|
|
682
696
|
- `show-overlay`, `hide-overlay`
|
|
683
697
|
- `show-tooltip`, `hide-tooltip`
|
|
684
698
|
- `toggle-layer`
|
|
699
|
+
- `set-effect` — payload `{ preset }` (a preset name, or `"none"` to remove it); optional `<op>-<param>` knob overrides, e.g. `{ preset: "vintage", "grain-amount": 0.02 }`. Writes one `<om-effect preset>` child, so it is undoable; NOT story-rewindable yet (rewind restores `<om-map>` attributes, this adds an element). A hand-composed op chain is left alone.
|
|
685
700
|
- `set-pickable` — payload `{ layer, pickable: true|false|"3d" }`; writes/removes the layer's `pickable` attribute at runtime (turns popups/tooltips/hover behaviors on or off per layer — the viewer-facing popup toggle), story-capturable and undoable
|
|
686
701
|
- `highlight-feature` — sets the layer's `highlighted-id`; style the selection with `highlight-color="[220, 38, 38, 255]"` (or hex) on the `<om-layer>` — a constant color, not a `get-*` accessor
|
|
687
702
|
- `zoom-to-feature`
|
package/dist/lerc-TxsFLMlC.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { C as a, D as s } from "./raster-B_wekCHv.js";
|
|
2
|
-
const D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
|
-
__proto__: null
|
|
4
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
5
|
-
var t;
|
|
6
|
-
(function(e) {
|
|
7
|
-
e[e.None = 0] = "None", e[e.Deflate = 1] = "Deflate", e[e.Zstd = 2] = "Zstd";
|
|
8
|
-
})(t || (t = {}));
|
|
9
|
-
let l = !1;
|
|
10
|
-
async function d() {
|
|
11
|
-
const e = await import("./LercDecode.es-BKustV-1.js");
|
|
12
|
-
return l || (await e.load(), l = !0), e;
|
|
13
|
-
}
|
|
14
|
-
async function i(e, r) {
|
|
15
|
-
const o = r.lercParameters?.[1] ?? t.None;
|
|
16
|
-
let n = e;
|
|
17
|
-
if (o === t.Deflate || o === t.Zstd) {
|
|
18
|
-
const c = o === t.Deflate ? a.Deflate : a.Zstd;
|
|
19
|
-
n = await (await s.get(c)())(e, r);
|
|
20
|
-
}
|
|
21
|
-
return { layout: "band-separate", bands: (await d()).decode(n).pixels };
|
|
22
|
-
}
|
|
23
|
-
const b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24
|
-
__proto__: null,
|
|
25
|
-
decode: i
|
|
26
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
27
|
-
export {
|
|
28
|
-
D as _,
|
|
29
|
-
b as l
|
|
30
|
-
};
|