@nika-js/onlymap 0.11.0 → 0.11.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 +12 -0
- package/README.md +1 -1
- package/dist/{basemap-Bg73oXUb.js → basemap-CHFwxaRT.js} +2 -2
- package/dist/cluster-index.d.ts +1 -1
- package/dist/cluster-options.d.ts +4 -1
- package/dist/cluster-thumbs.d.ts +68 -0
- package/dist/{geoparquet-BASBa9tf.js → geoparquet-DBzSJJz_.js} +1 -1
- package/dist/{globe-view-CTkofOiM.js → globe-view-D0eDmIGO.js} +1 -1
- package/dist/{hillshade-DdVEO8lc.js → hillshade-DodGS9DL.js} +1 -1
- package/dist/{index-BOjo5N6i.js → index-5iFHs_bW.js} +1 -1
- package/dist/{index-CVAyXg52.js → index-BGvTOkkE.js} +1 -1
- package/dist/{index-C7CNrOGW.js → index-C7Tpf_BA.js} +1 -1
- package/dist/{index-BLfj5bIo.js → index-Ca5y3OLs.js} +1 -1
- package/dist/{index-DbfTOgYl.js → index-CrnprTab.js} +1 -1
- package/dist/{index-C-YAnesV.js → index-D04CeeYu.js} +11359 -11178
- package/dist/{index-FtNZZGWv.js → index-DH1_IQmW.js} +3 -3
- package/dist/{index-BCDmJfeb.js → index-em-_HmNV.js} +3 -3
- package/dist/{index-DsLNa_IB.js → index-wRR0a71N.js} +2 -2
- package/dist/layers/cluster-layer.d.ts +25 -0
- package/dist/{lerc-CoNq0xxX.js → lerc-KZgSVKKQ.js} +1 -1
- package/dist/onlymap.standalone.js +20615 -20434
- package/dist/onlymapjs.js +1 -1
- package/dist/{post-process-effect-CrZoIEYa.js → post-process-effect-eJXo3MSl.js} +1 -1
- package/dist/{raster-CZMdghdy.js → raster-CHuauCiR.js} +3 -3
- package/dist/{raster-pipeline-n2wrLc9r.js → raster-pipeline-Coou2lF-.js} +1 -1
- package/dist/{text-on-path-CHkHjky-.js → text-on-path-DUfdTGzX.js} +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/{zarr-DRBhsEZZ.js → zarr-BYLzFMeQ.js} +2 -2
- package/docs/cartograph.md +2 -2
- package/llms.txt +2 -2
- package/onlymapjs.attributes.json +9 -0
- package/onlymapjs.html-data.json +12 -0
- package/package.json +1 -1
- package/skills/onlymapjs/SKILL.md +1 -1
- package/skills/onlymapjs/references/syntax.md +6 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ac as j, ad as S, ae as A, af as M, ag as L } from "./index-
|
|
2
|
-
import { ah as H, ai as V, aj as X, ak as K } from "./index-
|
|
3
|
-
import { P as h } from "./post-process-effect-
|
|
1
|
+
import { ac as j, ad as S, ae as A, af as M, ag as L } from "./index-D04CeeYu.js";
|
|
2
|
+
import { ah as H, ai as V, aj as X, ak as K } from "./index-D04CeeYu.js";
|
|
3
|
+
import { P as h } from "./post-process-effect-eJXo3MSl.js";
|
|
4
4
|
const O = `
|
|
5
5
|
float omfx_lum(vec3 c) { return dot(c, vec3(0.299, 0.587, 0.114)); }
|
|
6
6
|
float omfx_hash(vec2 p) { return fract(sin(dot(p, vec2(12.9898, 78.233))) * 43758.5453); }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as t, a as o, b as i, C as l, c as p, d as n, D as _, e as c, f as g, F as h, L as m, g as L, h as y, i as f, j as w, M as S, k as V, O as b, l as C, m as E, P as I, T as P, n as T, o as M, U as d, V as A, p as O, q as u, W as N, r as k, s as x, t as D, u as G, G as R, v as j, w as W, x as q, y as v, z, B as F, E as U, H as Y, I as B, J as H, K as J, N as K, Q, R as X, S as Z, X as $, Y as aa, Z as sa, _ as ea, $ as ra, a0 as ta, a1 as oa, a2 as ia } from "./index-
|
|
2
|
-
import { P as s } from "./post-process-effect-
|
|
3
|
-
import { G as pa, a as na } from "./globe-view-
|
|
1
|
+
import { A as t, a as o, b as i, C as l, c as p, d as n, D as _, e as c, f as g, F as h, L as m, g as L, h as y, i as f, j as w, M as S, k as V, O as b, l as C, m as E, P as I, T as P, n as T, o as M, U as d, V as A, p as O, q as u, W as N, r as k, s as x, t as D, u as G, G as R, v as j, w as W, x as q, y as v, z, B as F, E as U, H as Y, I as B, J as H, K as J, N as K, Q, R as X, S as Z, X as $, Y as aa, Z as sa, _ as ea, $ as ra, a0 as ta, a1 as oa, a2 as ia } from "./index-D04CeeYu.js";
|
|
2
|
+
import { P as s } from "./post-process-effect-eJXo3MSl.js";
|
|
3
|
+
import { G as pa, a as na } from "./globe-view-D0eDmIGO.js";
|
|
4
4
|
export {
|
|
5
5
|
t as AmbientLight,
|
|
6
6
|
o as Attribute,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aM as R, aN as S, aO as E, aP as N, aQ as h, aR as w, aS as W, aT as O, aU as x, aV as I, aW as B, aX as _, aY as P, aZ as k, a_ as $, a$ as z, b0 as C, b1 as F, b2 as v, b3 as M, b4 as p, b5 as U } from "./index-
|
|
2
|
-
import { b6 as $e, b7 as ze, b8 as Ce, b9 as ve, ba as Me, bb as Ue, bc as je, bd as De, be as qe, bf as Je, bg as Ve, bh as Ge, bi as He, bj as Qe, bk as Xe, bl as Ye, bm as Ze, bn as Ke, bo as et, bp as tt, bq as nt, br as rt, bs as at, bt as st, bu as ot } from "./index-
|
|
1
|
+
import { aM as R, aN as S, aO as E, aP as N, aQ as h, aR as w, aS as W, aT as O, aU as x, aV as I, aW as B, aX as _, aY as P, aZ as k, a_ as $, a$ as z, b0 as C, b1 as F, b2 as v, b3 as M, b4 as p, b5 as U } from "./index-D04CeeYu.js";
|
|
2
|
+
import { b6 as $e, b7 as ze, b8 as Ce, b9 as ve, ba as Me, bb as Ue, bc as je, bd as De, be as qe, bf as Je, bg as Ve, bh as Ge, bi as He, bj as Qe, bk as Xe, bl as Ye, bm as Ze, bn as Ke, bo as et, bp as tt, bq as nt, br as rt, bs as at, bt as st, bu as ot } from "./index-D04CeeYu.js";
|
|
3
3
|
import { g as j, i as D } from "./table-accessors-CYWTzpQI.js";
|
|
4
4
|
async function q(t, e, n = {}, r = {}) {
|
|
5
5
|
const a = R(t), s = S.getWorkerFarm(n), { source: o } = n, c = { name: a, source: o };
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
import { CompositeLayer } from "@deck.gl/core";
|
|
28
28
|
import type { Layer, UpdateParameters, GetPickingInfoParams, PickingInfo } from "@deck.gl/core";
|
|
29
29
|
import { ClusterIndex, type ClusterRow, type ClusterAggregate } from "../cluster-index";
|
|
30
|
+
import { ThumbnailCache } from "../cluster-thumbs";
|
|
30
31
|
import type { Shape } from "../expr";
|
|
31
32
|
import type { LayerData, ColumnarData } from "../ir";
|
|
32
33
|
type Bbox = [number, number, number, number];
|
|
@@ -47,6 +48,16 @@ export interface ClusterLayerProps {
|
|
|
47
48
|
getClusterFillColor?: unknown;
|
|
48
49
|
getClusterLineColor?: unknown;
|
|
49
50
|
getClusterLabel?: unknown;
|
|
51
|
+
/**
|
|
52
|
+
* An image on the bubble (0.11.1): a URL → a circular thumbnail ringed in
|
|
53
|
+
* the bubble's fill (cluster-thumbs.ts); a name → a glyph from
|
|
54
|
+
* `clusterIconAtlas`/`clusterIconMapping`, or the host's own atlas on an
|
|
55
|
+
* IconLayer; an `{url, width, height}` object → handed to deck as is.
|
|
56
|
+
* A bubble whose image is still loading, or failed, draws as the circle.
|
|
57
|
+
*/
|
|
58
|
+
getClusterIcon?: unknown;
|
|
59
|
+
clusterIconAtlas?: string;
|
|
60
|
+
clusterIconMapping?: Record<string, unknown>;
|
|
50
61
|
clusterUpdateTriggers: Record<string, string>;
|
|
51
62
|
/** Fired after each index build — the dev panel reports rows the index could not place. */
|
|
52
63
|
onClusterIndex?: (info: {
|
|
@@ -67,6 +78,11 @@ interface ClusterState {
|
|
|
67
78
|
/** `clusters` re-shaped to the host's data shape, and the leaf rows/columns the host sublayer draws. */
|
|
68
79
|
clusterData: unknown[] | ColumnarData;
|
|
69
80
|
leafData: unknown[] | ColumnarData;
|
|
81
|
+
/** Thumbnail renders for `getClusterIcon` URLs; bumped `thumbsVersion` is the icon sublayer's update trigger. */
|
|
82
|
+
thumbs?: ThumbnailCache;
|
|
83
|
+
thumbsVersion?: number;
|
|
84
|
+
/** For a bubble pick: the circle sublayer draws a SUBSET once some bubbles carry images, so its index maps back here. */
|
|
85
|
+
circleClusterIndex?: number[];
|
|
70
86
|
}
|
|
71
87
|
/** Position of row `i` — through the host's accessor when it has one, else the feature's own Point geometry. */
|
|
72
88
|
export declare function positionLookup(data: LayerData, shape: Shape, getPosition: unknown): (i: number) => readonly number[] | undefined;
|
|
@@ -94,6 +110,15 @@ export declare class ClusterLayer extends CompositeLayer<ClusterLayerProps> {
|
|
|
94
110
|
};
|
|
95
111
|
state: ClusterState;
|
|
96
112
|
initializeState(): void;
|
|
113
|
+
/** The per-cluster value of a `get-cluster-*` accessor (or its constant), read in the host's data shape. */
|
|
114
|
+
private clusterValue;
|
|
115
|
+
/**
|
|
116
|
+
* What `get-cluster-icon` gives cluster `i`, resolved: a ready thumbnail
|
|
117
|
+
* for a URL, an atlas glyph name, a raw icon object — or undefined when the
|
|
118
|
+
* bubble should draw as a circle (no accessor, no value, image not ready).
|
|
119
|
+
*/
|
|
120
|
+
private iconFor;
|
|
121
|
+
private hasGlyphAtlas;
|
|
97
122
|
/** The default only reacts to props/data; the visible set depends on the viewport too. */
|
|
98
123
|
shouldUpdateState({ changeFlags }: UpdateParameters<this>): boolean;
|
|
99
124
|
updateState({ props, oldProps, changeFlags }: UpdateParameters<this>): void;
|