@tangle-network/charts 0.21.7 → 0.21.8

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.
@@ -136,10 +136,9 @@
136
136
  background: repeating-linear-gradient(-45deg, color-mix(in oklab, var(--fw-text) 9%, transparent) 0 1px, transparent 1px 6px), color-mix(in oklab, var(--fw-text) 4%, transparent);
137
137
  border-inline: 1px dashed color-mix(in oklab, var(--fw-text) 24%, transparent); }
138
138
  .fw-root .fw-pause-label b { font-weight: 600; color: var(--fw-text); }
139
- .fw-root .fw-pause { overflow: visible; }
140
- .fw-root .fw-pause-label { position: sticky; top: 4px; display: block; width: max-content; margin: 4px 0 0 50%; translate: -50% 0; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
139
+ .fw-root .fw-pause-label { position: absolute; z-index: 2; top: 50%; left: calc(var(--fw-pad) + ((var(--s) + var(--e)) / 2 - var(--fw-v0)) * var(--fw-k) * 1px); translate: -50% -50%; width: max-content; padding: 0 8px; white-space: nowrap;
141
140
  border-radius: 4px; font-size: 12px; line-height: 20px; color: var(--fw-muted); background: var(--fw-surface); box-shadow: inset 0 0 0 1px var(--fw-border); }
142
- /* The label alone takes the pointer, for its reason; the band stays click-through to the rows. */
141
+ /* The label takes the pointer, for its reason; the band stays click-through to the rows. */
143
142
  .fw-root .fw-pause-label[title] { pointer-events: auto; cursor: help; }
144
143
  .fw-root .fw-marker-label { position: absolute; top: 2px; left: 3px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; border-radius: 4px; font-size: 12px; line-height: 16px; color: var(--fw-marker); background: var(--fw-surface); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fw-marker) 40%, transparent); }
145
144
  .fw-root .fw-marker-label-left { left: auto; right: 3px; }
@@ -3940,6 +3940,18 @@ function FlowBody(props) {
3940
3940
  props.onScrub(marker.at);
3941
3941
  }
3942
3942
  }, `e-${marker.at}-${marker.label}`)),
3943
+ props.pauses?.filter((pause) => pauseLabels.has(pause)).map((pause) => /* @__PURE__ */ jsx("span", {
3944
+ className: "fw-pause-label",
3945
+ style: {
3946
+ "--s": pause.startMs,
3947
+ "--e": pause.endMs
3948
+ },
3949
+ title: pause.detail ? `${pause.label}: ${pause.detail}` : pause.label,
3950
+ tabIndex: 0,
3951
+ "aria-label": `${pause.label}, ${duration(pause.endMs - pause.startMs)}${pause.detail ? `: ${pause.detail}` : ""}`,
3952
+ onPointerDown: (event) => event.stopPropagation(),
3953
+ children: /* @__PURE__ */ jsx("b", { children: duration(pause.endMs - pause.startMs) })
3954
+ }, `pl-${pause.startMs}`)),
3943
3955
  jumped && /* @__PURE__ */ jsx("span", {
3944
3956
  className: "fw-event-label",
3945
3957
  "data-tone": jumped.tone ?? "neutral",
@@ -4046,14 +4058,7 @@ function FlowBody(props) {
4046
4058
  "--s": pause.startMs,
4047
4059
  "--e": pause.endMs
4048
4060
  },
4049
- title: `${pause.label}, ${duration(pause.endMs - pause.startMs)}`,
4050
- children: pauseLabels.has(pause) && /* @__PURE__ */ jsx("span", {
4051
- className: "fw-pause-label",
4052
- title: pause.detail ? `${pause.label}: ${pause.detail}` : pause.label,
4053
- tabIndex: 0,
4054
- "aria-label": `${pause.label}, ${duration(pause.endMs - pause.startMs)}${pause.detail ? `: ${pause.detail}` : ""}`,
4055
- children: /* @__PURE__ */ jsx("b", { children: duration(pause.endMs - pause.startMs) })
4056
- })
4061
+ title: `${pause.label}, ${duration(pause.endMs - pause.startMs)}`
4057
4062
  }, `p-${pause.startMs}`)), props.markers?.map((marker) => /* @__PURE__ */ jsx("span", {
4058
4063
  className: "fw-marker",
4059
4064
  "data-tone": marker.tone ?? "neutral",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/charts",
3
- "version": "0.21.7",
3
+ "version": "0.21.8",
4
4
  "description": "Static SVG and HTML figures for benchmarks and operational timing. Draws from producer data and refuses what it cannot draw honestly.",
5
5
  "type": "module",
6
6
  "license": "MIT",