@brett_lamy/ui 5.13.0 → 5.15.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.
Files changed (118) hide show
  1. package/dist/components/call-stack.d.ts +26 -0
  2. package/dist/components/call-stack.d.ts.map +1 -0
  3. package/dist/components/call-stack.js +236 -0
  4. package/dist/components/code-editor-window.d.ts +191 -0
  5. package/dist/components/code-editor-window.d.ts.map +1 -0
  6. package/dist/components/code-editor-window.js +1474 -0
  7. package/dist/components/code-editor.d.ts +213 -0
  8. package/dist/components/code-editor.d.ts.map +1 -0
  9. package/dist/components/code-editor.js +484 -0
  10. package/dist/components/file-upload.d.ts +1 -1
  11. package/dist/components/file-upload.d.ts.map +1 -1
  12. package/dist/components/file-upload.js +1 -1
  13. package/dist/components/filter-input.d.ts +1 -1
  14. package/dist/components/filter-input.d.ts.map +1 -1
  15. package/dist/components/filter-input.js +1 -1
  16. package/dist/components/filter.d.ts +1 -1
  17. package/dist/components/filter.d.ts.map +1 -1
  18. package/dist/components/filter.js +1 -1
  19. package/dist/components/log-list.d.ts +95 -0
  20. package/dist/components/log-list.d.ts.map +1 -0
  21. package/dist/components/log-list.js +549 -0
  22. package/dist/components/object-tree.d.ts +30 -0
  23. package/dist/components/object-tree.d.ts.map +1 -0
  24. package/dist/components/object-tree.js +415 -0
  25. package/dist/components/object-value.d.ts +13 -0
  26. package/dist/components/object-value.d.ts.map +1 -0
  27. package/dist/components/object-value.js +69 -0
  28. package/dist/components/request-table.d.ts +78 -0
  29. package/dist/components/request-table.d.ts.map +1 -0
  30. package/dist/components/request-table.js +697 -0
  31. package/dist/components/spreadsheet.d.ts +1 -1
  32. package/dist/components/spreadsheet.d.ts.map +1 -1
  33. package/dist/components/spreadsheet.js +1 -1
  34. package/dist/components/syntax-highlighting.d.ts +45 -77
  35. package/dist/components/syntax-highlighting.d.ts.map +1 -1
  36. package/dist/components/syntax-highlighting.js +36 -275
  37. package/dist/components/terminal.d.ts +62 -0
  38. package/dist/components/terminal.d.ts.map +1 -0
  39. package/dist/components/terminal.js +172 -0
  40. package/dist/components/trace-timeline.d.ts +97 -0
  41. package/dist/components/trace-timeline.d.ts.map +1 -0
  42. package/dist/components/trace-timeline.js +850 -0
  43. package/dist/components/tree.d.ts.map +1 -1
  44. package/dist/components/tree.js +99 -91
  45. package/dist/components/video-preview.d.ts +1 -1
  46. package/dist/components/video-preview.d.ts.map +1 -1
  47. package/dist/components/video-preview.js +1 -1
  48. package/dist/components/video-timeline.d.ts +1 -1
  49. package/dist/components/video-timeline.d.ts.map +1 -1
  50. package/dist/components/video-timeline.js +1 -1
  51. package/dist/components/workspace.d.ts.map +1 -1
  52. package/dist/components/workspace.js +1 -1
  53. package/dist/index.css +1 -1
  54. package/dist/index.d.ts +45 -11
  55. package/dist/index.d.ts.map +1 -1
  56. package/dist/index.js +119 -100
  57. package/dist/lib/call-stack-model.d.ts +75 -0
  58. package/dist/lib/call-stack-model.d.ts.map +1 -0
  59. package/dist/lib/call-stack-model.js +114 -0
  60. package/dist/lib/code-document.d.ts +229 -0
  61. package/dist/lib/code-document.d.ts.map +1 -0
  62. package/dist/lib/code-document.js +727 -0
  63. package/dist/lib/code-editor-gpu.d.ts +9 -0
  64. package/dist/lib/code-editor-gpu.d.ts.map +1 -0
  65. package/dist/lib/code-editor-gpu.js +23 -0
  66. package/dist/lib/code-editor-model.d.ts +371 -0
  67. package/dist/lib/code-editor-model.d.ts.map +1 -0
  68. package/dist/lib/code-editor-model.js +1105 -0
  69. package/dist/lib/{file-upload.d.ts → file-upload-model.d.ts} +1 -1
  70. package/dist/lib/file-upload-model.d.ts.map +1 -0
  71. package/dist/lib/{file-upload.js → file-upload-model.js} +1 -1
  72. package/dist/lib/{filter.d.ts → filter-model.d.ts} +1 -1
  73. package/dist/lib/filter-model.d.ts.map +1 -0
  74. package/dist/lib/{filter.js → filter-model.js} +1 -1
  75. package/dist/lib/filter-query.d.ts +1 -1
  76. package/dist/lib/filter-query.d.ts.map +1 -1
  77. package/dist/lib/filter-query.js +1 -1
  78. package/dist/lib/log-list-model.d.ts +132 -0
  79. package/dist/lib/log-list-model.d.ts.map +1 -0
  80. package/dist/lib/log-list-model.js +214 -0
  81. package/dist/lib/log-list-window.d.ts +121 -0
  82. package/dist/lib/log-list-window.d.ts.map +1 -0
  83. package/dist/lib/log-list-window.js +245 -0
  84. package/dist/lib/object-tree-model.d.ts +162 -0
  85. package/dist/lib/object-tree-model.d.ts.map +1 -0
  86. package/dist/lib/object-tree-model.js +347 -0
  87. package/dist/lib/object-tree-value.d.ts +139 -0
  88. package/dist/lib/object-tree-value.d.ts.map +1 -0
  89. package/dist/lib/object-tree-value.js +410 -0
  90. package/dist/lib/request-table-model.d.ts +85 -0
  91. package/dist/lib/request-table-model.d.ts.map +1 -0
  92. package/dist/lib/request-table-model.js +105 -0
  93. package/dist/lib/{spreadsheet.d.ts → spreadsheet-model.d.ts} +1 -1
  94. package/dist/lib/spreadsheet-model.d.ts.map +1 -0
  95. package/dist/lib/{spreadsheet.js → spreadsheet-model.js} +1 -1
  96. package/dist/lib/syntax.d.ts +19 -7
  97. package/dist/lib/syntax.d.ts.map +1 -1
  98. package/dist/lib/syntax.js +54 -50
  99. package/dist/lib/terminal-line.d.ts +155 -0
  100. package/dist/lib/terminal-line.d.ts.map +1 -0
  101. package/dist/lib/terminal-line.js +463 -0
  102. package/dist/lib/trace-timeline-draw.d.ts +109 -0
  103. package/dist/lib/trace-timeline-draw.d.ts.map +1 -0
  104. package/dist/lib/trace-timeline-draw.js +252 -0
  105. package/dist/lib/trace-timeline-model.d.ts +324 -0
  106. package/dist/lib/trace-timeline-model.d.ts.map +1 -0
  107. package/dist/lib/trace-timeline-model.js +510 -0
  108. package/dist/lib/video-render.d.ts +1 -1
  109. package/dist/lib/video-render.d.ts.map +1 -1
  110. package/dist/lib/video-render.js +1 -1
  111. package/dist/lib/{video-timeline.d.ts → video-timeline-model.d.ts} +1 -1
  112. package/dist/lib/video-timeline-model.d.ts.map +1 -0
  113. package/dist/lib/{video-timeline.js → video-timeline-model.js} +1 -1
  114. package/package.json +7 -1
  115. package/dist/lib/file-upload.d.ts.map +0 -1
  116. package/dist/lib/filter.d.ts.map +0 -1
  117. package/dist/lib/spreadsheet.d.ts.map +0 -1
  118. package/dist/lib/video-timeline.d.ts.map +0 -1
@@ -0,0 +1,252 @@
1
+ import { laneEnd as e, poolBuckets as t, poolDensity as n, poolPresence as r, sortedTimes as i } from "./trace-timeline-model.js";
2
+ //#region src/lib/trace-timeline-draw.ts
3
+ function a(e, t) {
4
+ switch (t) {
5
+ case "error": return e.error;
6
+ case "warning": return e.warning;
7
+ case "success": return e.success;
8
+ case "info": return e.primary;
9
+ default: return e.muted;
10
+ }
11
+ }
12
+ function o(e, t, n) {
13
+ let r = /* @__PURE__ */ new Map();
14
+ for (let i of e) {
15
+ let e = n(i), a = r.get(e);
16
+ a || r.set(e, a = {
17
+ color: e,
18
+ items: []
19
+ });
20
+ let o = i.from !== void 0;
21
+ a.items.push({
22
+ request: i,
23
+ time: t.fraction(i.time),
24
+ from: o ? t.fraction(i.from) : NaN,
25
+ to: o ? t.fraction(i.to ?? i.from) : NaN
26
+ });
27
+ }
28
+ return [...r.values()];
29
+ }
30
+ var s = class {
31
+ columns = 0;
32
+ edges = /* @__PURE__ */ new Float64Array(1);
33
+ alpha = /* @__PURE__ */ new Uint8Array();
34
+ reach = /* @__PURE__ */ new Uint8Array();
35
+ flags = /* @__PURE__ */ new Uint8Array();
36
+ buckets = /* @__PURE__ */ new Float64Array();
37
+ lines = /* @__PURE__ */ new Int32Array(1);
38
+ bands = /* @__PURE__ */ new Int32Array(1);
39
+ pools = /* @__PURE__ */ new Map();
40
+ resize(e) {
41
+ e !== this.columns && (this.columns = e, this.edges = new Float64Array(e + 1), this.alpha = new Uint8Array(e), this.reach = new Uint8Array(e), this.flags = new Uint8Array(e), this.buckets = new Float64Array(e), this.lines = new Int32Array(e + 1), this.bands = new Int32Array(e + 1), this.pools.clear());
42
+ }
43
+ }, c = 32, l = Math.PI * 2;
44
+ function u({ ctx: e, dpr: t, vertical: n, side: r, width: i }) {
45
+ n ? r === "left" ? e.setTransform(0, t, t, 0, 0, 0) : e.setTransform(0, t, -t, 0, i * t, 0) : e.setTransform(t, 0, 0, t, 0, 0);
46
+ }
47
+ function d(e) {
48
+ e.ctx.setTransform(1, 0, 0, 1, 0, 0), e.ctx.clearRect(0, 0, Math.ceil(e.width * e.dpr), Math.ceil(e.height * e.dpr)), u(e), e.ctx.globalAlpha = 1;
49
+ }
50
+ function f(e, t, n, r = e.colors.muted) {
51
+ e.vertical || !e.start || !t || n.size < 9 || (e.ctx.fillStyle = r, e.ctx.fillText(t, 6, n.at + n.size / 2, e.start - 12));
52
+ }
53
+ function p(e, t, n = e.colors.surface) {
54
+ e.vertical || (e.ctx.fillStyle = n, e.ctx.fillRect(0, t.at, e.width, t.size));
55
+ }
56
+ function m(e, t, n, r, i = 1) {
57
+ let { ctx: a, dpr: o, start: s, columns: l } = e, u = -1;
58
+ for (let e = 0; e < l;) {
59
+ let d = n[e];
60
+ if (!d) {
61
+ e++;
62
+ continue;
63
+ }
64
+ let f = r[e], p = e + 1;
65
+ for (; p < l && n[p] === d && r[p] === f;) p++;
66
+ d !== u && (u = d, a.globalAlpha = d / c * i), a.fillRect(s + e / o, t, (p - e) / o, f / o), e = p;
67
+ }
68
+ a.globalAlpha = 1;
69
+ }
70
+ function h(e, t, n, r) {
71
+ return n.color ? t.color(n.color) : e.vertical ? n.key === t.focusedLane ? e.colors.primary : e.colors.muted : e.colors.chart[r % e.colors.chart.length];
72
+ }
73
+ function g(e) {
74
+ if (typeof e == "number") return Math.abs(Math.trunc(e));
75
+ let t = 0;
76
+ for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) >>> 0;
77
+ return t;
78
+ }
79
+ function _(e, t, n) {
80
+ let { ctx: r, colors: i, start: a, width: o, length: s, dpr: c } = e;
81
+ r.fillStyle = i.ruler, r.fillRect(0, 0, o, 22), r.fillStyle = i.border;
82
+ for (let e of t.ticks) r.fillRect(Math.round((a + e.along) * c) / c, 16, 1, n - 22 + 6);
83
+ r.fillStyle = i.muted;
84
+ for (let e of t.ticks) e.along + 3 < s && r.fillText(t.format(e.time, e.resolution), a + e.along + 3, 11);
85
+ }
86
+ function v(t, n, a, o) {
87
+ let { ctx: s, colors: c, dpr: l, start: u, columns: d } = t, m = a.lane, h = e(n.rows, m), g = m.diamonds;
88
+ if (!g) return;
89
+ p(t, a), f(t, g.label, a), o.flags.fill(0), r(i(g.times), m.offset ?? 0, o.edges, o.flags, 1);
90
+ let _ = g.color ? n.color(g.color) : c.warning, v = a.at + a.size / 2;
91
+ s.fillStyle = _, s.globalAlpha = .18;
92
+ for (let e = 0; e < d; e++) o.flags[e] && s.fillRect(u + e / l, a.at + a.size, 1, h - a.at - a.size);
93
+ s.globalAlpha = 1, s.beginPath();
94
+ for (let e = 0; e < d; e++) {
95
+ if (!o.flags[e]) continue;
96
+ let t = u + e / l;
97
+ s.moveTo(t, a.at + 2), s.lineTo(t + 5, v), s.lineTo(t, a.at + a.size - 2), s.lineTo(t - 5, v), s.closePath();
98
+ }
99
+ s.fill();
100
+ }
101
+ function y(e, t, n) {
102
+ e.vertical && (e.ctx.fillStyle = e.colors.foreground, e.ctx.globalAlpha = n ? .14 : .07, e.ctx.fillRect(e.start, t.at, e.length, t.size), e.ctx.globalAlpha = 1);
103
+ }
104
+ function b(e, t, r, i) {
105
+ let { ctx: a, dpr: o, columns: s } = e, l = r.lane, u = l.key === t.focusedLane;
106
+ p(e, r), y(e, r, u), f(e, l.density?.label, r);
107
+ let d = e.vertical && !u && t.lanes.length > 1 ? .6 : 1, g = +(r.size >= 8), _ = l.offset ?? 0, v = l.density;
108
+ if (v) {
109
+ let u = n(v, _, i.edges, i.pools.get(l.key));
110
+ i.pools.set(l.key, u);
111
+ let f = Math.log1p(u.maxCount), p = r.size >= 8 ? 4 : r.size, y = r.size >= 8 ? r.size - g * 2 - p : 0, b = Math.max(1, u.deepest);
112
+ for (let e = 0; e < s; e++) {
113
+ let t = u.counts[e];
114
+ if (!t) {
115
+ i.alpha[e] = 0;
116
+ continue;
117
+ }
118
+ i.alpha[e] = Math.round((.45 + .55 * Math.log1p(t) / f) * c), i.reach[e] = Math.round((v.depths ? p + y * u.depths[e] / b : p + y) * o);
119
+ }
120
+ a.fillStyle = v.color ? t.color(v.color) : h(e, t, l, r.laneIndex ?? 0), m(e, r.at + g, i.alpha, i.reach, d);
121
+ }
122
+ x(e, t, r, i);
123
+ }
124
+ function x(e, t, n, o) {
125
+ let { ctx: s, colors: c, dpr: l, start: u, columns: d } = e, f = n.lane, p = f.offset ?? 0, m = n.size < 8, h = +!m;
126
+ for (let e of f.marks ?? []) {
127
+ let f = e.shape === "dot";
128
+ if (!(f && m)) {
129
+ o.flags.fill(0), r(i(e.times), p, o.edges, o.flags, 1), s.fillStyle = e.color ? t.color(e.color) : a(c, e.tone), f && s.beginPath();
130
+ for (let e = 0; e < d; e++) {
131
+ if (!o.flags[e]) continue;
132
+ let t = e + 1;
133
+ for (; t < d && o.flags[t];) t++;
134
+ let r = u + e / l, i = (t - e) / l;
135
+ f ? s.roundRect(r - 2.5, n.at + n.size - 6.5, i + 5, 5, 2.5) : s.fillRect(r, n.at + h, Math.max(m ? 1 : 1.5, i), n.size - h * 2), e = t;
136
+ }
137
+ f && s.fill();
138
+ }
139
+ }
140
+ }
141
+ function S(e, n, r, i) {
142
+ let { ctx: a, colors: o, dpr: s, start: l, columns: u } = e, d = r.lane, p = r.thread, _ = d.key === n.focusedLane, v = !!p && _ && p.id === n.selectedThread;
143
+ v && !e.vertical && (a.fillStyle = o.foreground, a.globalAlpha = .06, a.fillRect(0, r.at, e.width, r.size), a.globalAlpha = 1), y(e, r, _), f(e, p?.label, r, v ? o.foreground : o.muted);
144
+ let b = p ? p.color ? n.color(p.color) : o.chart[g(p.id) % o.chart.length] : h(e, n, d, r.laneIndex ?? 0);
145
+ p && !e.vertical && l >= 6 && (a.fillStyle = b, a.globalAlpha = .9, a.fillRect(l - 6, r.at + 1, 3, Math.max(0, r.size - 2)), a.globalAlpha = 1);
146
+ let x = n.activity.get(d.key), S = p ? x?.threads.get(p.id) : x?.total;
147
+ if (!x || !S) return;
148
+ t(x.edges, S.counts, d.offset ?? 0, i.edges, i.buckets);
149
+ let C = Math.log1p(Math.max(1, S.max)), w = +(r.size >= 4 && !e.vertical), T = Math.round((r.size - w * 2) * s);
150
+ for (let e = 0; e < u; e++) {
151
+ let t = i.buckets[e];
152
+ i.alpha[e] = t ? Math.round((.25 + .75 * Math.log1p(t) / C) * c) : 0, i.reach[e] = T;
153
+ }
154
+ a.fillStyle = b, m(e, r.at + w, i.alpha, i.reach, e.vertical && !_ && n.lanes.length > 1 ? .6 : 1);
155
+ }
156
+ function C(e, t, n, r) {
157
+ let { ctx: i, dpr: a, start: o, columns: s } = e, c = 0, l = -1;
158
+ for (let e = 0; e <= s; e++) c += t[e], c > 0 && l < 0 ? l = e : (c <= 0 || e === s) && l >= 0 && (i.fillRect(o + l / a, n, (e - l) / a, r), l = -1);
159
+ }
160
+ function w(e, t, n, r) {
161
+ let { ctx: i, colors: a, dpr: o, start: s, columns: c, win: u } = e;
162
+ p(e, n), y(e, n, !1), f(e, t.requestsLabel, n);
163
+ let d = n.at + n.size / 2, m = Math.min(8, n.size), h = Math.min(3, n.size / 2 + .5), g = Math.min(1, n.size), _ = c / (u.to - u.from), v = (e) => Math.floor((e - u.from) * _), b = (e) => e < 0 ? 0 : e > c ? c : e, x = Math.max(1, Math.round(2 * o)), S = null;
164
+ for (let n of t.requests) {
165
+ r.lines.fill(0), r.bands.fill(0), r.flags.fill(0);
166
+ for (let e of n.items) {
167
+ e.request.id === t.selectedRequest && (S = {
168
+ item: e,
169
+ color: n.color
170
+ });
171
+ let i = v(e.time);
172
+ if (i >= 0 && i < c && (r.flags[i] = 1), Number.isNaN(e.from)) continue;
173
+ let a = v(e.from), o = Math.max(a + x, v(e.to)), s = b(Math.min(i, a)), l = b(Math.max(i, a));
174
+ l > s && (r.lines[s]++, r.lines[l]--);
175
+ let u = b(a), d = b(o);
176
+ d > u && (r.bands[u]++, r.bands[d]--);
177
+ }
178
+ i.fillStyle = n.color, i.globalAlpha = .6, C(e, r.lines, d - g / 2, g), C(e, r.bands, d - m / 2, m), i.globalAlpha = 1, i.beginPath();
179
+ for (let e = 0; e < c; e++) {
180
+ if (!r.flags[e]) continue;
181
+ let t = s + (e + .5) / o;
182
+ i.moveTo(t + h, d), i.arc(t, d, h, 0, l);
183
+ }
184
+ i.fill();
185
+ }
186
+ if (S) {
187
+ let { item: e, color: t } = S, n = v(e.time);
188
+ if (i.fillStyle = t, !Number.isNaN(e.from)) {
189
+ let t = v(e.from), r = Math.max(t + x, v(e.to)), a = b(Math.min(n, t)), c = b(Math.max(n, t));
190
+ i.fillRect(s + a / o, d - g / 2, (c - a) / o, g), i.fillRect(s + b(t) / o, d - m / 2, (b(r) - b(t)) / o, m);
191
+ }
192
+ n >= 0 && n < c && (i.fillStyle = a.foreground, i.beginPath(), i.arc(s + (n + .5) / o, d, h + 1, 0, l), i.fill());
193
+ }
194
+ }
195
+ function T(e, t, n) {
196
+ let { ctx: r, colors: i, start: o } = e;
197
+ p(e, n), f(e, t.stopsLabel, n);
198
+ let s = n.at + n.size / 2;
199
+ for (let e of t.stopMarks) {
200
+ let t = (e.stop.level ?? 1) > 1 ? 6 : 9;
201
+ r.fillStyle = e.tone === "default" ? i.faint : a(i, e.tone), r.globalAlpha = e.dim ? .55 : 1, r.fillRect(o + e.along - 1, s - t / 2, 2, t);
202
+ }
203
+ r.globalAlpha = 1;
204
+ }
205
+ function E(e, t, n) {
206
+ let r = n.lane, i = r.key === t.focusedLane;
207
+ e.ctx.fillStyle = i ? e.colors.ruler : e.colors.surface, e.ctx.fillRect(0, n.at, e.width, n.size), e.ctx.fillStyle = i ? e.colors.foreground : e.colors.muted, e.ctx.fillText(r.title ?? r.key, 6, n.at + n.size / 2);
208
+ }
209
+ function D(e, t, n) {
210
+ let { ctx: r } = e;
211
+ d(e), r.font = e.font, r.textBaseline = "middle";
212
+ let i = e.vertical ? e.width : e.height;
213
+ e.vertical || _(e, t, i);
214
+ for (let r of t.rows) switch (r.type) {
215
+ case "title":
216
+ E(e, t, r);
217
+ break;
218
+ case "diamonds":
219
+ v(e, t, r, n);
220
+ break;
221
+ case "density":
222
+ b(e, t, r, n);
223
+ break;
224
+ case "thread":
225
+ S(e, t, r, n);
226
+ break;
227
+ case "requests":
228
+ w(e, t, r, n);
229
+ break;
230
+ case "stops": T(e, t, r);
231
+ }
232
+ }
233
+ function O(e, t) {
234
+ let { ctx: n, colors: r, dpr: i, start: a, length: o, vertical: s, width: c, height: l } = e;
235
+ d(e);
236
+ let u = a + o, f = s ? c : l, p = Math.round(t.playhead * i) / i;
237
+ if (p < u) {
238
+ let e = Math.max(a, p);
239
+ n.fillStyle = r.background, n.globalAlpha = .5, n.fillRect(e, t.from, u - e, t.to - t.from), n.globalAlpha = 1;
240
+ }
241
+ if (t.hover && (n.fillStyle = r.foreground, n.globalAlpha = .25, n.fillRect(Math.round(t.hover.along * i) / i, t.from, 1, t.to - t.from), n.globalAlpha = 1), p >= a && p <= u && (n.fillStyle = r.primary, n.fillRect(p - 1, 0, 2, f), s || (n.beginPath(), n.moveTo(p - 6, 0), n.lineTo(p + 6, 0), n.lineTo(p, 8), n.fill())), t.hover?.label && !s) {
242
+ n.font = e.font, n.textBaseline = "middle";
243
+ let i = n.measureText(t.hover.label).width + 8, a = Math.min(c - i, t.hover.along + 4);
244
+ n.fillStyle = r.card, n.fillRect(a, 2, i, 16), n.fillStyle = r.foreground, n.fillText(t.hover.label, a + 4, 10);
245
+ }
246
+ if (t.thumb) {
247
+ let e = a + t.thumb.from * o, i = Math.max(14, (t.thumb.to - t.thumb.from) * o);
248
+ n.fillStyle = r.muted, n.fillRect(Math.min(e, u - i), 0, i, 2);
249
+ }
250
+ }
251
+ //#endregion
252
+ export { s as TraceBuffers, D as drawTraceData, O as drawTraceOverlay, o as groupRequests, a as toneColor };
@@ -0,0 +1,324 @@
1
+ import { ReactNode } from 'react';
2
+ export interface TraceRange {
3
+ start: number;
4
+ end: number;
5
+ }
6
+ /** A stretch of the axis, as fractions of its whole length (0…1). */
7
+ export interface TraceWindow {
8
+ from: number;
9
+ to: number;
10
+ }
11
+ /** Turns a time into a fraction of the timeline's length and back. Both are clamped to the axis. */
12
+ export interface TraceAxis {
13
+ fraction(time: number): number;
14
+ timeAt(fraction: number): number;
15
+ /** Equal fractions are equal times, so the ruler can land on round times. Without it ticks are evenly spaced and show
16
+ * whatever time they land on. */
17
+ uniform?: boolean;
18
+ }
19
+ export type TraceTone = 'default' | 'info' | 'success' | 'warning' | 'error';
20
+ export type TraceKey = string | number;
21
+ /** A landmark on the timeline: an `IndexBarItem` plus a time and a tone. */
22
+ export interface TraceStop<K extends TraceKey = TraceKey> {
23
+ key?: K;
24
+ time: number;
25
+ label?: string;
26
+ caption?: string | null;
27
+ preview?: ReactNode;
28
+ /** Colours the dash. A cluster wears its most severe member's. */
29
+ tone?: TraceTone;
30
+ /** 1 (default) and up: lower levels win the room when there's too little, and level 2 and up get a shorter dash. */
31
+ level?: number;
32
+ /** Preview card: something at the end of the title line (a badge, a glyph). */
33
+ trailing?: ReactNode;
34
+ dim?: boolean;
35
+ }
36
+ /** A row of diamonds, each with a faint guide down the rest of the timeline. `times` are sorted. */
37
+ export interface TraceDiamonds {
38
+ label?: string;
39
+ times: ArrayLike<number>;
40
+ /** Any CSS colour. Default: the warning token. */
41
+ color?: string;
42
+ }
43
+ /** Per pixel, how much happened (opacity) and how deep it went (reach across the row). `times` are sorted, and `depths`
44
+ * runs parallel to them. */
45
+ export interface TraceDensity {
46
+ label?: string;
47
+ times: ArrayLike<number>;
48
+ depths?: ArrayLike<number>;
49
+ /** Any CSS colour. Default: the lane's. */
50
+ color?: string;
51
+ }
52
+ /** Marks drawn over a lane's density row. `bar` runs the full height of the row, `dot` sits along its far edge. */
53
+ export interface TraceMarkSeries {
54
+ key: string;
55
+ label?: string;
56
+ /** Sorted is cheapest, but unsorted is fine: a sorted copy is made once and kept. */
57
+ times: ArrayLike<number>;
58
+ shape?: 'bar' | 'dot';
59
+ tone?: TraceTone;
60
+ /** Any CSS colour; wins over `tone`. */
61
+ color?: string;
62
+ }
63
+ export interface TraceThread {
64
+ id: TraceKey;
65
+ label?: string;
66
+ /** Any CSS colour. Default: one of the chart tokens, by id. */
67
+ color?: string;
68
+ }
69
+ export interface TraceLane {
70
+ key: string;
71
+ /** Shown as a row above the lane when there are several lanes. */
72
+ title?: string;
73
+ /** Added to this lane's own times to put them on the shared clock. */
74
+ offset?: number;
75
+ /** Any CSS colour for this lane's density. Default: one of the chart tokens. */
76
+ color?: string;
77
+ diamonds?: TraceDiamonds;
78
+ density?: TraceDensity;
79
+ marks?: TraceMarkSeries[];
80
+ /** A row of activity each, fetched for the current view through `fetchActivity`. */
81
+ threads?: TraceThread[];
82
+ }
83
+ /** One thread's answer to `fetchActivity`: a count per bucket. */
84
+ export interface TraceActivity {
85
+ id: TraceKey;
86
+ counts: ArrayLike<number>;
87
+ }
88
+ /** On the shared clock: a dot at `time`, a band over `from`…`to` (a range, when that's all that's known), a line between. */
89
+ export interface TraceRequest {
90
+ id: TraceKey;
91
+ time: number;
92
+ from?: number;
93
+ to?: number;
94
+ /** Any CSS colour; wins over `tone`. */
95
+ color?: string;
96
+ tone?: TraceTone;
97
+ }
98
+ /** The first index whose value is at or after `value`. */
99
+ export declare function lowerBound(sorted: ArrayLike<number>, value: number, lo?: number, hi?: number): number;
100
+ /** The first index whose value is after `value`. */
101
+ export declare function upperBound(sorted: ArrayLike<number>, value: number, lo?: number, hi?: number): number;
102
+ /** `lowerBound` from a position known to be at or before the answer, doubling its way forward first: cheap when the
103
+ * answer is close, and never worse than twice a plain search. */
104
+ export declare function seekForward(sorted: ArrayLike<number>, value: number, from: number): number;
105
+ /** The times themselves when they're already sorted, otherwise a sorted copy. Remembered per array. */
106
+ export declare function sortedTimes(times: ArrayLike<number>): ArrayLike<number>;
107
+ /** Plain time: equal times get equal length. */
108
+ export declare function linearAxis(range: TraceRange): TraceAxis;
109
+ /** An axis by what happened: each gap between consecutive stops gets an equal share of the length, so stops sit evenly,
110
+ * bursts open out and idle time closes up, while the timeline stays continuous between them. Stops outside the range
111
+ * and duplicate times count once at most, so it is strictly increasing. */
112
+ export declare function stopAxis(stops: ReadonlyArray<{
113
+ time: number;
114
+ }>, range: TraceRange): TraceAxis;
115
+ /** Where a playhead ends up after `elapsed` of playing: an even rate along the axis, so playing gives room on a
116
+ * non-linear axis to whatever it gives room to. */
117
+ export declare function advanceAlong(axis: TraceAxis, time: number, elapsed: number, range: TraceRange): number;
118
+ /** The smallest stretch of time the view can show (ten nanoseconds, in milliseconds). */
119
+ export declare const TRACE_MIN_SPAN = 0.00001;
120
+ /** A view that fits in the range and isn't shorter than `minSpan`. */
121
+ export declare function clampView(view: TraceRange, range: TraceRange, minSpan?: number): TraceRange;
122
+ export declare function viewWindow(axis: TraceAxis, view: TraceRange): TraceWindow;
123
+ export declare function windowView(axis: TraceAxis, win: TraceWindow): TraceRange;
124
+ /** Shifts a window by `delta` of the axis, keeping its length and staying on the axis. */
125
+ export declare function panWindow(win: TraceWindow, delta: number): TraceWindow;
126
+ /** Scales a window by `factor`, keeping what's `anchor` (0…1) of the way along it where it is. */
127
+ export declare function zoomWindow(win: TraceWindow, anchor: number, factor: number): TraceWindow;
128
+ /** A pinch: the window from when it started, scaled by how far the fingers have spread, with what was under their
129
+ * midpoint kept under it. `mid`s are along the timeline, `length` long. */
130
+ export declare function pinchWindow(start: TraceWindow, startSeparation: number, startMid: number, separation: number, mid: number, length: number): TraceWindow;
131
+ export interface TraceTick {
132
+ /** Px along the plot. */
133
+ along: number;
134
+ time: number;
135
+ /** How far apart the times worth telling apart here are, for the label. */
136
+ resolution: number;
137
+ }
138
+ /** The round step at or above `target`: 1, 2 and 5 under a second, then steps a clock would use. */
139
+ export declare function tickStep(target: number): number;
140
+ /** The ruler for a view: round times at least `minGap` px apart on a uniform axis, otherwise every `evenGap` px. */
141
+ export declare function chooseTicks(axis: TraceAxis, win: TraceWindow, view: TraceRange, length: number, { minGap, evenGap }?: {
142
+ minGap?: number;
143
+ evenGap?: number;
144
+ }): TraceTick[];
145
+ /** How much time `pixels` px cover at a spot along the plot. */
146
+ export declare function resolutionAt(axis: TraceAxis, win: TraceWindow, length: number, along: number, pixels?: number): number;
147
+ /** A time at the precision that tells it apart from `resolution` away: `1:02:03` over an hour, `12:34.5` nearer,
148
+ * `8.25 s`, then `312.5 ms` under a second. */
149
+ export declare function formatTraceTime(ms: number, resolution?: number): string;
150
+ /** The time at each of `columns + 1` column boundaries across a window. */
151
+ export declare function pixelEdges(axis: TraceAxis, win: TraceWindow, columns: number, reuse?: Float64Array): Float64Array;
152
+ export interface DensityPool {
153
+ /** How many samples fall in each column. */
154
+ counts: Uint32Array;
155
+ /** The deepest sample in each column. */
156
+ depths: Uint16Array;
157
+ /** The busiest column in this view (at least 1). */
158
+ maxCount: number;
159
+ /** The deepest sample anywhere, so a depth reads the same at every zoom. */
160
+ deepest: number;
161
+ }
162
+ /** How many samples fall in each column and how deep the deepest one is. A search per column, so it costs the same for
163
+ * a thousand samples or a hundred million. */
164
+ export declare function poolDensity(density: Pick<TraceDensity, 'times' | 'depths'>, offset: number, edges: Float64Array, reuse?: DensityPool): DensityPool;
165
+ /** Sets `bit` in each column holding at least one of the times. Jumps from occupied column to occupied column, so it
166
+ * costs what's visible and not what's there. */
167
+ export declare function poolPresence(times: ArrayLike<number>, offset: number, edges: Float64Array, flags: Uint8Array, bit: number): void;
168
+ /** The largest count among the buckets overlapping each column, for activity fetched at another zoom than the one on
169
+ * screen. `bucketEdges` are in the lane's own time. */
170
+ export declare function poolBuckets(bucketEdges: ArrayLike<number>, counts: ArrayLike<number>, offset: number, edges: Float64Array, out: Float64Array): void;
171
+ export declare function mostSevere(a: TraceTone, b: TraceTone): TraceTone;
172
+ export interface TraceStopMark<K extends TraceKey = TraceKey> {
173
+ /** The stop this dash stands for: the lowest level in the cluster, then the most severe, then the earliest. */
174
+ stop: TraceStop<K>;
175
+ /** Px along the plot. */
176
+ along: number;
177
+ /** How many stops it stands for. */
178
+ count: number;
179
+ /** The most severe in the cluster. */
180
+ tone: TraceTone;
181
+ /** The earliest and latest stops in the cluster. */
182
+ first: number;
183
+ last: number;
184
+ /** Every stop in the cluster is dim. */
185
+ dim: boolean;
186
+ }
187
+ /** The stops in time order. Remembered per array. */
188
+ export declare function stopsByTime<K extends TraceKey>(stops: ReadonlyArray<TraceStop<K>>): Array<TraceStop<K>>;
189
+ /** The fewest px between two dashes. */
190
+ export declare const TRACE_STOP_GAP = 10;
191
+ /** What a rail can show of `stops` for this view and length: the lowest `level` first, then the rest, each merging into
192
+ * the nearest dash already placed when it'd land closer than `minGap`. Dashes are at least `minGap` apart and in order
193
+ * along the plot; zooming in spreads them out, so more fit. The most important stops don't move when others appear. */
194
+ export declare function selectStops<K extends TraceKey>(stops: ReadonlyArray<TraceStop<K>>, { axis, win, length, minGap }: {
195
+ axis: TraceAxis;
196
+ win: TraceWindow;
197
+ length: number;
198
+ minGap?: number;
199
+ }): Array<TraceStopMark<K>>;
200
+ /** The dash nearest a spot along the plot, within `reach` px. `marks` are in order. */
201
+ export declare function nearestMark<K extends TraceKey>(marks: ReadonlyArray<TraceStopMark<K>>, along: number, reach: number): TraceStopMark<K> | null;
202
+ /** The next stop after a time (`direction` 1) or the last one before it (-1). `tolerance` keeps a playhead that's
203
+ * a rounding error off a stop from landing on that stop again. `sorted` are in time order. */
204
+ export declare function adjacentStop<K extends TraceKey>(sorted: ReadonlyArray<TraceStop<K>>, time: number, direction: 1 | -1, tolerance?: number): TraceStop<K> | null;
205
+ export interface TraceScrubSpeed {
206
+ /** This speed lasts until the pointer is this many px from the rail. */
207
+ within: number;
208
+ /** How far the playhead moves per px the pointer moves. */
209
+ gain: number;
210
+ label: string;
211
+ }
212
+ /** Full speed near the rail, then slower further out. The last starts 240 px out, so all of them fit in a 390 px window
213
+ * with a rail on its edge. */
214
+ export declare const TRACE_SCRUB_SPEEDS: readonly TraceScrubSpeed[];
215
+ /** The speed for a distance from the rail, given the current one. */
216
+ export declare function speedTier(distance: number, current?: number): number;
217
+ /** A soft snap holds the playhead on a stop for about this many px of pointer travel, at any speed. */
218
+ export declare const TRACE_SNAP_REACH = 6;
219
+ /** A scrub in progress: where the pointer and the playhead were when the speed last changed. */
220
+ export interface TraceScrub {
221
+ along: number;
222
+ fraction: number;
223
+ tier: number;
224
+ /** Fraction of the axis per px of pointer travel at full speed. */
225
+ scale: number;
226
+ }
227
+ /** What a scrub is looking at: the snap targets and how they lie along the plot. */
228
+ export interface TraceScrubContext<K extends TraceKey = TraceKey> {
229
+ axis: TraceAxis;
230
+ win: TraceWindow;
231
+ length: number;
232
+ marks: ReadonlyArray<TraceStopMark<K>>;
233
+ }
234
+ export declare function startScrub(along: number, fraction: number, scale: number): TraceScrub;
235
+ /** Where a scrub puts the playhead with the pointer `along`: the fraction, and the stop when it's snapped to one. The
236
+ * raw position isn't clamped to the axis until here, so going past an end and coming back takes as long as going. */
237
+ export declare function scrubPosition<K extends TraceKey>(s: TraceScrub, along: number, { axis, win, length, marks }: TraceScrubContext<K>): {
238
+ fraction: number;
239
+ mark: TraceStopMark<K> | null;
240
+ };
241
+ /** Takes in a pointer move. When the speed changes, the scrub re-anchors where the playhead is now, snap and all, so the
242
+ * change itself moves nothing. */
243
+ export declare function moveScrub<K extends TraceKey>(s: TraceScrub, along: number, distance: number, context: TraceScrubContext<K>): TraceScrub;
244
+ /** Takes in a zoom in the middle of a scrub: from `fraction`, where the playhead is showing, with the pointer `along`, one
245
+ * px now means something else. */
246
+ export declare function rescaleScrub(s: TraceScrub, along: number, fraction: number, scale: number): TraceScrub;
247
+ /** The strip's ruler height, and the default width of its label gutter. */
248
+ export declare const TRACE_RULER = 22;
249
+ export declare const TRACE_GUTTER = 64;
250
+ export type TraceRowType = 'title' | 'diamonds' | 'density' | 'thread' | 'requests' | 'stops';
251
+ export interface TraceRow {
252
+ type: TraceRowType;
253
+ /** Px across the timeline: down the strip, or in from the rail's outer edge. */
254
+ at: number;
255
+ size: number;
256
+ lane?: TraceLane;
257
+ /** Which lane in order. */
258
+ laneIndex?: number;
259
+ thread?: TraceThread;
260
+ }
261
+ interface RowOptions {
262
+ requests?: boolean;
263
+ stops?: boolean;
264
+ }
265
+ /** The strip's height with every thread row at its fullest. */
266
+ export declare function stripHeight(lanes: readonly TraceLane[], { requests, stops }?: RowOptions): number;
267
+ /** Every row of the strip, top to bottom. Thread rows share what height is left, from 4 to 14 px each. */
268
+ export declare function layoutStrip(lanes: readonly TraceLane[], height: number, { requests, stops }?: RowOptions): TraceRow[];
269
+ /** The rail: each lane a thin column (its density and marks, or failing that all its threads' activity together), in
270
+ * from the outer edge. */
271
+ export declare function layoutRail(lanes: readonly TraceLane[]): TraceRow[];
272
+ /** Where a rail's dashes start, in px from its outer edge. */
273
+ export declare function railDashInset(rows: readonly TraceRow[]): number;
274
+ /** Where a row's lane ends across the timeline: the end of the lane's last row. */
275
+ export declare function laneEnd(rows: readonly TraceRow[], lane: TraceLane | undefined): number;
276
+ /** The row at a spot across the timeline. */
277
+ export declare function rowAt(rows: readonly TraceRow[], across: number): TraceRow | null;
278
+ /** The request whose dot or band ends are nearest a spot along the plot, within `reach` px. */
279
+ export declare function requestAt<R extends TraceRequest>(requests: readonly R[], alongOf: (time: number) => number, along: number, reach?: number): R | null;
280
+ export interface TraceCardSpot {
281
+ /** Px from the rail's outer edge to the card's near edge. */
282
+ inset: number;
283
+ /** Px from the top of the rail to the top of the card. */
284
+ top: number;
285
+ }
286
+ /** Where the preview card goes beside a rail, in the rail's parent: on the inner side of the pointer, moving out with it
287
+ * as it pulls away so the pointer never covers it. When that runs out of window it goes above the pointer instead (or
288
+ * below, at the top), where a finger doesn't cover it either. */
289
+ export declare function placeRailCard({ along, pull, railWidth, railTop, hostWidth, hostHeight, cardWidth, cardHeight, margin }: {
290
+ along: number;
291
+ /** How far the pointer is past the rail's inner edge. */
292
+ pull: number;
293
+ railWidth: number;
294
+ railTop: number;
295
+ hostWidth: number;
296
+ hostHeight: number;
297
+ cardWidth: number;
298
+ cardHeight: number;
299
+ margin?: number;
300
+ }): TraceCardSpot;
301
+ /** Where the preview card goes on a strip, in px from its left and top: centred on the pointer and kept on the strip,
302
+ * above it if its parent has room there, otherwise under it, otherwise over its rows. */
303
+ export declare function placeStripCard({ along, width, height, above, below, cardWidth, cardHeight, margin }: {
304
+ along: number;
305
+ width: number;
306
+ height: number;
307
+ /** The room in the strip's parent over it and under it. */
308
+ above: number;
309
+ below: number;
310
+ cardWidth: number;
311
+ cardHeight: number;
312
+ margin?: number;
313
+ }): {
314
+ left: number;
315
+ top: number;
316
+ };
317
+ export declare const TRACE_WAVE_REST = 9;
318
+ export declare const TRACE_WAVE_PEAK = 28;
319
+ /** Raised-cosine falloff: 1 at the pointer, 0 at 3.2 stops away, with a stop's room being `TRACE_STOP_GAP` px. */
320
+ export declare const traceSwell: (px: number) => number;
321
+ /** Whether two lane lists draw the same, so a host that rebuilds them on every render doesn't cost a redraw. */
322
+ export declare function sameLanes(a: readonly TraceLane[], b: readonly TraceLane[]): boolean;
323
+ export {};
324
+ //# sourceMappingURL=trace-timeline-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trace-timeline-model.d.ts","sourceRoot":"","sources":["../../src/lib/trace-timeline-model.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,qEAAqE;AACrE,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,oGAAoG;AACpG,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,M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