@tangle-network/charts 0.1.5 → 0.1.6
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/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -999,7 +999,7 @@ function costFrontier(rows, o) {
|
|
|
999
999
|
row.label,
|
|
1000
1000
|
drawable(row.estimate) ? pct(row.rate) : estimateNote(row.estimate, row.attempts),
|
|
1001
1001
|
kn(row.solved, row.attempts),
|
|
1002
|
-
rateIntervalGap(row) === null ? `${pct(row.interval.lower)}–${pct(row.interval.upper)} (${intervalName(row.interval)},
|
|
1002
|
+
rateIntervalGap(row) === null ? `${pct(row.interval.lower)}–${pct(row.interval.upper)} (${intervalName(row.interval)}, ${row.attempts} attempts)` : `not drawn (${rateIntervalGap(row)})`,
|
|
1003
1003
|
costText(row.cost, row.solved),
|
|
1004
1004
|
row.cost.basis,
|
|
1005
1005
|
row.onFront === null ? "not computed" : row.onFront ? "yes" : "no"
|
|
@@ -1065,7 +1065,7 @@ function narrowList(rows) {
|
|
|
1065
1065
|
const fact = placed ? `${count} · ${costText(row.cost, row.solved)} per pass${row.onFront ? " · on the frontier" : ""}` : `${count} · ${reason}not plotted`;
|
|
1066
1066
|
const facts = fitLines(fact.split(" · "), 358, 12, "mono");
|
|
1067
1067
|
marks += textBlock(facts, 0, cy + 12, 16, `class="tgc-ink-muted tgc-num" font-size="12"`);
|
|
1068
|
-
const interval = rateIntervalGap(row) === null ? ` · ${intervalName(row.interval)} interval ${pct(row.interval.lower)}–${pct(row.interval.upper)},
|
|
1068
|
+
const interval = rateIntervalGap(row) === null ? ` · ${intervalName(row.interval)} interval ${pct(row.interval.lower)}–${pct(row.interval.upper)}, ${row.attempts} attempts` : "";
|
|
1069
1069
|
out += titled(`${row.label} · ${fact}${interval}`, marks);
|
|
1070
1070
|
y = cy + 4 + facts.length * 16;
|
|
1071
1071
|
if (i < rows.length - 1) out += line(0, y + 2, 358, y + 2, "tgc-rule");
|
|
@@ -1228,7 +1228,7 @@ function plot(costed, unplaced, drawLine, o) {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
for (const p of placed) {
|
|
1230
1230
|
const cls = p.row.onFront ? p.estimated ? "tgc-pt-est" : "tgc-pt-front" : "tgc-pt";
|
|
1231
|
-
out += titled(`${p.row.label} · ${pct(p.row.rate)} ${o.measure} · ${kn(p.row.solved, p.row.attempts)} passed · ${costText(p.row.cost, p.row.solved)} per pass${rateIntervalGap(p.row) === null ? ` · ${intervalName(p.row.interval)} interval ${pct(p.row.interval.lower)}–${pct(p.row.interval.upper)},
|
|
1231
|
+
out += titled(`${p.row.label} · ${pct(p.row.rate)} ${o.measure} · ${kn(p.row.solved, p.row.attempts)} passed · ${costText(p.row.cost, p.row.solved)} per pass${rateIntervalGap(p.row) === null ? ` · ${intervalName(p.row.interval)} interval ${pct(p.row.interval.lower)}–${pct(p.row.interval.upper)}, ${p.row.attempts} attempts` : ""}${p.row.onFront ? " · on the frontier" : ""}`, circle(p.x, p.y, 4, cls));
|
|
1232
1232
|
}
|
|
1233
1233
|
out += labels.join("");
|
|
1234
1234
|
let h = 320;
|
|
@@ -1388,7 +1388,7 @@ function rankedRates(input, o) {
|
|
|
1388
1388
|
String(row.solved),
|
|
1389
1389
|
String(row.attempts),
|
|
1390
1390
|
drawable(row.estimate) ? pct(row.rate) : estimateNote(row.estimate, row.attempts),
|
|
1391
|
-
rateIntervalGap(row) === null ? `${pct(row.interval.lower)}–${pct(row.interval.upper)} (${intervalName(row.interval)},
|
|
1391
|
+
rateIntervalGap(row) === null ? `${pct(row.interval.lower)}–${pct(row.interval.upper)} (${intervalName(row.interval)}, ${row.attempts} attempts)` : `not drawn (${rateIntervalGap(row)})`,
|
|
1392
1392
|
...tiered ? [row.tiers ? [tierSummary(row.tiers), offLadder ? `${offLadder} off the ladder` : ""].filter(Boolean).join(" · ") || "none" : "not graded"] : [],
|
|
1393
1393
|
...layout.cost ? [costText(row.cost, row.solved), row.cost.basis + (row.cost.receipts !== null ? `, ${row.cost.receipts} receipts` : "")] : [],
|
|
1394
1394
|
...layout.median ? [row.medianWallMs === null ? "unknown" : duration(row.medianWallMs)] : []
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/charts",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Benchmark figures as static SVG and HTML tables: ranked rates, cost frontier, comparison intervals, task matrix and breakdown. Draws from producer data and refuses what it cannot draw honestly.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|