@mechane-ai/elements 0.49.0 → 0.50.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.
Files changed (102) hide show
  1. package/README.md +40 -2
  2. package/dist/{article-yyNPg6VU.js → article-CRlhq9oA.js} +531 -463
  3. package/dist/article.js +1 -1
  4. package/dist/catalog.json +37 -1
  5. package/dist/{categorical-values-DCznViFp.js → categorical-values-BYP_R5gS.js} +13 -13
  6. package/dist/charts/cartesian.js +1 -1
  7. package/dist/charts/comparison.js +1 -1
  8. package/dist/charts/distribution.js +1 -1
  9. package/dist/charts/figure.js +12 -12
  10. package/dist/charts/graph.js +1 -1
  11. package/dist/charts/hierarchy.js +1 -1
  12. package/dist/charts/image.js +1 -1
  13. package/dist/charts/matrix.js +1 -1
  14. package/dist/charts/plot.js +4 -4
  15. package/dist/charts/relationship.js +1 -1
  16. package/dist/charts/text.js +1 -1
  17. package/dist/charts/timeline.js +1 -1
  18. package/dist/charts/trend.js +1 -1
  19. package/dist/charts.js +7 -7
  20. package/dist/collections.js +1 -1
  21. package/dist/{dumbbell-plot-CMv9llfd.js → dumbbell-plot-BC8d_IJy.js} +45 -45
  22. package/dist/{embedding-map-DC-lgzCq.js → embedding-map-Bj8krO-d.js} +528 -528
  23. package/dist/figure-frame-koVKcXph.js +323 -0
  24. package/dist/{image-grid-DHqtj_zs.js → image-grid-CLhol2jy.js} +47 -47
  25. package/dist/kits/evaluation.js +50 -48
  26. package/dist/kits/interpretability.js +7 -7
  27. package/dist/kits/operations.js +4 -4
  28. package/dist/kits/research.js +346 -264
  29. package/dist/kits/training.js +3 -3
  30. package/dist/layout.js +1 -1075
  31. package/dist/lesson/spec.js +11 -11
  32. package/dist/lesson.js +4 -4
  33. package/dist/mdx.js +4 -4
  34. package/dist/packages/charts/src/chart-inspection.d.ts +4 -1
  35. package/dist/packages/charts/src/figure/caption-scope.d.ts +12 -0
  36. package/dist/packages/charts/src/figure/figure-frame.d.ts +2 -1
  37. package/dist/packages/charts/src/index.d.ts +2 -0
  38. package/dist/packages/collections/src/data-table-trigger.d.ts +2 -0
  39. package/dist/packages/kits/src/evaluation/leaderboard.d.ts +2 -0
  40. package/dist/packages/kits/src/research/collection-page.d.ts +46 -0
  41. package/dist/packages/kits/src/research/index.d.ts +2 -0
  42. package/dist/packages/kits/src/research/milestone-path.d.ts +1 -2
  43. package/dist/packages/kits/src/research/work-heartbeat.d.ts +4 -3
  44. package/dist/packages/layout/src/detail-page.d.ts +3 -1
  45. package/dist/packages/teaching/src/article/article-context.d.ts +2 -0
  46. package/dist/packages/teaching/src/article/article-layout.stylex.d.ts +13 -0
  47. package/dist/packages/teaching/src/article/article.d.ts +6 -1
  48. package/dist/packages/teaching/src/article/figure.d.ts +20 -3
  49. package/dist/packages/teaching/src/article/index.d.ts +1 -1
  50. package/dist/packages/teaching/src/article/view-essay.d.ts +2 -1
  51. package/dist/packages/teaching/src/lesson/define-lesson.d.ts +4 -0
  52. package/dist/packages/teaching/src/lesson/index.d.ts +2 -2
  53. package/dist/packages/teaching/src/lesson/lesson-player.d.ts +19 -3
  54. package/dist/packages/teaching/src/lesson/lesson-store.d.ts +2 -0
  55. package/dist/packages/teaching/src/lesson/playback.d.ts +9 -6
  56. package/dist/packages/teaching/src/lesson/use-lesson.d.ts +7 -2
  57. package/dist/packages/teaching/src/scene/plane/plane-labels.d.ts +4 -1
  58. package/dist/packages/teaching/src/scene/plane/scene-point.d.ts +5 -6
  59. package/dist/packages/teaching/src/scene/scene-geometry.d.ts +1 -1
  60. package/dist/packages/teaching/src/scene/scene-node.d.ts +4 -1
  61. package/dist/packages/teaching/src/scene/scene-validate.d.ts +6 -0
  62. package/dist/packages/teaching/src/scene/scene-wire.d.ts +6 -1
  63. package/dist/packages/teaching/src/scene/scene.d.ts +1 -1
  64. package/dist/packages/teaching/src/scene/shapes/cell-grid.d.ts +5 -1
  65. package/dist/packages/teaching/src/scene/shapes/scene-cells.d.ts +1 -1
  66. package/dist/packages/teaching/src/scene/shapes/scene-slot.d.ts +1 -1
  67. package/dist/packages/teaching/src/time/tween.d.ts +2 -0
  68. package/dist/{param-BE3VMSkH.js → param-BdqTpZER.js} +166 -99
  69. package/dist/{plot-layout-Bqe4-0qZ.js → plot-layout-B2xRt-_k.js} +144 -130
  70. package/dist/{plot-surface-DON6WUmk.js → plot-surface-0cKFwtws.js} +1 -1
  71. package/dist/{reference-lines-hjuD1rRZ.js → reference-lines-nSxcZVF5.js} +1 -1
  72. package/dist/{scene-BP0Ue0R5.js → scene-4ePpWdmE.js} +1227 -1125
  73. package/dist/scene.js +1 -1
  74. package/dist/{slope-chart-C8eeSgL4.js → slope-chart-DWZIYDty.js} +179 -179
  75. package/dist/{src-B2rgpWap.js → src-DNclWY4V.js} +1 -1
  76. package/dist/src-DhWMspwr.js +1085 -0
  77. package/dist/styles2.css +77 -14
  78. package/dist/{time-series-BL933QyA.js → time-series-CsngFxr1.js} +952 -948
  79. package/dist/{token-heatmap-BB65awva.js → token-heatmap-BQLIxPky.js} +84 -84
  80. package/dist/{token-predictions-Pa8eUGan.js → token-predictions-C3B5L-eO.js} +126 -126
  81. package/dist/{transport-DzyxVXbL.js → transport-4V9rfYHN.js} +278 -233
  82. package/dist/{tree-diagram-DJhKBiia.js → tree-diagram-Dau9jeXS.js} +115 -115
  83. package/dist/{treemap-CxxgABUg.js → treemap-DWrMQndu.js} +27 -27
  84. package/dist/use-tween-BsaEO862.js +10 -0
  85. package/dist/{violin-plot-CoAEF_7Z.js → violin-plot-D05ODcyc.js} +123 -123
  86. package/dist/{waterfall-DdoEXEkT.js → waterfall-BkLLv2Lm.js} +39 -39
  87. package/package.json +1 -1
  88. package/recipes/counting-cards.tsx +3 -3
  89. package/skills/review-elements/SKILL.md +14 -0
  90. package/skills/review-explainer/SKILL.md +2 -1
  91. package/skills/upgrade-elements/references/releases.md +61 -0
  92. package/skills/use-elements/SKILL.md +21 -17
  93. package/skills/use-elements/references/editorial-restraint.md +40 -0
  94. package/skills/use-elements/references/styling.md +23 -0
  95. package/skills/use-elements/references/teaching.md +13 -0
  96. package/skills/use-elements/references/workspace.md +14 -8
  97. package/skills/write-explainer/references/article.md +50 -2
  98. package/skills/write-explainer/references/lesson.md +18 -9
  99. package/skills/write-explainer/references/scene-parts.md +17 -12
  100. package/skills/write-explainer/references/scene.md +25 -3
  101. package/dist/figure-frame-BjFzbl3m.js +0 -270
  102. package/dist/use-tween-5HZ55_9d.js +0 -72
package/dist/article.js CHANGED
@@ -1 +1 @@
1
- export { i as Article, v as Aside, _ as Beat, g as Challenge, y as Cite, t as DiagramPart, f as Figure, p as FigureReference, b as Footnote, d as Predict, x as References, m as Reveal, l as Scrolly, u as ScrollyStep, r as TeX, n as Term, s as answerSources, a as articleChecks, c as articleOutline, S as defaultArticleLabels, o as emptyProgress, h as useRevealed } from "./article-yyNPg6VU.js";
1
+ export { i as Article, v as Aside, _ as Beat, g as Challenge, y as Cite, t as DiagramPart, f as Figure, p as FigureReference, b as Footnote, d as Predict, x as References, m as Reveal, l as Scrolly, u as ScrollyStep, r as TeX, n as Term, s as answerSources, a as articleChecks, c as articleOutline, S as defaultArticleLabels, o as emptyProgress, h as useRevealed } from "./article-CRlhq9oA.js";
package/dist/catalog.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@mechane-ai/elements",
3
- "version": "0.49.0",
3
+ "version": "0.50.0",
4
4
  "recipes": [
5
5
  {
6
6
  "slug": "allocation-report",
@@ -1620,6 +1620,18 @@
1620
1620
  "kind": "value",
1621
1621
  "declaration": "dist/packages/charts/src/chart-link.d.ts"
1622
1622
  },
1623
+ "CaptionScopeProps": {
1624
+ "kind": "type",
1625
+ "declaration": "dist/packages/charts/src/figure/caption-scope.d.ts"
1626
+ },
1627
+ "CaptionScope": {
1628
+ "kind": "value",
1629
+ "declaration": "dist/packages/charts/src/figure/caption-scope.d.ts"
1630
+ },
1631
+ "useIsCaptioned": {
1632
+ "kind": "value",
1633
+ "declaration": "dist/packages/charts/src/figure/caption-scope.d.ts"
1634
+ },
1623
1635
  "TimeFormat": {
1624
1636
  "kind": "type",
1625
1637
  "declaration": "dist/packages/charts/src/figure/figure-format.d.ts"
@@ -4028,14 +4040,26 @@
4028
4040
  "kind": "type",
4029
4041
  "declaration": "dist/packages/teaching/src/lesson/lesson-player.d.ts"
4030
4042
  },
4043
+ "PlaybackLength": {
4044
+ "kind": "type",
4045
+ "declaration": "dist/packages/teaching/src/lesson/lesson-player.d.ts"
4046
+ },
4031
4047
  "PlaybackPace": {
4032
4048
  "kind": "type",
4033
4049
  "declaration": "dist/packages/teaching/src/lesson/lesson-player.d.ts"
4034
4050
  },
4051
+ "PlaybackRun": {
4052
+ "kind": "type",
4053
+ "declaration": "dist/packages/teaching/src/lesson/lesson-player.d.ts"
4054
+ },
4035
4055
  "playbackPaces": {
4036
4056
  "kind": "value",
4037
4057
  "declaration": "dist/packages/teaching/src/lesson/lesson-player.d.ts"
4038
4058
  },
4059
+ "playbackRuns": {
4060
+ "kind": "value",
4061
+ "declaration": "dist/packages/teaching/src/lesson/lesson-player.d.ts"
4062
+ },
4039
4063
  "LessonProps": {
4040
4064
  "kind": "type",
4041
4065
  "declaration": "dist/packages/teaching/src/lesson/lesson.d.ts"
@@ -5020,6 +5044,10 @@
5020
5044
  "kind": "value",
5021
5045
  "declaration": "dist/packages/teaching/src/article/beat.d.ts"
5022
5046
  },
5047
+ "FigureFraming": {
5048
+ "kind": "type",
5049
+ "declaration": "dist/packages/teaching/src/article/figure.d.ts"
5050
+ },
5023
5051
  "FigureProps": {
5024
5052
  "kind": "type",
5025
5053
  "declaration": "dist/packages/teaching/src/article/figure.d.ts"
@@ -5604,6 +5632,14 @@
5604
5632
  }
5605
5633
  },
5606
5634
  "@mechane-ai/elements/kits/research": {
5635
+ "CollectionPageProps": {
5636
+ "kind": "type",
5637
+ "declaration": "dist/packages/kits/src/research/collection-page.d.ts"
5638
+ },
5639
+ "CollectionPage": {
5640
+ "kind": "value",
5641
+ "declaration": "dist/packages/kits/src/research/collection-page.d.ts"
5642
+ },
5607
5643
  "FindingCardLabels": {
5608
5644
  "kind": "type",
5609
5645
  "declaration": "dist/packages/kits/src/research/finding-card.d.ts"
@@ -1,13 +1,13 @@
1
1
  import { n as e, t } from "./chart-tones-ei3BC2AL.js";
2
- import { A as n, E as r, O as i, T as a, k as o } from "./plot-layout-Bqe4-0qZ.js";
2
+ import { A as n, D as r, M as i, O as a, j as o } from "./plot-layout-B2xRt-_k.js";
3
3
  import { t as s } from "./accessibility-P89UG9-r.js";
4
4
  import * as c from "@stylexjs/stylex";
5
5
  import { useId as l } from "react";
6
6
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
7
7
  // packages/charts/src/chart-rows.tsx
8
- function f({ title: e, items: t, view: n, children: a }) {
8
+ function f({ title: e, items: t, view: r, children: i }) {
9
9
  let f = l();
10
- return n === void 0 ? a : /* @__PURE__ */ d(r, {
10
+ return r === void 0 ? i : /* @__PURE__ */ d(a, {
11
11
  role: "group",
12
12
  "aria-label": o({
13
13
  title: e,
@@ -16,34 +16,34 @@ function f({ title: e, items: t, view: n, children: a }) {
16
16
  }),
17
17
  "aria-describedby": f,
18
18
  className: "xeuugli x1t137rt x-default-marker",
19
- children: [a, /* @__PURE__ */ u("span", {
19
+ children: [i, /* @__PURE__ */ u("span", {
20
20
  id: f,
21
21
  ...c.props(s.hidden),
22
- children: i(t, n.inspected)
22
+ children: n(t, r.inspected)
23
23
  })]
24
24
  });
25
25
  }
26
- function p({ id: e, label: t, view: n, children: r }) {
26
+ function p({ id: e, label: t, view: n, children: i }) {
27
27
  if (n === void 0) return /* @__PURE__ */ u("div", {
28
28
  className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r x17oiadl x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xpvm0e4 xss6m8b",
29
- children: r
29
+ children: i
30
30
  });
31
- let i = n.selected === e;
32
- return /* @__PURE__ */ u(a, {
31
+ let a = n.selected === e;
32
+ return /* @__PURE__ */ u(r, {
33
33
  value: e,
34
34
  render: /* @__PURE__ */ u("button", {
35
35
  type: "button",
36
36
  tabIndex: -1,
37
37
  "aria-label": t,
38
- "aria-pressed": i
38
+ "aria-pressed": a
39
39
  }),
40
40
  ...{
41
41
  0: { className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r x17oiadl x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xpvm0e4 xss6m8b x1ypdohk x1t137rt xif5pkx x1ecmtor" },
42
42
  2: { className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r x17oiadl x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xss6m8b x1ypdohk x1t137rt xif5pkx x1ecmtor x1r7kqkb xh3r7i3" },
43
43
  1: { className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r x17oiadl x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xpvm0e4 xss6m8b x1ypdohk xif5pkx x1ecmtor xx9gdjd x1x84bn5 x12ei19c x1t137rt xyevt74 x2ssjo2" },
44
44
  3: { className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r x17oiadl x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xss6m8b x1ypdohk xif5pkx x1ecmtor x1r7kqkb xh3r7i3 xx9gdjd x1x84bn5 x12ei19c x1t137rt xyevt74 x2ssjo2" }
45
- }[!!i << 1 | n.cursor === e],
46
- children: r
45
+ }[!!a << 1 | n.cursor === e],
46
+ children: i
47
47
  });
48
48
  }
49
49
  // packages/charts/src/categorical-values.tsx
@@ -69,7 +69,7 @@ var m = {
69
69
  };
70
70
  function _(e) {
71
71
  if (e.length > g.items) return `Choose a window with at most ${g.items} items.`;
72
- if (!n(e)) return "Every breakdown item needs a unique identifier.";
72
+ if (!i(e)) return "Every breakdown item needs a unique identifier.";
73
73
  if (e.some((e) => e.value !== null && (!Number.isFinite(e.value) || e.value < 0))) return "Breakdown values must be finite and nonnegative, or explicitly missing.";
74
74
  if (!Number.isFinite(e.reduce((e, t) => e + (t.value ?? 0), 0))) return "The sum of recorded values must be finite.";
75
75
  }
@@ -1 +1 @@
1
- export { t as AreaChart, p as BarChart, m as BarChartPlaceholder, f as BreakdownBar, d as BridgeChart, n as LineChart, l as ScatterPlot, r as SmallMultiples, i as SmallMultiplesPlaceholder, s as Sparkline, a as TimeSeriesChartPlaceholder, u as scatterLimits, o as timeSeriesBandLimits, c as timeSeriesLimits } from "../time-series-BL933QyA.js";
1
+ export { t as AreaChart, p as BarChart, m as BarChartPlaceholder, f as BreakdownBar, d as BridgeChart, n as LineChart, l as ScatterPlot, r as SmallMultiples, i as SmallMultiplesPlaceholder, s as Sparkline, a as TimeSeriesChartPlaceholder, u as scatterLimits, o as timeSeriesBandLimits, c as timeSeriesLimits } from "../time-series-CsngFxr1.js";
@@ -1 +1 @@
1
- export { a as BulletBar, r as DotPlot, t as DumbbellPlot, o as bulletLimits, i as dotPlotLimits, n as dumbbellLimits } from "../dumbbell-plot-CMv9llfd.js";
1
+ export { a as BulletBar, r as DotPlot, t as DumbbellPlot, o as bulletLimits, i as dotPlotLimits, n as dumbbellLimits } from "../dumbbell-plot-BC8d_IJy.js";
@@ -1 +1 @@
1
- export { s as BoxPlot, f as ECDF, d as Histogram, u as IntervalPlot, l as RankedBars, a as Ridgeline, r as StripPlot, t as ViolinPlot, c as boxLimits, p as distributionLimits, o as ridgelineLimits, i as stripLimits, n as violinLimits } from "../violin-plot-CoAEF_7Z.js";
1
+ export { s as BoxPlot, f as ECDF, d as Histogram, u as IntervalPlot, l as RankedBars, a as Ridgeline, r as StripPlot, t as ViolinPlot, c as boxLimits, p as distributionLimits, o as ridgelineLimits, i as stripLimits, n as violinLimits } from "../violin-plot-D05ODcyc.js";
@@ -1,16 +1,16 @@
1
- import { d as e, f as t, l as n, n as r, p as i, r as a, s as o, t as s } from "../time-series-BL933QyA.js";
2
- import { a as c, r as l, t as u } from "../dumbbell-plot-CMv9llfd.js";
3
- import { a as d, d as f, f as p, l as ee, r as te, s as ne, t as re, u as ie } from "../violin-plot-CoAEF_7Z.js";
4
- import { a as ae, r as oe, s as se, t as ce } from "../tree-diagram-DJhKBiia.js";
5
- import { n as le, t as ue } from "../treemap-CxxgABUg.js";
6
- import { a as de, r as fe, t as pe } from "../image-grid-DHqtj_zs.js";
7
- import { c as me, i as he, o as m, r as ge, t as _e, u as ve } from "../token-heatmap-BB65awva.js";
8
- import { a as ye, l as be, r as xe, s as Se, t as Ce } from "../embedding-map-DC-lgzCq.js";
9
- import { a as we, c as Te, r as h, t as Ee } from "../token-predictions-Pa8eUGan.js";
10
- import { n as De, t as Oe } from "../waterfall-DdoEXEkT.js";
11
- import { a as ke, l as Ae, r as je, s as Me, t as Ne } from "../slope-chart-C8eeSgL4.js";
1
+ import { d as e, f as t, l as n, n as r, p as i, r as a, s as o, t as s } from "../time-series-CsngFxr1.js";
2
+ import { a as c, r as l, t as u } from "../dumbbell-plot-BC8d_IJy.js";
3
+ import { a as d, d as f, f as p, l as ee, r as te, s as ne, t as re, u as ie } from "../violin-plot-D05ODcyc.js";
4
+ import { a as ae, r as oe, s as se, t as ce } from "../tree-diagram-Dau9jeXS.js";
5
+ import { n as le, t as ue } from "../treemap-DWrMQndu.js";
6
+ import { a as de, r as fe, t as pe } from "../image-grid-CLhol2jy.js";
7
+ import { c as me, i as he, o as m, r as ge, t as _e, u as ve } from "../token-heatmap-BQLIxPky.js";
8
+ import { a as ye, l as be, r as xe, s as Se, t as Ce } from "../embedding-map-Bj8krO-d.js";
9
+ import { a as we, c as Te, r as h, t as Ee } from "../token-predictions-C3B5L-eO.js";
10
+ import { n as De, t as Oe } from "../waterfall-BkLLv2Lm.js";
11
+ import { a as ke, l as Ae, r as je, s as Me, t as Ne } from "../slope-chart-DWZIYDty.js";
12
12
  import { m as g } from "../values-963L6n1m.js";
13
- import { a as _, r as v } from "../figure-frame-BjFzbl3m.js";
13
+ import { a as _, r as v } from "../figure-frame-koVKcXph.js";
14
14
  import { createElement as y } from "react";
15
15
  import { jsx as b } from "react/jsx-runtime";
16
16
  import { formatNumber as Pe } from "@ui-sdk/core/number";
@@ -1 +1 @@
1
- export { r as AttributionGraph, s as FlowDiagram, a as RelationGraph, t as TreeDiagram, i as attributionLimits, c as flowLimits, o as relationGraphLimits, n as treeLimits } from "../tree-diagram-DJhKBiia.js";
1
+ export { r as AttributionGraph, s as FlowDiagram, a as RelationGraph, t as TreeDiagram, i as attributionLimits, c as flowLimits, o as relationGraphLimits, n as treeLimits } from "../tree-diagram-Dau9jeXS.js";
@@ -1 +1 @@
1
- export { n as Icicle, t as Treemap, r as icicleLimits } from "../treemap-CxxgABUg.js";
1
+ export { n as Icicle, t as Treemap, r as icicleLimits } from "../treemap-DWrMQndu.js";
@@ -1 +1 @@
1
- export { a as AttributionOverlay, r as ImageAtlas, t as ImageGrid, o as attributionOverlayLimits, i as imageAtlasLimits, n as imageGridLimits } from "../image-grid-DHqtj_zs.js";
1
+ export { a as AttributionOverlay, r as ImageAtlas, t as ImageGrid, o as attributionOverlayLimits, i as imageAtlasLimits, n as imageGridLimits } from "../image-grid-CLhol2jy.js";
@@ -1,4 +1,4 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "../token-heatmap-BB65awva.js";
1
+ import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "../token-heatmap-BQLIxPky.js";
2
2
  import { t as p } from "../color-legend-CIo7DhXB.js";
3
3
  import { t as m } from "../heatmap-scale-Zte6Ya-g.js";
4
4
  export { f as AttentionMatrix, t as CalendarHeatmap, p as ColorLegend, s as ConfusionMatrix, i as CorrelationMatrix, l as Matrix, d as TokenHeatmap, n as attentionMatrixLimits, a as calendarHeatmapLimits, u as confusionMatrixLimits, e as correlationMatrixLimits, m as heatmapColor, c as matrixCellId, r as matrixLimits, o as tokenHeatmapLimits };
@@ -1,6 +1,6 @@
1
- import { a as e, i as t, l as n, n as r, o as i, r as a, t as o } from "../figure-frame-BjFzbl3m.js";
1
+ import { a as e, i as t, l as n, n as r, o as i, r as a, t as o } from "../figure-frame-koVKcXph.js";
2
2
  import { t as s } from "../chart-cursor-1mFd48Jc.js";
3
- import { A as c, E as l, O as u, S as d, T as f, _ as p, a as m, d as h, f as g, g as _, h as v, i as y, k as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A, w as j, y as M } from "../plot-layout-Bqe4-0qZ.js";
3
+ import { A as c, D as l, E as u, M as d, O as f, S as p, _ as m, a as h, d as g, f as _, g as v, h as y, i as b, j as x, l as S, m as C, n as w, o as T, p as E, r as D, s as O, t as k, u as A, v as j, y as M } from "../plot-layout-B2xRt-_k.js";
4
4
  import { n as N } from "../plot-width-D3hTycYX.js";
5
5
  import { a as P, n as F, r as I } from "../tone-scope-DKiSw-JR.js";
6
6
  import { a as L } from "../figure-format-B8kRZMlo.js";
@@ -10,6 +10,6 @@ import { t as Z } from "../locate-Bcg3QcP4.js";
10
10
  import { i as Q, n as $, r as ee, t as te } from "../path-BglsXpnO.js";
11
11
  import { t as ne } from "../plot-axes-D5S9BnBa.js";
12
12
  import { a as re, c as ie, d as ae, f as oe, i as se, l as ce, n as le, o as ue, p as de, r as fe, s as pe, t as me, u as he } from "../plot-marks-FVsbFkUs.js";
13
- import { n as ge, r as _e, t as ve } from "../plot-surface-DON6WUmk.js";
13
+ import { n as ge, r as _e, t as ve } from "../plot-surface-0cKFwtws.js";
14
14
  import { a as ye, i as be, n as xe, o as Se, r as Ce, t as we } from "../scale-C2xgZyZN.js";
15
- export { me as AreaMark, le as BandMark, fe as BarMark, j as Chart, s as ChartCursor, n as ChartData, i as ChartInspection, f as ChartMark, l as ChartPlot, d as ChartReadout, se as ConnectorMark, z as DensityLayer, re as DotMark, o as FigureEmpty, r as FigureFrame, a as FigureInvalid, t as FigureLoading, ue as GuideMark, pe as IntervalMark, ie as LabelMark, ce as LineMark, he as LinkMark, ne as PlotAxes, ve as PlotClip, ge as PlotSurface, U as PlotViewportRoot, G as PlotViewportSurface, q as PointLayer, ae as RingMark, oe as RuleMark, de as SymbolMark, V as WHOLE_VIEW, te as areaPath, F as assignTones, I as automaticTone, O as axisTicks, C as axisTitle, we as bandScale, E as bandTicks, y as categoryPlot, N as chartStyles, xe as columnExtent, Ce as continuousScale, H as contourSegments, W as countInside, e as coverageText, m as fitDomain, X as freeLabelSpot, c as hasUniqueIds, K as hitIndex, u as inspectedLabel, be as isFiniteDomain, $ as isolatedPoints, Y as labelBox, ee as linePath, v as linearTicks, Q as linkPath, Z as locateNearest, _ as logTicks, w as numericPlot, ye as outsideDomain, D as plotBox, b as plotLabel, x as plotMargins, J as sampleGrid, Se as scaleDomainError, p as scaleTicks, B as segmentsPath, A as symlogTicks, k as tickTexts, h as ticksMinimum, g as timeAxisTicks, T as timePlot, M as timeTicks, _e as usePlotSize, P as useTones, S as valueGutter, R as visibleDomains, L as zoneOffset };
15
+ export { me as AreaMark, le as BandMark, fe as BarMark, u as Chart, s as ChartCursor, n as ChartData, i as ChartInspection, l as ChartMark, f as ChartPlot, p as ChartReadout, se as ConnectorMark, z as DensityLayer, re as DotMark, o as FigureEmpty, r as FigureFrame, a as FigureInvalid, t as FigureLoading, ue as GuideMark, pe as IntervalMark, ie as LabelMark, ce as LineMark, he as LinkMark, ne as PlotAxes, ve as PlotClip, ge as PlotSurface, U as PlotViewportRoot, G as PlotViewportSurface, q as PointLayer, ae as RingMark, oe as RuleMark, de as SymbolMark, V as WHOLE_VIEW, te as areaPath, F as assignTones, I as automaticTone, k as axisTicks, w as axisTitle, we as bandScale, D as bandTicks, b as categoryPlot, N as chartStyles, xe as columnExtent, Ce as continuousScale, H as contourSegments, W as countInside, e as coverageText, h as fitDomain, X as freeLabelSpot, d as hasUniqueIds, K as hitIndex, c as inspectedLabel, be as isFiniteDomain, $ as isolatedPoints, Y as labelBox, ee as linePath, y as linearTicks, Q as linkPath, Z as locateNearest, v as logTicks, T as numericPlot, ye as outsideDomain, O as plotBox, x as plotLabel, S as plotMargins, J as sampleGrid, Se as scaleDomainError, m as scaleTicks, B as segmentsPath, j as symlogTicks, A as tickTexts, g as ticksMinimum, _ as timeAxisTicks, E as timePlot, M as timeTicks, _e as usePlotSize, P as useTones, C as valueGutter, R as visibleDomains, L as zoneOffset };
@@ -1 +1 @@
1
- export { l as ContourPlot, r as DensityMap, t as EmbeddingMap, s as ParallelCoordinates, a as ScatterMatrix, u as contourLimits, i as densityLimits, n as embeddingLimits, c as parallelLimits, o as scatterMatrixLimits } from "../embedding-map-DC-lgzCq.js";
1
+ export { l as ContourPlot, r as DensityMap, t as EmbeddingMap, s as ParallelCoordinates, a as ScatterMatrix, u as contourLimits, i as densityLimits, n as embeddingLimits, c as parallelLimits, o as scatterMatrixLimits } from "../embedding-map-Bj8krO-d.js";
@@ -1 +1 @@
1
- export { c as TokenExamples, a as TokenGrid, r as TokenLinks, t as TokenPredictions, u as TokenScaleLegend, d as TokenText, f as quoteToken, l as tokenExampleLimits, o as tokenGridCellId, s as tokenGridLimits, i as tokenLinkLimits, n as tokenPredictionLimits } from "../token-predictions-Pa8eUGan.js";
1
+ export { c as TokenExamples, a as TokenGrid, r as TokenLinks, t as TokenPredictions, u as TokenScaleLegend, d as TokenText, f as quoteToken, l as tokenExampleLimits, o as tokenGridCellId, s as tokenGridLimits, i as tokenLinkLimits, n as tokenPredictionLimits } from "../token-predictions-C3B5L-eO.js";
@@ -1 +1 @@
1
- export { n as EventStrip, t as Waterfall, r as eventStripGutter, i as eventStripLimits } from "../waterfall-DdoEXEkT.js";
1
+ export { n as EventStrip, t as Waterfall, r as eventStripGutter, i as eventStripLimits } from "../waterfall-BkLLv2Lm.js";
@@ -1 +1 @@
1
- export { l as BumpChart, s as CurveChart, a as HorizonChart, r as RunsChart, t as SlopeChart, u as bumpLimits, c as curveLimits, o as horizonLimits, i as runsLimits, n as slopeLimits } from "../slope-chart-C8eeSgL4.js";
1
+ export { l as BumpChart, s as CurveChart, a as HorizonChart, r as RunsChart, t as SlopeChart, u as bumpLimits, c as curveLimits, o as horizonLimits, i as runsLimits, n as slopeLimits } from "../slope-chart-DWZIYDty.js";
package/dist/charts.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { n as e, t } from "./chart-tones-ei3BC2AL.js";
2
- import { C as n, b as r, c as i, x as a } from "./plot-layout-Bqe4-0qZ.js";
3
- import { r as o } from "./categorical-values-DCznViFp.js";
4
- import { i as s, n as c, t as l } from "./chart-link-AE_xuxiP.js";
5
- import { i as u, t as d } from "./tone-scope-DKiSw-JR.js";
6
- import { t as f } from "./src-DIS0YOj0.js";
7
- import { i as p, n as m, r as h, t as g } from "./figure-format-B8kRZMlo.js";
8
- export { r as ChartFrame, f as ChartGrid, a as ChartLegend, l as ChartLink, n as ChartSeriesMarker, g as MISSING_VALUE_TEXT, d as ToneScope, o as categoricalLimits, t as chartToneColors, e as chartToneOutlines, m as formatTime, h as formatValue, i as plotHeights, p as tickFormat, c as useChartLinkControl, s as useLinkedInspection, u as useScopedTone };
2
+ import { C as n, T as r, b as i, c as a, w as o, x as s } from "./plot-layout-B2xRt-_k.js";
3
+ import { r as c } from "./categorical-values-BYP_R5gS.js";
4
+ import { i as l, n as u, t as d } from "./chart-link-AE_xuxiP.js";
5
+ import { i as f, t as p } from "./tone-scope-DKiSw-JR.js";
6
+ import { t as m } from "./src-DIS0YOj0.js";
7
+ import { i as h, n as g, r as _, t as v } from "./figure-format-B8kRZMlo.js";
8
+ export { n as CaptionScope, i as ChartFrame, m as ChartGrid, s as ChartLegend, d as ChartLink, r as ChartSeriesMarker, v as MISSING_VALUE_TEXT, p as ToneScope, c as categoricalLimits, t as chartToneColors, e as chartToneOutlines, g as formatTime, _ as formatValue, a as plotHeights, h as tickFormat, u as useChartLinkControl, o as useIsCaptioned, l as useLinkedInspection, f as useScopedTone };
@@ -1 +1 @@
1
- export { c as CollectionEnd, p as CollectionFilters, v as CollectionPagination, l as CollectionScroll, y as CollectionToolbar, u as DataTable, d as DataTablePlaceholder, g as DataTableText, _ as DataTableTextPlaceholder, o as Details, b as DisplayOptions, x as FilterChips, s as Inspector, a as ListFooter, r as Metric, i as MetricGrid, m as TableQueryFrame, t as Timeline, n as Timestamp, f as useCollectionControls, h as useLocalTableQuery } from "./src-B2rgpWap.js";
1
+ export { c as CollectionEnd, p as CollectionFilters, v as CollectionPagination, l as CollectionScroll, y as CollectionToolbar, u as DataTable, d as DataTablePlaceholder, g as DataTableText, _ as DataTableTextPlaceholder, o as Details, b as DisplayOptions, x as FilterChips, s as Inspector, a as ListFooter, r as Metric, i as MetricGrid, m as TableQueryFrame, t as Timeline, n as Timestamp, f as useCollectionControls, h as useLocalTableQuery } from "./src-DNclWY4V.js";
@@ -1,14 +1,14 @@
1
1
  import { r as e } from "./tokens.stylex-dF5CACEJ.js";
2
- import { A as t, O as n, S as r, a as i, c as a, i as o, k as s, n as c, w as l, x as u } from "./plot-layout-Bqe4-0qZ.js";
2
+ import { A as t, E as n, M as r, S as i, a, c as o, i as s, j as c, n as l, x as u } from "./plot-layout-B2xRt-_k.js";
3
3
  import { i as d, r as f } from "./chart-link-AE_xuxiP.js";
4
4
  import { a as p } from "./tone-scope-DKiSw-JR.js";
5
5
  import { r as m } from "./figure-format-B8kRZMlo.js";
6
6
  import { a as h, o as g } from "./scale-C2xgZyZN.js";
7
- import { i as _, l as v, n as y, r as b, t as x } from "./figure-frame-BjFzbl3m.js";
7
+ import { i as _, l as v, n as y, r as b, t as x } from "./figure-frame-koVKcXph.js";
8
8
  import { n as S } from "./plot-width-D3hTycYX.js";
9
9
  import { t as C } from "./plot-axes-D5S9BnBa.js";
10
10
  import { a as w, f as T, r as E, s as D } from "./plot-marks-FVsbFkUs.js";
11
- import { n as O, r as k, t as A } from "./plot-surface-DON6WUmk.js";
11
+ import { n as O, r as k, t as A } from "./plot-surface-0cKFwtws.js";
12
12
  import { t as ee } from "./locate-Bcg3QcP4.js";
13
13
  import * as j from "@stylexjs/stylex";
14
14
  import { useId as M } from "react";
@@ -24,18 +24,18 @@ var te = 56, I = {
24
24
  $$css: !0
25
25
  }
26
26
  };
27
- function L({ rows: e, value: n, valueDomain: r, rowsMax: i }) {
28
- let a = g(r, n.scale);
27
+ function L({ rows: e, value: t, valueDomain: n, rowsMax: i }) {
28
+ let a = g(n, t.scale);
29
29
  if (a !== void 0) return a;
30
- if (!t(e)) return "Rows must have unique identifiers.";
30
+ if (!r(e)) return "Rows must have unique identifiers.";
31
31
  if (e.length > i) return `This chart draws at most ${i} rows. Supply the leading rows or group the rest.`;
32
32
  }
33
33
  function R(e, t) {
34
34
  let n = new Set(e.map((e) => e.id));
35
35
  return t.filter((e) => !n.has(e));
36
36
  }
37
- function z({ frame: e, isEmpty: t, emptyLabel: i, rows: f, value: p, valueDomain: m, height: h, rowStep: g, items: _, legend: b, hasLegend: w, grid: T, selected: E, onSelectedChange: D, renderMarks: L }) {
38
- let R = k(h), z = M(), B = d(), V = Math.max(a[h], f.length * g + te), H = o({
37
+ function z({ frame: e, isEmpty: r, emptyLabel: a, rows: f, value: p, valueDomain: m, height: h, rowStep: g, items: _, legend: b, hasLegend: w, grid: T, selected: E, onSelectedChange: D, renderMarks: L }) {
38
+ let R = k(h), z = M(), B = d(), V = Math.max(o[h], f.length * g + te), H = s({
39
39
  width: R.width,
40
40
  height: V,
41
41
  direction: "rows",
@@ -51,7 +51,7 @@ function z({ frame: e, isEmpty: t, emptyLabel: i, rows: f, value: p, valueDomain
51
51
  y: t
52
52
  }];
53
53
  });
54
- return /* @__PURE__ */ P(l, {
54
+ return /* @__PURE__ */ P(n, {
55
55
  ...B,
56
56
  items: _,
57
57
  arrows: "both",
@@ -63,8 +63,8 @@ function z({ frame: e, isEmpty: t, emptyLabel: i, rows: f, value: p, valueDomain
63
63
  }),
64
64
  selected: E,
65
65
  onSelect: D,
66
- render: (a, o) => {
67
- let l = _.find((e) => e.id === o.inspected)?.id, d = _.find((e) => e.id === o.selected)?.id, m = _.find((e) => e.id === o.cursor)?.id;
66
+ render: (n, o) => {
67
+ let s = _.find((e) => e.id === o.inspected)?.id, d = _.find((e) => e.id === o.selected)?.id, m = _.find((e) => e.id === o.cursor)?.id;
68
68
  function h(e) {
69
69
  return {
70
70
  y: (W.start(e) ?? 0) - (W.step - W.bandwidth) / 2,
@@ -73,24 +73,24 @@ function z({ frame: e, isEmpty: t, emptyLabel: i, rows: f, value: p, valueDomain
73
73
  }
74
74
  return /* @__PURE__ */ P(y, {
75
75
  ...e,
76
- figure: a,
76
+ figure: n,
77
77
  series: b,
78
- seriesLegend: w && !t ? /* @__PURE__ */ P(u, { items: b }) : void 0,
79
- footer: t ? void 0 : /* @__PURE__ */ P(r, {
78
+ seriesLegend: w && !r ? /* @__PURE__ */ P(u, { items: b }) : void 0,
79
+ footer: r ? void 0 : /* @__PURE__ */ P(i, {
80
80
  id: z,
81
- children: n(_, l ?? null)
81
+ children: t(_, s ?? null)
82
82
  }),
83
- children: t ? /* @__PURE__ */ P(x, { children: i }) : /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ F(O, {
83
+ children: r ? /* @__PURE__ */ P(x, { children: a }) : /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ F(O, {
84
84
  plotRef: R.ref,
85
85
  box: U,
86
- label: s({
86
+ label: c({
87
87
  title: e.title,
88
88
  marks: "rows",
89
89
  isSelectable: D !== void 0
90
90
  }),
91
91
  readoutId: z,
92
92
  children: [
93
- f.filter((e) => e.id === l || e.id === d).map((e) => /* @__PURE__ */ P("rect", {
93
+ f.filter((e) => e.id === s || e.id === d).map((e) => /* @__PURE__ */ P("rect", {
94
94
  x: U.left,
95
95
  width: U.innerWidth,
96
96
  ...h(e.id),
@@ -103,7 +103,7 @@ function z({ frame: e, isEmpty: t, emptyLabel: i, rows: f, value: p, valueDomain
103
103
  box: U,
104
104
  xTicks: H.valueTicks,
105
105
  yTicks: H.bandTicks,
106
- xTitle: c(p),
106
+ xTitle: l(p),
107
107
  grid: T
108
108
  }),
109
109
  /* @__PURE__ */ P(A, {
@@ -111,7 +111,7 @@ function z({ frame: e, isEmpty: t, emptyLabel: i, rows: f, value: p, valueDomain
111
111
  pad: 6,
112
112
  children: L({
113
113
  plot: H,
114
- inspected: l,
114
+ inspected: s,
115
115
  selected: d
116
116
  })
117
117
  }),
@@ -181,12 +181,12 @@ function K({ rows: e, value: t, valueDomain: n }) {
181
181
  }
182
182
  }
183
183
  function q(e) {
184
- let { rows: t, value: n, selected: r, onSelectedChange: a, height: o = "regular", ...s } = e, { emptyLabel: c = "No measurements are available.", ...l } = s, { locale: u } = l;
184
+ let { rows: t, value: n, selected: r, onSelectedChange: i, height: o = "regular", ...s } = e, { emptyLabel: c = "No measurements are available.", ...l } = s, { locale: u } = l;
185
185
  if (l.status === "loading") return /* @__PURE__ */ P(_, {
186
186
  ...l,
187
187
  height: o
188
188
  });
189
- let d = n.domain ?? i({
189
+ let d = n.domain ?? a({
190
190
  values: t.flatMap((e) => [
191
191
  e.value,
192
192
  e.target ?? null,
@@ -245,7 +245,7 @@ function q(e) {
245
245
  hasLegend: !0,
246
246
  grid: "x",
247
247
  selected: r,
248
- onSelectedChange: a,
248
+ onSelectedChange: i,
249
249
  renderMarks: ({ plot: e, inspected: n, selected: r }) => t.flatMap((t) => {
250
250
  let i = e.band.center(t.id), a = e.band.start(t.id);
251
251
  if (i === void 0 || a === void 0) return [];
@@ -285,33 +285,33 @@ var J = {
285
285
  rows: 60,
286
286
  series: 6
287
287
  }, Y = 4, X = 9, Z = 12;
288
- function ne({ rows: e, series: n, value: r, valueDomain: i }) {
288
+ function ne({ rows: e, series: t, value: n, valueDomain: i }) {
289
289
  let a = L({
290
290
  rows: e,
291
- value: r,
291
+ value: n,
292
292
  valueDomain: i,
293
293
  rowsMax: J.rows
294
294
  });
295
295
  if (a !== void 0) return a;
296
- if (!t(n)) return "Series must have unique identifiers.";
297
- if (n.length > J.series) return `This chart draws at most ${J.series} series.`;
298
- for (let t of n) {
299
- if (R(e, [...Object.keys(t.values), ...Object.keys(t.intervals ?? {})]).length > 0) return `Series ${t.id} has values for rows that are not listed.`;
300
- let n = Object.values(t.intervals ?? {}).flatMap((e) => [e.lower, e.upper]);
301
- if ([...Object.values(t.values), ...n].some((e) => e !== null && h(e, i))) return `Series ${t.id} has a value that is not finite or lies outside the declared domain.`;
302
- if (Object.values(t.intervals ?? {}).some((e) => e.lower > e.upper)) return `Series ${t.id} has an interval whose lower bound is above its upper bound.`;
296
+ if (!r(t)) return "Series must have unique identifiers.";
297
+ if (t.length > J.series) return `This chart draws at most ${J.series} series.`;
298
+ for (let n of t) {
299
+ if (R(e, [...Object.keys(n.values), ...Object.keys(n.intervals ?? {})]).length > 0) return `Series ${n.id} has values for rows that are not listed.`;
300
+ let t = Object.values(n.intervals ?? {}).flatMap((e) => [e.lower, e.upper]);
301
+ if ([...Object.values(n.values), ...t].some((e) => e !== null && h(e, i))) return `Series ${n.id} has a value that is not finite or lies outside the declared domain.`;
302
+ if (Object.values(n.intervals ?? {}).some((e) => e.lower > e.upper)) return `Series ${n.id} has an interval whose lower bound is above its upper bound.`;
303
303
  }
304
304
  }
305
305
  function re(e) {
306
- let { rows: t, series: n, value: r, highlighted: a, selected: o, onSelectedChange: s, height: c = "regular", ...l } = e, { emptyLabel: u = "No values are available.", ...d } = l, { locale: h } = d, g = p(), v = f({
306
+ let { rows: t, series: n, value: r, highlighted: i, selected: o, onSelectedChange: s, height: c = "regular", ...l } = e, { emptyLabel: u = "No values are available.", ...d } = l, { locale: h } = d, g = p(), v = f({
307
307
  ids: n.map((e) => e.id),
308
- highlighted: a
308
+ highlighted: i
309
309
  });
310
310
  if (d.status === "loading") return /* @__PURE__ */ P(_, {
311
311
  ...d,
312
312
  height: c
313
313
  });
314
- let y = r.domain ?? i({
314
+ let y = r.domain ?? a({
315
315
  values: n.flatMap((e) => [...Object.values(e.values), ...Object.values(e.intervals ?? {}).flatMap((e) => [e.lower, e.upper])]),
316
316
  scale: r.scale
317
317
  }), x = ne({
@@ -410,12 +410,12 @@ function ae({ rows: e, value: t, valueDomain: n }) {
410
410
  if (e.flatMap((e) => [e.from, e.to]).some((e) => e !== null && h(e, n))) return "A value is not finite or lies outside the declared domain.";
411
411
  }
412
412
  function oe(e) {
413
- let { rows: t, fromLabel: n, toLabel: r, fromTone: a = "series1", toTone: o = "series2", value: s } = e, { selected: c, onSelectedChange: l, height: u = "regular", ...d } = e, { emptyLabel: f = "No values are available.", ...p } = d, { locale: h } = p;
413
+ let { rows: t, fromLabel: n, toLabel: r, fromTone: i = "series1", toTone: o = "series2", value: s } = e, { selected: c, onSelectedChange: l, height: u = "regular", ...d } = e, { emptyLabel: f = "No values are available.", ...p } = d, { locale: h } = p;
414
414
  if (p.status === "loading") return /* @__PURE__ */ P(_, {
415
415
  ...p,
416
416
  height: u
417
417
  });
418
- let g = s.domain ?? i({
418
+ let g = s.domain ?? a({
419
419
  values: t.flatMap((e) => [e.from, e.to]),
420
420
  scale: s.scale
421
421
  }), v = ae({
@@ -463,7 +463,7 @@ function oe(e) {
463
463
  legend: [{
464
464
  id: "from",
465
465
  label: n,
466
- tone: a
466
+ tone: i
467
467
  }, {
468
468
  id: "to",
469
469
  label: r,
@@ -474,8 +474,8 @@ function oe(e) {
474
474
  selected: c,
475
475
  onSelectedChange: l,
476
476
  renderMarks: ({ plot: e, inspected: n, selected: r }) => t.flatMap((t) => {
477
- let i = e.band.center(t.id);
478
- if (i === void 0) return [];
477
+ let a = e.band.center(t.id);
478
+ if (a === void 0) return [];
479
479
  let s = {
480
480
  isInspected: t.id === n,
481
481
  isSelected: t.id === r
@@ -484,21 +484,21 @@ function oe(e) {
484
484
  t.from !== null && t.to !== null && /* @__PURE__ */ P(D, {
485
485
  x1: e.value.position(t.from),
486
486
  x2: e.value.position(t.to),
487
- y1: i,
488
- y2: i,
487
+ y1: a,
488
+ y2: a,
489
489
  tone: "neutral",
490
490
  emphasis: "context"
491
491
  }),
492
492
  t.from !== null && /* @__PURE__ */ P(w, {
493
493
  x: e.value.position(t.from),
494
- y: i,
495
- tone: a,
494
+ y: a,
495
+ tone: i,
496
496
  radius: $,
497
497
  ...s
498
498
  }),
499
499
  t.to !== null && /* @__PURE__ */ P(w, {
500
500
  x: e.value.position(t.to),
501
- y: i,
501
+ y: a,
502
502
  tone: o,
503
503
  radius: $,
504
504
  ...s