@nika-js/onlymap 0.11.1 → 0.11.3

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +3 -3
  3. package/dist/attribution.d.ts +27 -0
  4. package/dist/{basemap-CHFwxaRT.js → basemap-C6Ehu6fw.js} +923 -878
  5. package/dist/basemap.d.ts +11 -0
  6. package/dist/cartograph/elements/om-cartograph.d.ts +22 -0
  7. package/dist/cartograph/elements/om-frame.d.ts +8 -0
  8. package/dist/cartograph.js +1139 -1058
  9. package/dist/cartograph.standalone.js +1595 -1514
  10. package/dist/cluster-options.d.ts +11 -0
  11. package/dist/elements/om-map.d.ts +6 -0
  12. package/dist/{geoparquet-DBzSJJz_.js → geoparquet-3V4KrvQN.js} +1 -1
  13. package/dist/{globe-view-D0eDmIGO.js → globe-view-D4Tlyff-.js} +1 -1
  14. package/dist/{hillshade-DodGS9DL.js → hillshade-BC8QiJRP.js} +1 -1
  15. package/dist/{index-CrnprTab.js → index-BPCIxI1b.js} +1 -1
  16. package/dist/{index-Ca5y3OLs.js → index-BUE-VzWx.js} +1 -1
  17. package/dist/{index-BGvTOkkE.js → index-BqFwoWp9.js} +1 -1
  18. package/dist/{index-em-_HmNV.js → index-C1f14saD.js} +3 -3
  19. package/dist/{index-DH1_IQmW.js → index-DgutJ5y2.js} +3 -3
  20. package/dist/{index-C7Tpf_BA.js → index-DpUl6z5-.js} +1 -1
  21. package/dist/{index-5iFHs_bW.js → index-iwTA46AA.js} +1 -1
  22. package/dist/{index-wRR0a71N.js → index-p5XXAoNa.js} +2 -2
  23. package/dist/{index-D04CeeYu.js → index-pu3BNjzA.js} +11202 -11134
  24. package/dist/layers/cluster-layer.d.ts +7 -0
  25. package/dist/{lerc-KZgSVKKQ.js → lerc-DWtJKNQk.js} +1 -1
  26. package/dist/onlymap.standalone.js +19242 -19130
  27. package/dist/onlymapjs.js +1 -1
  28. package/dist/{post-process-effect-eJXo3MSl.js → post-process-effect-mQdMaWQE.js} +1 -1
  29. package/dist/{raster-CHuauCiR.js → raster-DtUDOXfy.js} +3 -3
  30. package/dist/{raster-pipeline-Coou2lF-.js → raster-pipeline-hQh5cG3e.js} +1 -1
  31. package/dist/runtime-core.d.ts +22 -0
  32. package/dist/{text-on-path-DUfdTGzX.js → text-on-path-CcfoZqXD.js} +1 -1
  33. package/dist/version.d.ts +1 -1
  34. package/dist/{zarr-BYLzFMeQ.js → zarr-Qo4A_t7d.js} +2 -2
  35. package/docs/cartograph.md +27 -3
  36. package/llms.txt +3 -3
  37. package/onlymapjs.attributes.json +12 -0
  38. package/onlymapjs.html-data.json +20 -0
  39. package/package.json +1 -1
  40. package/skills/onlymapjs/SKILL.md +1 -1
  41. package/skills/onlymapjs/references/syntax.md +9 -6
@@ -44,6 +44,11 @@ export interface ClusterLayerProps {
44
44
  clusterMinPoints: number;
45
45
  aggregates: readonly ClusterAggregate[];
46
46
  clusterLabel: boolean;
47
+ /** The count as a badge (0.11.2): edge/corner placement, a pill behind it, its colour and size. */
48
+ clusterLabelPosition?: string;
49
+ clusterLabelBackground?: number[];
50
+ clusterLabelColor?: number[];
51
+ clusterLabelSize?: number;
47
52
  getClusterRadius?: unknown;
48
53
  getClusterFillColor?: unknown;
49
54
  getClusterLineColor?: unknown;
@@ -94,6 +99,8 @@ export declare function positionLookup(data: LayerData, shape: Shape, getPositio
94
99
  export declare function toHostShape(clusters: readonly ClusterRow[], shape: Shape): unknown[] | ColumnarData;
95
100
  /** The rows at `indices`, keeping the host's shape (a columnar host gets sliced columns). */
96
101
  export declare function sliceRows(data: LayerData, indices: readonly number[]): unknown[] | ColumnarData;
102
+ /** Unit direction of a `cluster-label-position` in screen space (y down): `top-right` → [1, -1]. */
103
+ export declare function labelOffsetUnits(position: string | undefined): [number, number];
97
104
  /** The bubble fill when no `get-cluster-fill-color` is authored: the host's constant fill, else a flat blue. */
98
105
  export declare function fallbackClusterFill(hostProps: Record<string, unknown>): number[];
99
106
  export declare class ClusterLayer extends CompositeLayer<ClusterLayerProps> {
@@ -1,4 +1,4 @@
1
- import { C as o, D as s } from "./raster-CHuauCiR.js";
1
+ import { C as o, D as s } from "./raster-DtUDOXfy.js";
2
2
  var t;
3
3
  (function(e) {
4
4
  e[e.None = 0] = "None", e[e.Deflate = 1] = "Deflate", e[e.Zstd = 2] = "Zstd";