@toclocoinc/lattice-grid 1.74.0 → 1.75.0
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/angular/package.json +1 -1
- package/docs/API.html +44 -6
- package/docs/CHART-CODES.md +8 -0
- package/docs/api/adapters.html +1 -1
- package/docs/api/ai.html +1 -1
- package/docs/api/alarms.html +1 -1
- package/docs/api/charts.html +28 -2
- package/docs/api/data-router.html +1 -1
- package/docs/api/deckgl.html +2 -2
- package/docs/api/gantt.html +1 -1
- package/docs/api/geometry.html +1 -1
- package/docs/api/grid.html +2 -2
- package/docs/api/index.html +2 -2
- package/docs/api/kanban.html +1 -1
- package/docs/api/kpi.html +1 -1
- package/docs/api/layout.html +1 -1
- package/docs/api/list.html +1 -1
- package/docs/api/mock-socket.html +1 -1
- package/docs/api/tabs.html +1 -1
- package/docs/api/types.html +13 -1
- package/docs/api-detail.html +13 -4
- package/docs/warnings.json +36 -3
- package/lattice-grid.d.ts +37 -2
- package/lattice-grid.esm.min.js +3 -3
- package/lattice-grid.min.cjs +3 -3
- package/lattice-grid.min.js +3 -3
- package/modules/ai.d.ts +1 -1
- package/modules/ai.esm.min.js +2 -2
- package/modules/ai.min.cjs +2 -2
- package/modules/ai.min.js +2 -2
- package/modules/alarms.d.ts +1 -1
- package/modules/alarms.esm.min.js +2 -2
- package/modules/alarms.min.cjs +2 -2
- package/modules/alarms.min.js +2 -2
- package/modules/angular.d.ts +1 -1
- package/modules/angular.esm.min.js +2 -2
- package/modules/angular.min.cjs +2 -2
- package/modules/angular.min.js +2 -2
- package/modules/chart-alluvial.d.ts +1 -1
- package/modules/chart-alluvial.esm.min.js +1 -1
- package/modules/chart-alluvial.min.cjs +1 -1
- package/modules/chart-alluvial.min.js +1 -1
- package/modules/chart-arc.d.ts +1 -1
- package/modules/chart-arc.esm.min.js +1 -1
- package/modules/chart-arc.min.cjs +1 -1
- package/modules/chart-arc.min.js +1 -1
- package/modules/chart-bubblemap.d.ts +1 -1
- package/modules/chart-bubblemap.esm.min.js +1 -1
- package/modules/chart-bubblemap.min.cjs +1 -1
- package/modules/chart-bubblemap.min.js +1 -1
- package/modules/chart-bump.d.ts +1 -1
- package/modules/chart-bump.esm.min.js +1 -1
- package/modules/chart-bump.min.cjs +1 -1
- package/modules/chart-bump.min.js +1 -1
- package/modules/chart-calendar.d.ts +1 -1
- package/modules/chart-calendar.esm.min.js +2 -2
- package/modules/chart-calendar.esm.min.js.map +1 -1
- package/modules/chart-calendar.min.cjs +2 -2
- package/modules/chart-calendar.min.js +2 -2
- package/modules/chart-calendar.min.js.map +1 -1
- package/modules/chart-choropleth.d.ts +1 -1
- package/modules/chart-choropleth.esm.min.js +2 -2
- package/modules/chart-choropleth.esm.min.js.map +1 -1
- package/modules/chart-choropleth.min.cjs +2 -2
- package/modules/chart-choropleth.min.js +2 -2
- package/modules/chart-choropleth.min.js.map +1 -1
- package/modules/chart-decomposition.d.ts +1 -1
- package/modules/chart-decomposition.esm.min.js +1 -1
- package/modules/chart-decomposition.min.cjs +1 -1
- package/modules/chart-decomposition.min.js +1 -1
- package/modules/chart-diverging.d.ts +1 -1
- package/modules/chart-diverging.esm.min.js +1 -1
- package/modules/chart-diverging.min.cjs +1 -1
- package/modules/chart-diverging.min.js +1 -1
- package/modules/chart-dumbbell.d.ts +1 -1
- package/modules/chart-dumbbell.esm.min.js +1 -1
- package/modules/chart-dumbbell.min.cjs +1 -1
- package/modules/chart-dumbbell.min.js +1 -1
- package/modules/chart-fan.d.ts +1 -1
- package/modules/chart-fan.esm.min.js +1 -1
- package/modules/chart-fan.min.cjs +1 -1
- package/modules/chart-fan.min.js +1 -1
- package/modules/chart-hexbin.d.ts +1 -1
- package/modules/chart-hexbin.esm.min.js +2 -2
- package/modules/chart-hexbin.esm.min.js.map +1 -1
- package/modules/chart-hexbin.min.cjs +2 -2
- package/modules/chart-hexbin.min.js +2 -2
- package/modules/chart-hexbin.min.js.map +1 -1
- package/modules/chart-hexmap.d.ts +1 -1
- package/modules/chart-hexmap.esm.min.js +2 -2
- package/modules/chart-hexmap.esm.min.js.map +1 -1
- package/modules/chart-hexmap.min.cjs +2 -2
- package/modules/chart-hexmap.min.js +2 -2
- package/modules/chart-hexmap.min.js.map +1 -1
- package/modules/chart-icicle.d.ts +1 -1
- package/modules/chart-icicle.esm.min.js +1 -1
- package/modules/chart-icicle.min.cjs +1 -1
- package/modules/chart-icicle.min.js +1 -1
- package/modules/chart-markermap.d.ts +1 -1
- package/modules/chart-markermap.esm.min.js +1 -1
- package/modules/chart-markermap.min.cjs +1 -1
- package/modules/chart-markermap.min.js +1 -1
- package/modules/chart-parallel.d.ts +1 -1
- package/modules/chart-parallel.esm.min.js +1 -1
- package/modules/chart-parallel.min.cjs +1 -1
- package/modules/chart-parallel.min.js +1 -1
- package/modules/chart-ridgeline.d.ts +1 -1
- package/modules/chart-ridgeline.esm.min.js +1 -1
- package/modules/chart-ridgeline.min.cjs +1 -1
- package/modules/chart-ridgeline.min.js +1 -1
- package/modules/chart-roc.d.ts +1 -1
- package/modules/chart-roc.esm.min.js +1 -1
- package/modules/chart-roc.min.cjs +1 -1
- package/modules/chart-roc.min.js +1 -1
- package/modules/chart-slope.d.ts +1 -1
- package/modules/chart-slope.esm.min.js +1 -1
- package/modules/chart-slope.min.cjs +1 -1
- package/modules/chart-slope.min.js +1 -1
- package/modules/chart-splom.d.ts +1 -1
- package/modules/chart-splom.esm.min.js +1 -1
- package/modules/chart-splom.min.cjs +1 -1
- package/modules/chart-splom.min.js +1 -1
- package/modules/chart-waffle.d.ts +1 -1
- package/modules/chart-waffle.esm.min.js +1 -1
- package/modules/chart-waffle.min.cjs +1 -1
- package/modules/chart-waffle.min.js +1 -1
- package/modules/charts.d.ts +1 -1
- package/modules/charts.esm.min.js +185 -178
- package/modules/charts.esm.min.js.map +2 -2
- package/modules/charts.min.cjs +185 -178
- package/modules/charts.min.js +185 -178
- package/modules/charts.min.js.map +2 -2
- package/modules/data-router.d.ts +1 -1
- package/modules/data-router.esm.min.js +2 -2
- package/modules/data-router.min.cjs +2 -2
- package/modules/data-router.min.js +2 -2
- package/modules/deckgl.d.ts +9 -3
- package/modules/deckgl.esm.min.js +18 -11
- package/modules/deckgl.esm.min.js.map +2 -2
- package/modules/deckgl.min.cjs +18 -11
- package/modules/deckgl.min.js +18 -11
- package/modules/deckgl.min.js.map +2 -2
- package/modules/devtools.d.ts +1 -1
- package/modules/devtools.esm.min.js +1 -1
- package/modules/devtools.min.cjs +1 -1
- package/modules/devtools.min.js +1 -1
- package/modules/dhtmlx-compat.d.ts +1 -1
- package/modules/dhtmlx-compat.esm.min.js +2 -2
- package/modules/dhtmlx-compat.min.cjs +2 -2
- package/modules/dhtmlx-compat.min.js +2 -2
- package/modules/gantt.d.ts +1 -1
- package/modules/gantt.esm.min.js +2 -2
- package/modules/gantt.min.cjs +2 -2
- package/modules/gantt.min.js +2 -2
- package/modules/geo-europe-nuts.d.ts +1 -1
- package/modules/geo-europe-nuts.esm.min.js +1 -1
- package/modules/geo-europe-nuts.min.cjs +1 -1
- package/modules/geo-europe-nuts.min.js +1 -1
- package/modules/geo-uk.d.ts +1 -1
- package/modules/geo-uk.esm.min.js +1 -1
- package/modules/geo-uk.min.cjs +1 -1
- package/modules/geo-uk.min.js +1 -1
- package/modules/geo-us-states.d.ts +1 -1
- package/modules/geo-us-states.esm.min.js +1 -1
- package/modules/geo-us-states.min.cjs +1 -1
- package/modules/geo-us-states.min.js +1 -1
- package/modules/geo-world-110m.d.ts +1 -1
- package/modules/geo-world-110m.esm.min.js +1 -1
- package/modules/geo-world-110m.min.cjs +1 -1
- package/modules/geo-world-110m.min.js +1 -1
- package/modules/geo-world-50m.d.ts +1 -1
- package/modules/geo-world-50m.esm.min.js +1 -1
- package/modules/geo-world-50m.min.cjs +1 -1
- package/modules/geo-world-50m.min.js +1 -1
- package/modules/geometry.d.ts +1 -1
- package/modules/geometry.esm.min.js +2 -2
- package/modules/geometry.min.cjs +2 -2
- package/modules/geometry.min.js +2 -2
- package/modules/htmx.d.ts +1 -1
- package/modules/htmx.esm.min.js +3 -3
- package/modules/htmx.min.cjs +3 -3
- package/modules/htmx.min.js +3 -3
- package/modules/kanban.d.ts +1 -1
- package/modules/kanban.esm.min.js +2 -2
- package/modules/kanban.min.cjs +2 -2
- package/modules/kanban.min.js +2 -2
- package/modules/kpi.d.ts +1 -1
- package/modules/kpi.esm.min.js +2 -2
- package/modules/kpi.min.cjs +2 -2
- package/modules/kpi.min.js +2 -2
- package/modules/layout.d.ts +1 -1
- package/modules/layout.esm.min.js +2 -2
- package/modules/layout.min.cjs +2 -2
- package/modules/layout.min.js +2 -2
- package/modules/list.d.ts +1 -1
- package/modules/list.esm.min.js +2 -2
- package/modules/list.min.cjs +2 -2
- package/modules/list.min.js +2 -2
- package/modules/mock-socket.d.ts +1 -1
- package/modules/mock-socket.esm.min.js +1 -1
- package/modules/mock-socket.min.cjs +1 -1
- package/modules/mock-socket.min.js +1 -1
- package/modules/react.d.ts +1 -1
- package/modules/react.esm.min.js +2 -2
- package/modules/react.min.cjs +2 -2
- package/modules/react.min.js +2 -2
- package/modules/svelte.d.ts +1 -1
- package/modules/svelte.esm.min.js +2 -2
- package/modules/svelte.min.cjs +2 -2
- package/modules/svelte.min.js +2 -2
- package/modules/tabs.d.ts +1 -1
- package/modules/tabs.esm.min.js +2 -2
- package/modules/tabs.min.cjs +2 -2
- package/modules/tabs.min.js +2 -2
- package/modules/vue.d.ts +1 -1
- package/modules/vue.esm.min.js +2 -2
- package/modules/vue.min.cjs +2 -2
- package/modules/vue.min.js +2 -2
- package/modules/webcomponent.d.ts +1 -1
- package/modules/webcomponent.esm.min.js +3 -3
- package/modules/webcomponent.min.cjs +3 -3
- package/modules/webcomponent.min.js +3 -3
- package/package.json +1 -1
package/docs/warnings.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.75.0",
|
|
3
3
|
"generated": "tools/build.js from docs/warnings/catalogue.json",
|
|
4
4
|
"about": "Every developer-facing diagnostic Lattice Grid prints to the console, by the key it de-duplicates on. The key is the stable identifier: it is the `id` of every reported entry `grid.diagnostics.warnings()` hands back, what the devtools panel lists, and what to quote in a support conversation. A `*` in an id stands for a value filled in at runtime (a column id, a chart id, an event name), so `icon:*` is one entry covering every column the icon renderer refuses.",
|
|
5
5
|
"fields": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"snippet": "the smallest configuration that fixes it, where configuration is the answer",
|
|
15
15
|
"docs": "the section of the API reference that covers the feature"
|
|
16
16
|
},
|
|
17
|
-
"count":
|
|
17
|
+
"count": 528,
|
|
18
18
|
"warnings": [
|
|
19
19
|
{
|
|
20
20
|
"id": "ai:actorbar:no-el",
|
|
@@ -5360,6 +5360,38 @@
|
|
|
5360
5360
|
"snippet": "createChart({ grid, container, type: 'donut', x: 'status', y: 'count', scheme: { Operational: 'green', Offline: 'red' } });",
|
|
5361
5361
|
"docs": "api/charts.html#chartsmodule"
|
|
5362
5362
|
},
|
|
5363
|
+
{
|
|
5364
|
+
"id": "chart:*:ramp:log",
|
|
5365
|
+
"module": "charts",
|
|
5366
|
+
"severity": "info",
|
|
5367
|
+
"since": "1.75.0",
|
|
5368
|
+
"message": "chart {type} is coloured on a log ramp scale: its values span {ratio}:1, past the 100:1 at which a linear ramp leaves all but the largest in its palest shade. Set ramp: { scale: \"linear\" } to keep it linear.",
|
|
5369
|
+
"meaning": "A ramp-coloured chart (a heatmap, a geomap, a map's density cells, or the opt-in calendar, hexbin, hexmap or choropleth) named no `ramp.scale`, and its finite positive values span more than two orders of magnitude. On a linear ramp every value below the top decade would draw in nearly the palest shade, so the chart placed values on a log scale instead: equal ratios are equal steps of colour, and the legend is labelled at powers of ten. `chart.provenance().ramp` reports `{ scale: 'log', auto: true, ratio }` on every draw. Said once per chart.",
|
|
5370
|
+
"fix": "Nothing, if the log scale reads well. To keep the linear scale, set `ramp: { scale: 'linear' }`; for equal-count classes, `ramp: { scale: 'quantile' }`. Naming a scale also silences this note.",
|
|
5371
|
+
"snippet": "createChart({ grid, container, type: 'markermap', geometry: 'place', ramp: { scale: 'log' } });",
|
|
5372
|
+
"docs": "api/charts.html#chartsmodule"
|
|
5373
|
+
},
|
|
5374
|
+
{
|
|
5375
|
+
"id": "chart:ramp:scale:*",
|
|
5376
|
+
"module": "charts",
|
|
5377
|
+
"severity": "warn",
|
|
5378
|
+
"since": "1.75.0",
|
|
5379
|
+
"message": "chart \"ramp.scale\" was \"{scale}\", which is not a ramp scale; the chart chose one from its values instead. Use \"linear\", \"log\" or \"quantile\".",
|
|
5380
|
+
"meaning": "`ramp.scale` names how a value is placed along a colour ramp, and only `linear`, `log` and `quantile` exist. The unknown name was ignored and the default rule applied: log when the positive values span more than 100:1, linear otherwise.",
|
|
5381
|
+
"fix": "Set `ramp.scale` to `'linear'`, `'log'` or `'quantile'`, or leave it out to let the chart choose.",
|
|
5382
|
+
"snippet": "ramp: { scale: 'quantile' }",
|
|
5383
|
+
"docs": "api/charts.html#chartsmodule"
|
|
5384
|
+
},
|
|
5385
|
+
{
|
|
5386
|
+
"id": "chart:ramp:diverging-scale",
|
|
5387
|
+
"module": "charts",
|
|
5388
|
+
"severity": "warn",
|
|
5389
|
+
"since": "1.75.0",
|
|
5390
|
+
"message": "chart \"ramp.scale\" was \"{scale}\" on a diverging ramp, which is always linear and centred on zero; the scale was not applied. Drop \"diverging\" to colour by a log or quantile scale.",
|
|
5391
|
+
"meaning": "A diverging ramp (`diverging: true`) is centred on zero so the sign reads first, and a log or quantile placement would move that centre. The chart kept the diverging ramp linear and ignored the scale.",
|
|
5392
|
+
"fix": "Drop `diverging` to colour by a log or quantile scale, or drop `ramp.scale` to keep the diverging ramp.",
|
|
5393
|
+
"docs": "api/charts.html#chartsmodule"
|
|
5394
|
+
},
|
|
5363
5395
|
{
|
|
5364
5396
|
"id": "filter:geometry:*",
|
|
5365
5397
|
"module": "geometry",
|
|
@@ -5411,7 +5443,8 @@
|
|
|
5411
5443
|
"message": "data-type \"{declaredType}\" on column \"{field}\" is not a built-in type name, so it was ignored; the column falls back to sampled shape typing.",
|
|
5412
5444
|
"meaning": "readTable/hydrateTable read a server-rendered <th data-type> to set that column's type, so sort, filter and editor follow it without further configuration. The named value matches none of the built-in type names (the seven base types or the extended catalogue), so it cannot be resolved to anything, and the column is left untyped: it is inferred from the row data exactly as if no data-type had been given.",
|
|
5413
5445
|
"fix": "Spell a built-in type name (number, date, bytes, ...), or omit data-type and let the column's shape be inferred from the data.",
|
|
5414
|
-
"snippet": "<th data-type=\"number\">Qty</th>"
|
|
5446
|
+
"snippet": "<th data-type=\"number\">Qty</th>",
|
|
5447
|
+
"docs": "api-detail.html#htmx-guide-data-type"
|
|
5415
5448
|
},
|
|
5416
5449
|
{
|
|
5417
5450
|
"id": "list:item:*",
|
package/lattice-grid.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Lattice Grid 1.
|
|
2
|
+
* Lattice Grid 1.75.0, type declarations
|
|
3
3
|
* Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
|
|
4
4
|
* https://latticegrid.dev
|
|
5
5
|
*/
|
|
@@ -12279,6 +12279,31 @@ export interface ChartScheme {
|
|
|
12279
12279
|
negative?: string;
|
|
12280
12280
|
}
|
|
12281
12281
|
|
|
12282
|
+
/**
|
|
12283
|
+
* The object form of {@link ChartSpec.ramp}: the ramp's
|
|
12284
|
+
* colours together with the scale a value is placed along it by. Read by
|
|
12285
|
+
* every ramp-coloured type — `heatmap`, `geomap`, a `markermap` or `bubblemap`
|
|
12286
|
+
* past its viewport cap (density cells), and the opt-in `calendar`, `hexbin`,
|
|
12287
|
+
* `hexmap` and `choropleth`.
|
|
12288
|
+
*/
|
|
12289
|
+
export interface ChartRampOptions {
|
|
12290
|
+
/** The sequential ramp's two colours, low value then high; the scheme's pair when unset. */
|
|
12291
|
+
colours?: [string, string] | string[];
|
|
12292
|
+
/**
|
|
12293
|
+
* How a value is placed along the ramp. `'linear'`: equal steps of value are
|
|
12294
|
+
* equal steps of colour. `'log'`: equal ratios are, so 10 → 100 moves as far
|
|
12295
|
+
* as 1,000 → 10,000; a value at or below zero is drawn at the bottom of the
|
|
12296
|
+
* ramp; the legend labels powers of ten (1-2-5 steps when the values span
|
|
12297
|
+
* under two decades). `'quantile'`: the values are split into five classes
|
|
12298
|
+
* of equal count, one shade each, and the legend labels the four cut points.
|
|
12299
|
+
* Unset, the chart chooses: `'log'` when the finite positive values span
|
|
12300
|
+
* more than two orders of magnitude (largest / smallest > 100), saying so
|
|
12301
|
+
* once in the console and in `chart.provenance().ramp`, and `'linear'`
|
|
12302
|
+
* otherwise. A diverging ramp is always linear and centred on zero.
|
|
12303
|
+
*/
|
|
12304
|
+
scale?: 'linear' | 'log' | 'quantile';
|
|
12305
|
+
}
|
|
12306
|
+
|
|
12282
12307
|
/** A measure a chart reduces, when the chart is not given a bare `y`. */
|
|
12283
12308
|
/** The mark a combo chart's measure draws with. */
|
|
12284
12309
|
export type ChartMeasureType = 'bar' | 'line' | 'area';
|
|
@@ -12968,8 +12993,11 @@ export interface ChartSpec {
|
|
|
12968
12993
|
* leaving the palette, the diverging ramp and the semantic colours as the
|
|
12969
12994
|
* scheme (named or default) already set them. Two colours,
|
|
12970
12995
|
* low value then high; a longer array is read by its first and last stop.
|
|
12996
|
+
* The object form, {@link ChartRampOptions}, also takes the `scale` a value
|
|
12997
|
+
* is placed along the ramp by — `'linear'`, `'log'` or `'quantile'`, chosen
|
|
12998
|
+
* from the values when unset.
|
|
12971
12999
|
*/
|
|
12972
|
-
ramp?: [string, string] | string[];
|
|
13000
|
+
ramp?: [string, string] | string[] | ChartRampOptions;
|
|
12973
13001
|
/**
|
|
12974
13002
|
* Draw these series (by their own value, the same name `scheme`'s map keys
|
|
12975
13003
|
* on) with a heavier stroke, full opacity and on top of the rest; every
|
|
@@ -13692,6 +13720,13 @@ export interface ChartProvenance {
|
|
|
13692
13720
|
* engine sent the rows for the view, or when the cap changed what is drawn.
|
|
13693
13721
|
*/
|
|
13694
13722
|
viewport?: ChartViewportProvenance;
|
|
13723
|
+
/**
|
|
13724
|
+
* A ramp-coloured draw:
|
|
13725
|
+
* the scale its marks were placed on, `auto` when the chart chose it from the
|
|
13726
|
+
* values rather than the spec asking, and the finite positive values'
|
|
13727
|
+
* largest / smallest (0 when there are none).
|
|
13728
|
+
*/
|
|
13729
|
+
ramp?: { scale: 'linear' | 'log' | 'quantile'; auto: boolean; ratio: number };
|
|
13695
13730
|
/** Each measure's column, reduction and where it was computed. */
|
|
13696
13731
|
measures: Array<{
|
|
13697
13732
|
col: string | null;
|