@nika-js/onlymap 0.6.11 → 0.6.14
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 +23 -0
- package/README.md +16 -2
- package/dist/{LercDecode.es-C331HMjV.js → LercDecode.es-Bqk5xyNu.js} +1 -1
- package/dist/attribute-resolution.d.ts +4 -0
- package/dist/{basemap-NN5SYEaS.js → basemap-KDsE62YN.js} +1 -1
- package/dist/classify.d.ts +62 -0
- package/dist/clip-box.d.ts +0 -32
- package/dist/data-layer.d.ts +0 -17
- package/dist/draw-controller.d.ts +4 -1
- package/dist/effects.d.ts +1 -0
- package/dist/elements/om-map.d.ts +1 -21
- package/dist/elements/om-story.d.ts +0 -18
- package/dist/expr/errors.d.ts +3 -0
- package/dist/field-access.d.ts +10 -0
- package/dist/geodesy.d.ts +11 -0
- package/dist/{geoparquet-Dmyu5Oou.js → geoparquet-DOexUItM.js} +1 -1
- package/dist/html-data.d.ts +1 -1
- package/dist/{index-D28RTVKt.js → index-BFNjPrc2.js} +1 -1
- package/dist/{index-CSVtCpQL.js → index-D_EyImRx.js} +1 -1
- package/dist/{index-_vNbcONa.js → index-DnsWPk6e.js} +1 -1
- package/dist/{index-BUp4hR6r.js → index-ESUJidEA.js} +21949 -21687
- package/dist/{index-CNxSRD27.js → index-mxTk4d2L.js} +2 -2
- package/dist/layer-registry.d.ts +10 -0
- package/dist/layers/marker-icons.d.ts +0 -2
- package/dist/legend-spec.d.ts +1 -6
- package/dist/{lerc-Cryu98-R.js → lerc-CPb8TKuv.js} +2 -2
- package/dist/onlymap.standalone.js +41385 -41123
- package/dist/onlymapjs.js +1 -1
- package/dist/programmatic.d.ts +5 -16
- package/dist/{raster-BVzTnbhW.js → raster-M2R7FhL7.js} +2 -2
- package/dist/{raster-pipeline-FAPzre9S.js → raster-pipeline-Csa7n5SZ.js} +1 -1
- package/dist/react.js +215 -232
- package/dist/runtime-core.d.ts +35 -1
- package/dist/site-placement.d.ts +0 -2
- package/dist/testing.d.ts +4 -1
- package/dist/version.d.ts +1 -1
- package/dist/{zarr-DCWSzKoG.js → zarr-tHnzENgX.js} +2 -2
- package/docs/testing.md +1 -1
- package/llms.txt +5 -3
- package/onlymapjs.html-data.json +32 -1
- package/package.json +3 -2
- package/skills/onlymapjs/SKILL.md +5 -4
- package/skills/onlymapjs/references/syntax.md +4 -4
package/dist/onlymapjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aA as e, aB as r, aC as t, aD as o, aE as b, aF as i, ap as l, aG as n, aH as S, aI as g, aJ as c, aK as E, aL as L, aM as T, aN as A, aO as d, aP as p, aQ as m, aR as _, aS as I, aT as u, aU as M, aV as y, aW as D, ao as O, aX as R, aw as f, aY as N, aZ as P, a_ as h, W as F, a$ as B, b0 as C, b1 as v, b2 as G, b3 as U, b4 as W, b5 as w, b6 as x, b7 as Y, b8 as H, b9 as X, ba as k, bb as J, bc as K, bd as V, be as z, bf as Q, bg as Z, bh as $, bi as j, bj as q, bk as aa, bl as sa, bm as ea, bn as ra, bo as ta, bp as oa, bq as ba, br as ia, bs as la, bt as na, bu as Sa, bv as ga, bw as ca, bx as Ea, by as La, bz as Ta, bA as Aa, bB as da, bC as pa, bD as ma, bE as _a, bF as Ia, bG as ua, bH as Ma, bI as ya, bJ as Da, bK as Oa, bL as Ra, bM as fa, bN as Na, bO as Pa, bP as ha, bQ as Fa, bR as Ba, bS as Ca, bT as va, bU as Ga, bV as Ua, bW as Wa, bX as wa, bY as xa, bZ as Ya, b_ as Ha, b$ as Xa, c0 as ka, c1 as Ja, c2 as Ka, c3 as Va, c4 as za, c5 as Qa, c6 as Za } from "./index-
|
|
1
|
+
import { aA as e, aB as r, aC as t, aD as o, aE as b, aF as i, ap as l, aG as n, aH as S, aI as g, aJ as c, aK as E, aL as L, aM as T, aN as A, aO as d, aP as p, aQ as m, aR as _, aS as I, aT as u, aU as M, aV as y, aW as D, ao as O, aX as R, aw as f, aY as N, aZ as P, a_ as h, W as F, a$ as B, b0 as C, b1 as v, b2 as G, b3 as U, b4 as W, b5 as w, b6 as x, b7 as Y, b8 as H, b9 as X, ba as k, bb as J, bc as K, bd as V, be as z, bf as Q, bg as Z, bh as $, bi as j, bj as q, bk as aa, bl as sa, bm as ea, bn as ra, bo as ta, bp as oa, bq as ba, br as ia, bs as la, bt as na, bu as Sa, bv as ga, bw as ca, bx as Ea, by as La, bz as Ta, bA as Aa, bB as da, bC as pa, bD as ma, bE as _a, bF as Ia, bG as ua, bH as Ma, bI as ya, bJ as Da, bK as Oa, bL as Ra, bM as fa, bN as Na, bO as Pa, bP as ha, bQ as Fa, bR as Ba, bS as Ca, bT as va, bU as Ga, bV as Ua, bW as Wa, bX as wa, bY as xa, bZ as Ya, b_ as Ha, b$ as Xa, c0 as ka, c1 as Ja, c2 as Ka, c3 as Va, c4 as za, c5 as Qa, c6 as Za } from "./index-ESUJidEA.js";
|
|
2
2
|
export {
|
|
3
3
|
e as ALL_POSITION_VALUES,
|
|
4
4
|
r as AUDIT_EXEMPTIONS,
|
package/dist/programmatic.d.ts
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Programmatic front-end (spec: HU2 — "one core, two front-ends"). Builds
|
|
3
|
-
* the SAME layer IR the DOM manifest front-end (parse-manifest.ts) produces
|
|
4
|
-
* — from typed descriptors instead of <om-layer> elements, with no DOM
|
|
5
|
-
* manifest in between — and drives the same RuntimeCore reconcile.
|
|
6
|
-
* Frameworks ride this front-end (the React adapter, src/react/), so the
|
|
7
|
-
* DOM-ownership collision (a framework re-asserting its virtual DOM vs.
|
|
8
|
-
* this library's MutationObserver) never arises: there is nothing shared
|
|
9
|
-
* to fight over.
|
|
10
|
-
*
|
|
11
|
-
* What deliberately does NOT exist here: behaviors, <script type="om/widget">
|
|
12
|
-
* blocks, manifest validation, stories, and the draw widget — those are
|
|
13
|
-
* DOM/HTML-native authoring surfaces. A framework expresses the same intent
|
|
14
|
-
* through its own event handlers and state (spec: HU2 "the catch"), reading
|
|
15
|
-
* runtime state through the same RuntimeContext contract widgets get (HU5).
|
|
16
|
-
*/
|
|
17
1
|
import { type CameraOptions, type MandatedChromeHosts } from "./runtime-core";
|
|
18
2
|
import { type LightingIR, type LightingOptions } from "./scene-lighting";
|
|
19
3
|
import type { TerrainIR } from "./terrain";
|
|
@@ -61,6 +45,11 @@ export interface LayerDescriptor {
|
|
|
61
45
|
filterCategories?: unknown[];
|
|
62
46
|
/** Multi-dimension categorical GPU filter (up to 4) — mirrors `filter-category-fields`. Wins over `filterCategoryField`/`filterCategories` if both are set. */
|
|
63
47
|
filterCategoryFields?: LayerCategoryFilterFieldSpec[];
|
|
48
|
+
/** Classified symbology (issue #12) — mirrors `classify-by`/`classify-scale`/`classify-classes`/`classify-ramp`; computes class breaks from the data and installs a fill-color accessor + legend. An explicit fill-color prop wins. */
|
|
49
|
+
classifyBy?: string;
|
|
50
|
+
classifyScale?: "quantile" | "equal-interval" | "jenks";
|
|
51
|
+
classifyClasses?: number;
|
|
52
|
+
classifyRamp?: string;
|
|
64
53
|
/** Dashed lines on a path layer (spec: "PathStyleExtension") — `[dashLength, gapLength]` in line-width units; mirrors the `dash` attribute. */
|
|
65
54
|
dash?: [number, number];
|
|
66
55
|
/** Stretch each segment's dashes to start and end on a dash (deck `dashJustified`); mirrors `dash-justified`. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as re, t as Ae, i as nt, a as Re, s as rt, C as ot, b as it, F as at, A as st, d as lt, R as he, e as ct, p as ut, m as dt, f as ht, g as pt, h as gt } from "./raster-pipeline-
|
|
1
|
+
import { c as re, t as Ae, i as nt, a as Re, s as rt, C as ot, b as it, F as at, A as st, d as lt, R as he, e as ct, p as ut, m as dt, f as ht, g as pt, h as gt } from "./raster-pipeline-Csa7n5SZ.js";
|
|
2
2
|
import pe from "./index-CW1n5LdO.js";
|
|
3
3
|
function mt(e, t) {
|
|
4
4
|
const n = e.length / 3, r = new Uint8ClampedArray(n * 4), o = 0, i = n, a = n * 2;
|
|
@@ -1069,7 +1069,7 @@ A.set(m.Zstd, () => import("./zstd-jXobGRcq.js").then((e) => e.decode));
|
|
|
1069
1069
|
A.set(m.Jpeg, () => Promise.resolve(oe));
|
|
1070
1070
|
A.set(m.Jpeg6, () => Promise.resolve(oe));
|
|
1071
1071
|
A.set(m.Webp, () => Promise.resolve(oe));
|
|
1072
|
-
A.set(m.Lerc, () => import("./lerc-
|
|
1072
|
+
A.set(m.Lerc, () => import("./lerc-CPb8TKuv.js").then((e) => e.l).then((e) => e.decode));
|
|
1073
1073
|
async function ie(e, t, n) {
|
|
1074
1074
|
const r = A.get(t);
|
|
1075
1075
|
if (!r)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { w as ae } from "./mgrs-BY9bIvp4.js";
|
|
2
|
-
import { am as ce, an as le, ao as ee, ap as te, aq as ue, b as he, ar as de, l as Z, as as fe, d as pe, at as me, au as ge, av as ve, aw as ne } from "./index-
|
|
2
|
+
import { am as ce, an as le, ao as ee, ap as te, aq as ue, b as he, ar as de, l as Z, as as fe, d as pe, at as me, au as ge, av as ve, aw as ne } from "./index-ESUJidEA.js";
|
|
3
3
|
function Pe(o, e, t) {
|
|
4
4
|
const { projectedCorners: n } = e, { topLeft: s, topRight: r, bottomRight: a, bottomLeft: i } = n, c = t(s[0], s[1]), u = t(r[0], r[1]), l = t(a[0], a[1]), d = t(i[0], i[1]), f = [
|
|
5
5
|
c,
|