@nika-js/onlymap 0.10.3 → 0.10.5

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 (34) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/{basemap-BXj6TyI0.js → basemap-Q-Hd5jE-.js} +2 -2
  3. package/dist/{geoparquet-3uljKWBk.js → geoparquet-mtTpzfNU.js} +1 -1
  4. package/dist/{globe-view-SiqJKyZ3.js → globe-view-D6a6_ADT.js} +1 -1
  5. package/dist/{hillshade-DSVos950.js → hillshade-CY4PNGum.js} +1 -1
  6. package/dist/{index-CON8tYgk.js → index--Zswyzcw.js} +1 -1
  7. package/dist/{index-BmhZ-nHJ.js → index-4z9qUdmz.js} +1 -1
  8. package/dist/{index-BrdfEKdd.js → index-BhH8ySRp.js} +3 -3
  9. package/dist/{index-Bkz-w1s4.js → index-BwOC7qcd.js} +1 -1
  10. package/dist/{index-DScatzxZ.js → index-D6jtcTK4.js} +3 -3
  11. package/dist/{index-CaspQb0d.js → index-DUJtvAv2.js} +2 -2
  12. package/dist/{index-fdxfxPzR.js → index-DwIUeLzW.js} +1 -1
  13. package/dist/{index-BsqaPPAj.js → index-V-VuBp7C.js} +1 -1
  14. package/dist/{index-D3uUtM40.js → index-yJEyQjKn.js} +11048 -11016
  15. package/dist/legend-spec.d.ts +18 -0
  16. package/dist/{lerc-CDT_Q_Ki.js → lerc-BdO3Bk6b.js} +1 -1
  17. package/dist/onlymap.standalone.js +20861 -20774
  18. package/dist/onlymapjs.js +1 -1
  19. package/dist/plane-layers.d.ts +22 -0
  20. package/dist/{post-process-effect-CjGvim4U.js → post-process-effect-DqteD0Gr.js} +1 -1
  21. package/dist/{raster-BkCit2hH.js → raster-3YBp5u4H.js} +3 -3
  22. package/dist/{raster-pipeline-BvIx-poy.js → raster-pipeline-P1v9_jgU.js} +1 -1
  23. package/dist/text-on-path-DMUvpyS-.js +201 -0
  24. package/dist/text-on-path.d.ts +51 -11
  25. package/dist/version.d.ts +1 -1
  26. package/dist/{zarr-HSWSwGfd.js → zarr-CldzO0mP.js} +2 -2
  27. package/docs/cartograph.md +2 -2
  28. package/llms.txt +1 -1
  29. package/onlymapjs.attributes.json +2 -0
  30. package/onlymapjs.html-data.json +8 -0
  31. package/package.json +1 -1
  32. package/skills/onlymapjs/SKILL.md +1 -1
  33. package/skills/onlymapjs/references/syntax.md +5 -2
  34. package/dist/text-on-path-DTAVhz00.js +0 -146
@@ -59,3 +59,21 @@ export declare const RASTER_COLORMAP_STOPS: Record<string, string[]>;
59
59
  */
60
60
  export declare function deriveRasterLegendSpec(colormap: string | null | undefined, min: number | null | undefined, max: number | null | undefined): LegendSpec | undefined;
61
61
  export declare function deriveLegendSpec(source: string | null | undefined): LegendSpec | undefined;
62
+ /**
63
+ * A CONSTANT colour expression, as a CSS colour the legend can paint.
64
+ *
65
+ * `deriveLegendSpec` describes DATA-DRIVEN symbology and returns nothing for a
66
+ * flat colour, which is correct — there is no mapping to show. But the widget's
67
+ * fallback then reached for the `color` shorthand, and a layer styled the
68
+ * ordinary way (`get-fill-color="[226,206,166,92]"`) sets no such attribute, so
69
+ * every entry rendered as the `#999` default. A whole legend of grey squares
70
+ * for a map whose every layer has an obvious colour.
71
+ *
72
+ * Accepts the forms the library actually documents and examples use: a deck
73
+ * RGB/RGBA array, a hex literal quoted or bare, and CSS `rgb()`/`rgba()`. An
74
+ * expression that is not a constant returns undefined and leaves the existing
75
+ * behaviour alone — the legend still never guesses.
76
+ */
77
+ export declare function constantColorCss(source: string | null | undefined): string | undefined;
78
+ /** Is this constant colour fully transparent — i.e. not what the reader sees? */
79
+ export declare function isTransparent(css: string | undefined): boolean;
@@ -1,4 +1,4 @@
1
- import { C as o, D as s } from "./raster-BkCit2hH.js";
1
+ import { C as o, D as s } from "./raster-3YBp5u4H.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";