@xiee/utils 1.14.110 → 1.14.111

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/js/lt-plot.js CHANGED
@@ -1,38 +1,38 @@
1
1
  /* lt-plot.js — inline graphics cells for lt tables (error bars, sparklines,
2
2
  * dot plots, …).
3
- * Registers cell renderers on LT.cells; the core runtime (lt.js) consults them
4
- * while building the <table>, so a plot draws for every render path (static,
5
- * Node-baked, and the interactive per-page rebuild) with no plot code in core.
6
- * This file must run before lt.js: core reads LT.cells when it drains the queue
7
- * (linked <script defer> keeps document order; inline scripts run in order too).
3
+ * Registers cell renderers on LT.cells; core (lt.js) consults them while
4
+ * building the <table>, so plots draw on every render path (static,
5
+ * Node-baked, interactive rebuild) with no plot code in core.
6
+ * Must run before lt.js: core reads LT.cells when draining the queue (linked
7
+ * <script defer> keeps document order; inline scripts run in order too).
8
8
  */
9
9
  (root => {
10
10
  "use strict";
11
11
  const LT = root.LT || (root.LT = {}), cells = LT.cells || (LT.cells = {});
12
- if (cells.errorbar) return; // duplicate inclusion is a no-op
12
+ if (cells.errorbar) return; // duplicate include: no-op
13
13
 
14
- // Horizontal padding (px) left/right inside an error-bar SVG, so points,
15
- // bars, and axis ticks never sit flush against the cell edge.
14
+ // Horizontal padding (px) inside an error-bar SVG, so points, bars, axis
15
+ // ticks never touch the cell edge.
16
16
  const EB_PAD = 4;
17
- // Axis tick-label font size (px); also drives how many ticks fit (see below)
18
- // and must match the font-size for `.lt-eb-axis text` in lt-plot.css.
17
+ // Axis tick-label font size (px); also sets how many ticks fit (below).
18
+ // Must match `.lt-eb-axis text` font-size in lt-plot.css.
19
19
  const EB_AXIS_FONT = 11;
20
20
 
21
- // Auto-fit: cfg.fit is a CSS width (--fw), cfg.floor the min px (--w). The
22
- // resizer (bottom) remeasures and redraws at the real px, so marks stay crisp.
21
+ // Auto-fit: cfg.fit = CSS width (--fw), cfg.floor = min px (--w). Resizer
22
+ // (bottom) remeasures and redraws at real px, keeping marks crisp.
23
23
  const fitCls = cfg => cfg.fit ? " lt-fit" : "",
24
24
  fitDecl = cfg => cfg.fit ? `--w:${cfg.floor}px;--fw:${cfg.fit}` : "",
25
25
  fitStyle = cfg => cfg.fit ? ` style="${fitDecl(cfg)}"` : "";
26
- // Shared cfg fields: coord width (op._w once the resizer measured it, else the
27
- // fixed/floor px `dflt`), the CSS width, and the floor.
26
+ // Shared cfg fields: coord width (op._w once resizer measured, else
27
+ // fixed/floor px `dflt`), CSS width, floor.
28
28
  const fitCfg = (op, dflt) => {
29
29
  const floor = op.width || dflt;
30
30
  return { width: op._w || floor, fit: op.fit, floor };
31
31
  };
32
32
 
33
- // "Nice" axis ticks for [lo, hi] (~n of them), à la base R's pretty(): snap
34
- // the step to 1/2/5 × 10^k so labels are round numbers. Returns tick values
35
- // rounded to the step's own precision (so no float noise like 0.30000001).
33
+ // "Nice" axis ticks for [lo, hi] (~n), like base R pretty(): step snapped
34
+ // to 1/2/5 x 10^k. Returns values rounded to step precision (no float noise
35
+ // like 0.30000001).
36
36
  function niceTicks(lo, hi, n = 5) {
37
37
  if (!(hi > lo)) return [lo];
38
38
  const niceNum = (x, round) => {
@@ -43,45 +43,43 @@
43
43
  };
44
44
  const d = niceNum(niceNum(hi - lo, false) / (n - 1), true),
45
45
  dec = Math.max(0, -Math.floor(Math.log10(d))), ticks = [];
46
- // stay within [lo, hi]: a tick past hi would be clamped onto the right edge
47
- // (see ebX), bunching the last gap. The small tolerance only absorbs the
48
- // float drift of landing exactly on hi.
46
+ // Stay within [lo, hi]: tick past hi would clamp onto right edge (see
47
+ // ebX), bunching last gap. Small tolerance absorbs float drift when
48
+ // landing exactly on hi.
49
49
  for (let v = Math.ceil(lo / d) * d; v <= hi + d * 1e-9; v += d)
50
50
  ticks.push(+v.toFixed(dec));
51
51
  return ticks;
52
52
  }
53
53
 
54
- // How many axis ticks fit without the labels crowding: budget each label at
55
- // ~0.6em per char (its widest value is at one of the ends) plus a one-em gap.
54
+ // Ticks that fit without crowding: each label ~0.6em per char (widest value
55
+ // at an end) plus one-em gap.
56
56
  function nAxisTicks(eb) {
57
57
  const inner = eb.width - 2 * EB_PAD,
58
58
  chars = Math.max(String(eb.min).length, String(eb.max).length),
59
59
  per = chars * EB_AXIS_FONT * 0.6 + EB_AXIS_FONT;
60
60
  return Math.max(2, Math.min(8, Math.floor(inner / per) + 1));
61
61
  }
62
- // Map a value to an x pixel on an error-bar's shared [min,max] scale: fit the
63
- // scale into [EB_PAD, W - EB_PAD], clamp into that range (a degenerate scale
64
- // centers), and round to 0.1px so coords stay short and free of float noise.
62
+ // Value -> x pixel on error-bar shared [min,max] scale: fit into [EB_PAD, W
63
+ // - EB_PAD], clamp (degenerate scale centers), round to 0.1px for short
64
+ // coords.
65
65
  const ebX = (eb, v) => {
66
66
  const inner = eb.width - 2 * EB_PAD, span = eb.max - eb.min,
67
67
  p = span > 0 ? EB_PAD + (v - eb.min) / span * inner : eb.width / 2;
68
68
  return Math.round(Math.max(EB_PAD, Math.min(eb.width - EB_PAD, p)) * 10) / 10;
69
69
  };
70
70
 
71
- // y pixel of series i of n within a cell of height H: a lone series on the
72
- // mid-line, else evenly spaced tracks so stacked points/bars do not overlap.
73
- // Shared by the stacked error bar and the staggered dot plot.
71
+ // y pixel of series i of n in cell height H: lone series on mid-line, else
72
+ // evenly spaced tracks so stacked marks do not overlap. Shared by stacked
73
+ // error bar and staggered dot plot.
74
74
  const stackY = (i, n, H) => n <= 1 ? H / 2 : Math.round((i + 1) / (n + 1) * H);
75
75
 
76
- // Inline SVG for an error-bar cell: one series per triple (value, lower,
77
- // upper) — a point at the estimate and a horizontal bar (with end caps) from
78
- // the lower to the upper bound, on the column's shared [min,max] scale. A
79
- // single series sits on the mid-line; several series stack at evenly spaced
80
- // rows, each optionally colored (see the footer legend). Only the numbers are
81
- // shipped in the spec; the SVG is built here at render time, so an
82
- // interactive table (which rebuilds <tbody> from spec._viewRows) draws it
83
- // only for the rows on the current page. `u` carries the core helpers
84
- // (esc/isNum/str) passed in by lt.js.
76
+ // Inline SVG for error-bar cell: one series per triple (value, lower,
77
+ // upper): point at estimate plus horizontal bar (end caps) lower to upper,
78
+ // on column shared [min,max] scale. Single series on mid-line; several
79
+ // stack at evenly spaced rows, optionally colored (see footer legend). Spec
80
+ // ships only numbers; SVG built at render time, so interactive tables
81
+ // (rebuilding <tbody> from spec._viewRows) draw only current-page rows. `u`
82
+ // = core helpers (esc/isNum/str) from lt.js.
85
83
  function svgErrorbar(eb, data, r, u) {
86
84
  const num = k => { const v = data[k]?.[r - 1]; return u.isNum(v) ? v : null; };
87
85
  const H = eb.height, n = eb.cols.length, x = v => ebX(eb, v),
@@ -95,13 +93,14 @@
95
93
  const est = num(c), lo = num(eb.los[i]), hi = num(eb.his[i]);
96
94
  if (est == null && lo == null && hi == null) return;
97
95
  const y = yOf(i), col = eb.colors?.[i],
98
- // per-series color via stroke=/fill= attributes; the stylesheet only
99
- // defaults series that lack them (:not([stroke])/:not([fill])), so a
100
- // color shows but a user CSS rule can still override it
96
+ // per-series color via stroke=/fill= attributes;
97
+ // stylesheet only defaults series lacking them
98
+ // (:not([stroke])/:not([fill])), so color shows but
99
+ // user CSS can override
101
100
  st = col ? ` stroke="${u.esc(col)}"` : "",
102
101
  fl = col ? ` fill="${u.esc(col)}"` : "";
103
102
  if (lo != null && hi != null) {
104
- // horizontal bar plus short vertical end caps at both ends
103
+ // horizontal bar plus short vertical end caps
105
104
  const xl = x(lo), xh = x(hi);
106
105
  s += `<line${st} x1="${xl}" y1="${y}" x2="${xh}" y2="${y}"/>` +
107
106
  `<line${st} x1="${xl}" y1="${y - cap}" x2="${xl}" y2="${y + cap}"/>` +
@@ -116,13 +115,12 @@
116
115
  return s + `<title>${u.esc(titles.join("\n"))}</title></svg>`;
117
116
  }
118
117
 
119
- // Full-cell background layer of faint vertical gridlines at the shared tick
120
- // positions. Its width is fixed in px (matching the plot SVG, so the lines
121
- // stay aligned with the bars), while height="100%" + preserveAspectRatio
122
- // "none" stretch it to fill the whole <td> vertically — so the lines run
123
- // continuously across the cell's (zeroed) padding and line up row-to-row. A
124
- // per-cell fixed-height SVG could not: the cell padding leaves a gap it can't
125
- // reach. Scaling only the vertical axis is harmless for vertical lines.
118
+ // Full-cell background of faint vertical gridlines at shared tick
119
+ // positions. Width fixed in px (matches plot SVG, so lines align with
120
+ // bars); height="100%" + preserveAspectRatio "none" stretches it over the
121
+ // whole <td>, so lines run continuously across zeroed padding and line up
122
+ // row-to-row. Per-cell fixed-height SVG could not reach the padding.
123
+ // Vertical-only scaling is harmless for vertical lines.
126
124
  function svgGrid(eb) {
127
125
  let s = `<svg class="lt-eb-grid-bg${fitCls(eb)}" width="${eb.width}" height="100%" ` +
128
126
  `viewBox="0 0 ${eb.width} 10" preserveAspectRatio="none">`;
@@ -131,10 +129,10 @@
131
129
  return s + `</svg>`;
132
130
  }
133
131
 
134
- // A shared horizontal axis for an error-bar column, drawn once in the footer:
135
- // a baseline with a tick mark + label at each nice tick (eb.ticks), and an
136
- // optional caption (eb.axisLabel) centered below. `overflow="visible"` lets a
137
- // caption slightly wider than the narrow column spill rather than clip.
132
+ // Shared horizontal axis for error-bar column, drawn once in footer:
133
+ // baseline, tick mark + label per nice tick (eb.ticks), optional centered
134
+ // caption (eb.axisLabel) below. `overflow="visible"` lets a caption wider
135
+ // than the column spill, not clip.
138
136
  function svgAxis(eb, u) {
139
137
  const W = eb.width, lbl = eb.axisLabel, H = lbl ? 32 : 18, x = v => ebX(eb, v);
140
138
  let s = `<svg class="lt-eb-axis${fitCls(eb)}" width="${W}" height="${H}" overflow="visible"${fitStyle(eb)}>` +
@@ -150,11 +148,10 @@
150
148
  return s + `</svg>`;
151
149
  }
152
150
 
153
- // Build an axis-capable plot renderer (error bar, dot plot) from its per-cell
154
- // SVG drawer -- all they differ by. The plot draws into the `into` column (or
155
- // the first of `columns`), on a scale shared across the column; `extra(op)`
156
- // adds the renderer-specific config (bounds for the error bar, stagger for
157
- // the dot plot).
151
+ // Build axis-capable plot renderer (error bar, dot plot) from per-cell SVG
152
+ // drawer, their only difference. Draws into `into` column (or first of
153
+ // `columns`) on scale shared across column; `extra(op)` adds
154
+ // renderer-specific config (bounds for error bar, stagger for dot plot).
158
155
  const axisPlot = (extra, draw) => ({
159
156
  resolve(op) {
160
157
  const cols = op.columns || [], v = op.into || cols[0];
@@ -164,35 +161,33 @@
164
161
  min: op.min, max: op.max, axisLabel: op.axis_label,
165
162
  height: op.height || 16, ...fitCfg(op, 160), ...extra(op)
166
163
  };
167
- // When an axis is requested, the same nice ticks drive both the footer
168
- // axis and the faint in-cell gridlines; their count is capped so the
169
- // labels do not crowd at the given width.
164
+ // With axis: same nice ticks drive footer axis and in-cell
165
+ // gridlines; count capped so labels do not crowd at given width.
170
166
  if (op.axis) cfg.ticks = niceTicks(cfg.min, cfg.max, nAxisTicks(cfg));
171
167
  return { [v]: cfg };
172
168
  },
173
- // lt-eb-cell zeroes the cell's vertical padding so the stretched gridline
174
- // background can run unbroken from one row to the next.
169
+ // lt-eb-cell zeroes cell vertical padding so stretched gridline
170
+ // background runs unbroken between rows.
175
171
  cellClass: cfg => cfg.ticks ? "lt-eb-cell" : "",
176
172
  cell: (cfg, data, r, u) => (cfg.ticks ? svgGrid(cfg) : "") + draw(cfg, data, r, u),
177
173
  foot: (cfg, u) => (cfg.ticks ? svgAxis(cfg, u) : "") + legend(cfg, u)
178
174
  });
179
175
 
180
- // Error-bar cell renderer. columns = [value, lower, upper] per series; the
181
- // plot draws a point-and-bar per series on the column's shared scale.
176
+ // Error-bar renderer. columns = [value, lower, upper] per series; draws
177
+ // point-and-bar per series on column shared scale.
182
178
  cells.errorbar = axisPlot(
183
179
  op => ({ los: op.lowers || [], his: op.uppers || [], ref: op.ref }),
184
180
  svgErrorbar
185
181
  );
186
182
 
187
- // Padding (px) inside a sparkline SVG, so the line/bars never touch the edge.
183
+ // Padding (px) inside sparkline SVG, so line/bars never touch the edge.
188
184
  const SP_PAD = 2;
189
185
  const round1 = n => Math.round(n * 10) / 10; // 0.1px, to keep coords short
190
186
  const q = v => `"${v}"`; // double-quote an SVG attribute value
191
187
 
192
- // A row's series for a sparkline: when a single column is named and its cell
193
- // is an array (a list-column), that array is the series; otherwise each named
194
- // column contributes one point, read left to right across the row. Non-finite
195
- // entries become null (a gap in the line, a skipped bar). `u` carries the core
188
+ // Row series for sparkline: single named column whose cell is an array
189
+ // (list-column) -> that array; else each named column gives one point, read
190
+ // left to right. Non-finite -> null (line gap, skipped bar). `u` = core
196
191
  // helpers (esc/isNum/str).
197
192
  function spSeries(sp, data, r, u) {
198
193
  const cell = data[sp.cols[0]]?.[r - 1],
@@ -201,10 +196,9 @@
201
196
  return raw.map(v => u.isNum(v) ? +v : null);
202
197
  }
203
198
 
204
- // Inline SVG sparkline (line or bar) for a cell. The series is scaled to the
205
- // shared [min,max] when the spec gives one, else to the row's own finite
206
- // range; a flat series sits on the mid-line. Points are spaced evenly across
207
- // the width. Nulls break the line into separate subpaths (and drop bars).
199
+ // Inline SVG sparkline (line or bar). Scaled to shared [min,max] if spec
200
+ // gives one, else row own finite range; flat series on mid-line. Points
201
+ // evenly spaced across width. Nulls break line into subpaths (drop bars).
208
202
  function svgSparkline(sp, data, r, u) {
209
203
  const vals = spSeries(sp, data, r, u), fin = vals.filter(v => v != null);
210
204
  if (!fin.length) return "";
@@ -214,14 +208,14 @@
214
208
  const xAt = i => round1(n > 1 ? SP_PAD + i / (n - 1) * (W - 2 * SP_PAD) : W / 2),
215
209
  yAt = v => round1(hi > lo
216
210
  ? H - SP_PAD - (v - lo) / (hi - lo) * (H - 2 * SP_PAD) : H / 2);
217
- // line/bars inherit `currentColor`, so one color prop styles either
211
+ // line/bars inherit `currentColor`: one color prop styles either
218
212
  const sv = [fitDecl(sp), sp.color && `color:${u.esc(sp.color)}`]
219
213
  .filter(Boolean).join(";");
220
214
  const style = sv ? ` style="${sv}"` : "";
221
215
  let body;
222
216
  if (sp.kind === "bar") {
223
- // one equal-width slot per value; each bar is centered in its slot and
224
- // grows from a zero baseline when the scale straddles 0, else the bottom.
217
+ // one equal-width slot per value; bar centered in slot, grows from
218
+ // zero baseline when scale straddles 0, else bottom.
225
219
  const slot = (W - 2 * SP_PAD) / n, bw = round1(Math.max(1, slot * 0.8)),
226
220
  base = yAt(lo < 0 && hi > 0 ? 0 : lo);
227
221
  body = vals.map((v, i) => {
@@ -243,8 +237,8 @@
243
237
  `<title>${u.esc(fin.map(u.str).join(", "))}</title></svg>`;
244
238
  }
245
239
 
246
- // Sparkline cell renderer. columns = one list-column, or several numeric
247
- // columns read across the row; the plot is drawn in the first column's cells.
240
+ // Sparkline renderer. columns = one list-column, or several numeric columns
241
+ // read across row; drawn in first column cells.
248
242
  cells.sparkline = {
249
243
  resolve(op) {
250
244
  const cols = op.columns || [], v = cols[0];
@@ -257,25 +251,26 @@
257
251
  cell: (sp, data, r, u) => svgSparkline(sp, data, r, u)
258
252
  };
259
253
 
260
- // Inline SVG dot plot for a cell: one dot per column, each at its value on the
261
- // column group's shared [min,max] scale, so a row with N columns shows N dots
262
- // laid out horizontally on one baseline. When colors are given, each dot takes
263
- // its column's color (see legend() for the key). Non-finite values draw no
264
- // dot. Reuses the error-bar scale (ebX) and padding.
254
+ // Inline SVG dot plot for cell: one dot per column at its value on
255
+ // column-group shared [min,max] scale, so N columns show N dots
256
+ // horizontally on one baseline. Colors, if given, per column (see
257
+ // legend()). Non-finite draws no dot. Reuses error-bar scale (ebX) and
258
+ // padding.
265
259
  function svgDotplot(dp, data, r, u) {
266
260
  const H = dp.height, n = dp.cols.length, x = v => ebX(dp, v),
267
- // all dots on the mid-line by default; stagger puts each column on its
268
- // own track (like the stacked error bar) so near-equal values do not
269
- // overlap — the vertical position is cosmetic, only x carries a value
261
+ // dots on mid-line by default; stagger gives each column
262
+ // own track (like stacked error bar) so near-equal values
263
+ // do not overlap; vertical position is cosmetic, only x
264
+ // carries a value
270
265
  yOf = i => dp.stagger ? stackY(i, n, H) : H / 2;
271
266
  let s = `<svg class="lt-dot${fitCls(dp)}" width="${dp.width}" height="${H}"${fitStyle(dp)}>`;
272
267
  const titles = [];
273
268
  dp.cols.forEach((c, i) => {
274
269
  const v = data[c]?.[r - 1];
275
270
  if (!u.isNum(v)) return;
276
- // the per-column color is a fill= presentation attribute; the stylesheet
277
- // only defaults dots that lack it (:not([fill])), so this color shows but
278
- // user CSS (a stylesheet rule) can still override it
271
+ // per-column color is a fill= attribute; stylesheet only defaults
272
+ // dots lacking it (:not([fill])), so color shows but user CSS can
273
+ // override
279
274
  const col = dp.colors?.[i], fl = col ? ` fill="${u.esc(col)}"` : "";
280
275
  s += `<circle${fl} cx="${x(v)}" cy="${yOf(i)}" r="3"/>`;
281
276
  titles.push((dp.labels?.[i] ? dp.labels[i] + ": " : "") + u.str(v));
@@ -283,10 +278,9 @@
283
278
  return s + `<title>${u.esc(titles.join("\n"))}</title></svg>`;
284
279
  }
285
280
 
286
- // Color key for a colored dot/error-bar plot, drawn once in the footer under
287
- // the axis: a swatch + label per series. "" when the plot is monochrome (no
288
- // colors). Shared by the dot-plot and error-bar renderers (cfg.cols/colors/
289
- // labels have the same shape in both).
281
+ // Color key for colored dot/error-bar plot, drawn once in footer under
282
+ // axis: swatch + label per series. "" if monochrome. Shared by dot-plot and
283
+ // error-bar renderers (cfg.cols/colors/labels same shape).
290
284
  function legend(cfg, u) {
291
285
  if (!cfg.colors) return "";
292
286
  const items = cfg.cols.map((c, i) =>
@@ -295,19 +289,19 @@
295
289
  return `<div class="lt-plot-legend">${items}</div>`;
296
290
  }
297
291
 
298
- // Dot-plot cell renderer. columns = the value columns (one dot each); the
299
- // plot draws on a scale shared across them. Shares the error-bar axis/gridline
300
- // machinery via axisPlot (ticks, svgGrid, svgAxis, lt-eb-cell, legend).
292
+ // Dot-plot renderer. columns = value columns (one dot each); draws on scale
293
+ // shared across them. Shares error-bar axis/gridline machinery via axisPlot
294
+ // (ticks, svgGrid, svgAxis, lt-eb-cell, legend).
301
295
  cells.dotplot = axisPlot(op => ({ stagger: op.stagger }), svgDotplot);
302
296
 
303
- // Resizer for fit plots: on each change of a fit column's width, store the new
304
- // px on the op (op._w) and redraw. We observe the column's header cell (core
305
- // hands us one per column in tbl._ltHead) -- <thead> survives the <tbody> swaps
306
- // of sort/filter/paging, and it changes exactly when the column does (resize
307
- // drag, hidden column, reflow), unlike the wrapper. We draw at the plot SVG's
308
- // own width: width:100%, so it reports the px it fills and carries no intrinsic
309
- // width, so a redraw never resizes the column just measured (no loop). Redraws
310
- // coalesce into one frame; refresh(false) keeps the current view and page.
297
+ // Resizer for fit plots: on each width change of a fit column, store new px
298
+ // on op (op._w) and redraw. Observes column header cell (core gives one per
299
+ // column in tbl._ltHead): <thead> survives <tbody> swaps of
300
+ // sort/filter/paging and changes exactly when column does (resize drag,
301
+ // hidden column, reflow), unlike wrapper. Draw at plot SVG own width:
302
+ // width:100% reports px it fills, no intrinsic width, so redraw never
303
+ // resizes the measured column (no loop). Redraws coalesce per frame;
304
+ // refresh(false) keeps view and page.
311
305
  (LT.onMount || (LT.onMount = [])).push((tbl, spec) => {
312
306
  const fitOps = (spec.ops || []).filter(o => cells[o.type] && o.fit);
313
307
  if (!fitOps.length || !root.ResizeObserver || !tbl._ltHead) return;
@@ -332,12 +326,11 @@
332
326
  measure(); // deterministic initial fit; observer handles later changes
333
327
  });
334
328
 
335
- // If core already built a table before this module loaded (a doc where an
336
- // earlier plain table pulled in lt.js first, so its renderer was missing),
337
- // re-render any mounted table that uses a renderer we just registered. Tables
338
- // mounted after us need no help — the renderer is already in place. No-op
339
- // when nothing is mounted yet (we loaded first) or outside a browser (the
340
- // Node bake controls load order).
329
+ // If core built a table before this module loaded (e.g. earlier plain table
330
+ // pulled in lt.js first, so renderer was missing), re-render mounted tables
331
+ // using a renderer just registered. Tables mounted later need no help.
332
+ // No-op when nothing mounted yet (we loaded first) or outside a browser
333
+ // (Node bake controls load order).
341
334
  const doc = root.document;
342
335
  if (doc) for (const tbl of doc.querySelectorAll(".lt-table")) {
343
336
  if ((tbl._ltSpec?.ops || []).some(o => cells[o.type])) LT.refresh?.(tbl);
@@ -1 +1 @@
1
- {"version":3,"names":["root","LT","cells","errorbar","fitCls","cfg","fit","fitDecl","floor","fitStyle","fitCfg","op","dflt","width","_w","ebX","eb","v","inner","span","max","min","p","Math","round","stackY","i","n","H","axisPlot","extra","draw","resolve","cols","columns","into","length","col","colors","labels","axisLabel","axis_label","height","axis","ticks","lo","hi","niceNum","x","e","log10","f","d","dec","ceil","push","toFixed","niceTicks","per","String","nAxisTicks","cellClass","cell","data","r","u","s","t","svgGrid","foot","W","lbl","xt","esc","str","svgAxis","items","map","c","join","legend","los","lowers","his","uppers","ref","num","k","isNum","cap","titles","forEach","est","y","yOf","st","fl","xl","xh","ci","round1","q","svgSparkline","sp","vals","Array","isArray","spSeries","fin","filter","yAt","sv","color","Boolean","style","body","kind","slot","bw","base","yv","abs","pen","xAt","sparkline","dotplot","stagger","dp","onMount","tbl","spec","fitOps","ops","o","type","ResizeObserver","_ltHead","redraw","_lt","refresh","raf","probes","th","measure","changed","svg","querySelector","cellIndex","w","getBoundingClientRect","cancelAnimationFrame","requestAnimationFrame","ro","observe","doc","document","querySelectorAll","_ltSpec","some","window"],"sources":["lt-plot.js"],"mappings":"AAQA,CAACA,IACC,aACA,MAAMC,EAAKD,EAAKC,KAAOD,EAAKC,GAAK,CAAC,GAAIC,EAAQD,EAAGC,QAAUD,EAAGC,MAAQ,CAAC,GACvE,GAAIA,EAAMC,SAAU,OAIpB,MAOMC,EAASC,GAAOA,EAAIC,IAAM,UAAY,GACtCC,EAAUF,GAAOA,EAAIC,IAAM,OAAOD,EAAIG,gBAAgBH,EAAIC,MAAQ,GAClEG,EAAWJ,GAAOA,EAAIC,IAAM,WAAWC,EAAQF,MAAU,GAGzDK,EAAS,CAACC,EAAIC,KAClB,MAAMJ,EAAQG,EAAGE,OAASD,EAC1B,MAAO,CAAEC,MAAOF,EAAGG,IAAMN,EAAOF,IAAKK,EAAGL,IAAKE,UAmC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AOD,EAAQ,CAC7B,MAAMI,EAAMhB,EAAIiB,cAAc,gCAC1BhJ,MAAM4I,EAAGK,YAAYD,cAAc,OACvC,IAAKD,EAAK,SACV,MAAMG,EAAI7H,KAAKC,MAAMyH,EAAII,wBAAwBxI,OAC7CuI,EAAI,GAAKA,IAAMzI,EAAGG,KAAMH,EAAGG,GAAKsI,EAAGJ,GAAU,EACnD,CACIA,IAAWM,qBAAqBV,GAAMA,EAAMW,sBAAsBd,KAElEe,EAAK,IAAIjB,eAAeQ,GAC9B,IAAK,MAAO,CAAED,KAAOD,EAAQW,EAAGC,QAAQX,GACxCC,MASF,MAAMW,EAAM1J,EAAK2J,SACjB,GAAID,EAAK,IAAK,MAAMzB,KAAOyB,EAAIE,iBAAiB,cACzC3B,EAAI4B,SAASzB,KAAO,IAAI0B,KAAKzB,GAAKnI,EAAMmI,EAAEC,QAAQrI,EAAG0I,UAAUV,EAEvE,EAhVD,CAgVG8B","ignoreList":[]}
1
+ {"version":3,"names":["root","LT","cells","errorbar","fitCls","cfg","fit","fitDecl","floor","fitStyle","fitCfg","op","dflt","width","_w","ebX","eb","v","inner","span","max","min","p","Math","round","stackY","i","n","H","axisPlot","extra","draw","resolve","cols","columns","into","length","col","colors","labels","axisLabel","axis_label","height","axis","ticks","lo","hi","niceNum","x","e","log10","f","d","dec","ceil","push","toFixed","niceTicks","per","String","nAxisTicks","cellClass","cell","data","r","u","s","t","svgGrid","foot","W","lbl","xt","esc","str","svgAxis","items","map","c","join","legend","los","lowers","his","uppers","ref","num","k","isNum","cap","titles","forEach","est","y","yOf","st","fl","xl","xh","ci","round1","q","svgSparkline","sp","vals","Array","isArray","spSeries","fin","filter","yAt","sv","color","Boolean","style","body","kind","slot","bw","base","yv","abs","pen","xAt","sparkline","dotplot","stagger","dp","onMount","tbl","spec","fitOps","ops","o","type","ResizeObserver","_ltHead","redraw","_lt","refresh","raf","probes","th","measure","changed","svg","querySelector","cellIndex","w","getBoundingClientRect","cancelAnimationFrame","requestAn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