@mechane-ai/elements 0.68.0 → 0.69.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 (69) hide show
  1. package/dist/ai.js +1 -1
  2. package/dist/{article-Ni152e-v.js → article-CTSxWe4y.js} +1 -1
  3. package/dist/article.js +1 -1
  4. package/dist/catalog.json +67 -7
  5. package/dist/{categorical-values-6Iz03F1i.js → categorical-values-DwomVcSd.js} +1 -1
  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 +6 -6
  15. package/dist/charts/relationship.js +1 -1
  16. package/dist/charts/text.js +1 -1
  17. package/dist/charts/timeline.js +2 -2
  18. package/dist/charts/trend.js +1 -1
  19. package/dist/charts.js +2 -2
  20. package/dist/content.js +1 -1
  21. package/dist/{dumbbell-plot-jaQvOctJ.js → dumbbell-plot-S4RyfxmW.js} +4 -4
  22. package/dist/{embedding-map-DnZL1kvY.js → embedding-map-Bm7aTA6z.js} +3 -3
  23. package/dist/{figure-frame-96zFqsWz.js → figure-frame-BHCNceS4.js} +1 -1
  24. package/dist/{image-grid-B6fdmE9c.js → image-grid-TTrLxvaI.js} +2 -2
  25. package/dist/kits/evaluation.js +3 -3
  26. package/dist/kits/interpretability.js +6 -6
  27. package/dist/kits/operations.js +3 -3
  28. package/dist/kits/research.js +801 -356
  29. package/dist/kits/training.js +2 -2
  30. package/dist/locate-Dcq5ZZSk.js +14 -0
  31. package/dist/mdx.js +2 -2
  32. package/dist/packages/charts/src/plot/index.d.ts +1 -0
  33. package/dist/packages/charts/src/plot/locate.d.ts +3 -1
  34. package/dist/packages/charts/src/plot/spatial-layer.d.ts +5 -1
  35. package/dist/packages/charts/src/plot/step-history.d.ts +13 -0
  36. package/dist/packages/content/src/timeline-scrubber.d.ts +3 -1
  37. package/dist/packages/kits/src/research/index.d.ts +8 -1
  38. package/dist/packages/kits/src/research/motion-clip.d.ts +1 -39
  39. package/dist/packages/kits/src/research/motion-figure.d.ts +4 -1
  40. package/dist/packages/kits/src/research/motion-frame.d.ts +3 -3
  41. package/dist/packages/kits/src/research/motion-inspection.d.ts +14 -0
  42. package/dist/packages/kits/src/research/motion-location.d.ts +9 -0
  43. package/dist/packages/kits/src/research/motion-scene.d.ts +9 -2
  44. package/dist/packages/kits/src/research/motion-types.d.ts +54 -0
  45. package/dist/packages/kits/src/research/motion-view.d.ts +9 -0
  46. package/dist/packages/kits/src/research/native-motion-figure.d.ts +17 -0
  47. package/dist/packages/kits/src/research/native-motion.d.ts +18 -0
  48. package/dist/plot-BIYlgY2B.js +223 -0
  49. package/dist/{plot-layout-1MG72ZWn.js → plot-layout-CNNFMC8H.js} +1 -1
  50. package/dist/{plot-surface-8-FZI94y.js → plot-surface-BSjoNIva.js} +1 -1
  51. package/dist/{reference-lines-C18o1yEY.js → reference-lines-Bet_hRyA.js} +1 -1
  52. package/dist/{scene-B8dppj5V.js → scene-C88Xkz4l.js} +4 -4
  53. package/dist/scene.js +1 -1
  54. package/dist/{slope-chart-CELflRJd.js → slope-chart-B6Mtcta2.js} +5 -5
  55. package/dist/{src-BsqbWDxS.js → src-DCozYUGI.js} +146 -131
  56. package/dist/styles2.css +4 -4
  57. package/dist/{time-series-DtAtGoT_.js → time-series-DJk-2Mt0.js} +6 -6
  58. package/dist/{timeline-CzianQir.js → timeline-BHpj7i7K.js} +3 -3
  59. package/dist/{token-heatmap-m6oaMwkK.js → token-heatmap-DEqEaoGE.js} +2 -2
  60. package/dist/{token-predictions-CpGVjOIs.js → token-predictions-Bjdh0K-A.js} +4 -4
  61. package/dist/{tree-diagram-D9ekymCQ.js → tree-diagram-BxSDOBFj.js} +3 -3
  62. package/dist/{treemap-DT8q65LQ.js → treemap-DzHAp4ia.js} +4 -4
  63. package/dist/{violin-plot-83HSjnQM.js → violin-plot-B4Cf38Y9.js} +4 -4
  64. package/dist/{waterfall-DmApvdrY.js → waterfall-C9_pHZzv.js} +3 -3
  65. package/package.json +1 -1
  66. package/skills/review-elements/SKILL.md +3 -1
  67. package/skills/use-elements/references/kits.md +10 -0
  68. package/dist/locate-Bcg3QcP4.js +0 -11
  69. package/dist/plot-CpTwLIYN.js +0 -101
@@ -1,9 +1,9 @@
1
1
  import { r as e } from "./tokens.stylex-dF5CACEJ.js";
2
2
  import { d as t, l as n, s as r } from "./dates-OTq-xU33.js";
3
- import { A as i, D as a, E as o, M as s, O as c, S as l, a as u, j as d, k as f } from "./plot-layout-1MG72ZWn.js";
3
+ import { A as i, D as a, E as o, M as s, O as c, S as l, a as u, j as d, k as f } from "./plot-layout-CNNFMC8H.js";
4
4
  import { i as p } from "./chart-link-AE_xuxiP.js";
5
5
  import { r as m } from "./figure-format-BVb7yFCA.js";
6
- import { i as h, l as g, n as _, r as ee, t as te } from "./figure-frame-96zFqsWz.js";
6
+ import { i as h, l as g, n as _, r as ee, t as te } from "./figure-frame-BHCNceS4.js";
7
7
  import { n as ne, t as re } from "./plot-width-D3hTycYX.js";
8
8
  import { n as v, r as y, t as ie } from "./heatmap-scale-Zte6Ya-g.js";
9
9
  import { t as ae } from "./color-legend-4As8881l.js";
@@ -1,16 +1,16 @@
1
1
  import { r as e } from "./tokens.stylex-dF5CACEJ.js";
2
2
  import { t } from "./chart-tones-ei3BC2AL.js";
3
- import { A as n, D as r, E as i, M as a, O as o, S as s, a as c, i as l, j as u, n as d, s as f, x as p } from "./plot-layout-1MG72ZWn.js";
3
+ import { A as n, D as r, E as i, M as a, O as o, S as s, a as c, i as l, j as u, n as d, s as f, x as p } from "./plot-layout-CNNFMC8H.js";
4
4
  import { i as ee } from "./chart-link-AE_xuxiP.js";
5
5
  import { r as m } from "./figure-format-BVb7yFCA.js";
6
6
  import { a as h, i as g, o as _ } from "./scale-C2xgZyZN.js";
7
- import { i as te, l as ne, n as re, r as v, t as ie } from "./figure-frame-96zFqsWz.js";
7
+ import { i as te, l as ne, n as re, r as v, t as ie } from "./figure-frame-BHCNceS4.js";
8
8
  import { n as ae } from "./plot-width-D3hTycYX.js";
9
9
  import { t as y } from "./plot-axes-D5S9BnBa.js";
10
10
  import { c as b, f as x, r as S, u as C } from "./plot-marks-DgCtcd3L.js";
11
- import { n as w, r as T, t as E } from "./plot-surface-8-FZI94y.js";
11
+ import { n as w, r as T, t as E } from "./plot-surface-BSjoNIva.js";
12
12
  import { r as D } from "./path-BglsXpnO.js";
13
- import { t as O } from "./locate-Bcg3QcP4.js";
13
+ import { t as O } from "./locate-Dcq5ZZSk.js";
14
14
  import * as k from "@stylexjs/stylex";
15
15
  import { useEffect as A, useId as oe, useRef as j } from "react";
16
16
  import { Fragment as se, jsx as M, jsxs as N } from "react/jsx-runtime";
@@ -1,14 +1,14 @@
1
1
  import { A as e, E as t } from "./src-Bkov5TTa.js";
2
2
  import { t as n } from "./accessibility-P89UG9-r.js";
3
3
  import { n as r, t as i } from "./chart-tones-ei3BC2AL.js";
4
- import { A as a, D as o, E as s, M as c, O as l, S as u, T as d, c as f, j as p, x as m } from "./plot-layout-1MG72ZWn.js";
4
+ import { A as a, D as o, E as s, M as c, O as l, S as u, T as d, c as f, j as p, x as m } from "./plot-layout-CNNFMC8H.js";
5
5
  import { i as h } from "./chart-link-AE_xuxiP.js";
6
6
  import { a as g } from "./tone-scope-DKiSw-JR.js";
7
7
  import { r as _ } from "./figure-format-BVb7yFCA.js";
8
- import { i as v, l as y, n as b, r as x, t as S } from "./figure-frame-96zFqsWz.js";
8
+ import { i as v, l as y, n as b, r as x, t as S } from "./figure-frame-BHCNceS4.js";
9
9
  import { n as C, t as w } from "./plot-width-D3hTycYX.js";
10
10
  import { a as T, c as E, p as D, u as O } from "./plot-marks-DgCtcd3L.js";
11
- import { r as k } from "./plot-surface-8-FZI94y.js";
11
+ import { r as k } from "./plot-surface-BSjoNIva.js";
12
12
  import { t as A } from "./label-spacing-BncjePGb.js";
13
13
  import { i as ee } from "./path-BglsXpnO.js";
14
14
  import { m as j } from "./values-963L6n1m.js";
@@ -1,12 +1,12 @@
1
1
  import { t as e } from "./chart-tones-ei3BC2AL.js";
2
- import { A as t, E as n, M as r, S as i, j as a, s as o } from "./plot-layout-1MG72ZWn.js";
3
- import { i as s, n as c, t as l } from "./categorical-values-6Iz03F1i.js";
2
+ import { A as t, E as n, M as r, S as i, j as a, s as o } from "./plot-layout-CNNFMC8H.js";
3
+ import { i as s, n as c, t as l } from "./categorical-values-DwomVcSd.js";
4
4
  import { i as u } from "./chart-link-AE_xuxiP.js";
5
5
  import { a as d } from "./tone-scope-DKiSw-JR.js";
6
6
  import { r as f } from "./figure-format-BVb7yFCA.js";
7
- import { i as p, l as m, n as h, r as g, t as _ } from "./figure-frame-96zFqsWz.js";
7
+ import { i as p, l as m, n as h, r as g, t as _ } from "./figure-frame-BHCNceS4.js";
8
8
  import { n as v } from "./plot-width-D3hTycYX.js";
9
- import { n as y, r as b } from "./plot-surface-8-FZI94y.js";
9
+ import { n as y, r as b } from "./plot-surface-BSjoNIva.js";
10
10
  import * as x from "@stylexjs/stylex";
11
11
  import { useId as S } from "react";
12
12
  import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
@@ -1,17 +1,17 @@
1
1
  import { n as e, t } from "./chart-tones-ei3BC2AL.js";
2
- import { A as n, E as r, M as i, S as a, a as o, c as s, i as c, j as l, n as u, o as d } from "./plot-layout-1MG72ZWn.js";
2
+ import { A as n, E as r, M as i, S as a, a as o, c as s, i as c, j as l, n as u, o as d } from "./plot-layout-CNNFMC8H.js";
3
3
  import { i 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-BVb7yFCA.js";
6
6
  import { a as h, o as g } from "./scale-C2xgZyZN.js";
7
7
  import { t as _ } from "./chart-cursor-1mFd48Jc.js";
8
- import { i as v, l as y, n as b, r as x, t as S } from "./figure-frame-96zFqsWz.js";
8
+ import { i as v, l as y, n as b, r as x, t as S } from "./figure-frame-BHCNceS4.js";
9
9
  import { n as C, t as w } from "./plot-width-D3hTycYX.js";
10
10
  import { t as T } from "./plot-axes-D5S9BnBa.js";
11
11
  import { a as E, f as D, l as O, r as k, s as A } from "./plot-marks-DgCtcd3L.js";
12
- import { n as ee, r as j, t as te } from "./plot-surface-8-FZI94y.js";
12
+ import { n as ee, r as j, t as te } from "./plot-surface-BSjoNIva.js";
13
13
  import { r as ne } from "./path-BglsXpnO.js";
14
- import { t as M } from "./locate-Bcg3QcP4.js";
14
+ import { t as M } from "./locate-Dcq5ZZSk.js";
15
15
  import * as N from "@stylexjs/stylex";
16
16
  import { useId as re } from "react";
17
17
  import { Fragment as P, jsx as F, jsxs as I } from "react/jsx-runtime";
@@ -1,16 +1,16 @@
1
1
  import { E as e, c as t, m as n } from "./src-Bkov5TTa.js";
2
2
  import { n as r, t as i } from "./chart-tones-ei3BC2AL.js";
3
- import { A as a, E as o, M as s, S as c, f as l, j as u, l as d, s as f } from "./plot-layout-1MG72ZWn.js";
3
+ import { A as a, E as o, M as s, S as c, f as l, j as u, l as d, s as f } from "./plot-layout-CNNFMC8H.js";
4
4
  import { i as ee } from "./chart-link-AE_xuxiP.js";
5
5
  import { a as te } from "./tone-scope-DKiSw-JR.js";
6
6
  import { n as p, r as m } from "./figure-format-BVb7yFCA.js";
7
7
  import { a as h, o as ne, r as re } from "./scale-C2xgZyZN.js";
8
8
  import { t as ie } from "./chart-cursor-1mFd48Jc.js";
9
- import { i as ae, l as g, n as oe, r as se, t as _ } from "./figure-frame-96zFqsWz.js";
9
+ import { i as ae, l as g, n as oe, r as se, t as _ } from "./figure-frame-BHCNceS4.js";
10
10
  import { n as ce } from "./plot-width-D3hTycYX.js";
11
11
  import { t as le } from "./plot-axes-D5S9BnBa.js";
12
12
  import { a as v, c as ue, f as de, r as y } from "./plot-marks-DgCtcd3L.js";
13
- import { n as b, r as fe, t as pe } from "./plot-surface-8-FZI94y.js";
13
+ import { n as b, r as fe, t as pe } from "./plot-surface-BSjoNIva.js";
14
14
  import * as x from "@stylexjs/stylex";
15
15
  import { useId as me, useState as he } from "react";
16
16
  import { stackSpans as ge } from "@ui-sdk/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mechane-ai/elements",
3
- "version": "0.68.0",
3
+ "version": "0.69.0",
4
4
  "description": "Elements by Mechane — React components for applications, AI interfaces, and analytical graphics",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -61,7 +61,9 @@ Check 360 pixels wide, a tablet width and a wide desktop.
61
61
 
62
62
  - For recorded motion, seek forward and backward across a measured change. Check its exact tick, including on the
63
63
  keyboard. Drag during playback, leave the viewport and enable reduced motion while playing. The paused frame must stay
64
- readable and the controls must keep their place. Compare the same tick in the poster and the player.
64
+ readable and the controls must keep their place. Compare the same tick in the poster and the player. In Inspect,
65
+ select an actor by pointer and keyboard, scrub its metric history, reopen the shared view, and verify that all arms
66
+ share the camera.
65
67
 
66
68
  ## 5. Honest content
67
69
 
@@ -202,3 +202,13 @@ to play.
202
202
  pairs. Inspection shows the latest note at or before the selected tick. Use `isGuided` when adjacent prose already
203
203
  offers the named jumps. It keeps a pair side by side. Use `MotionScene` at explicit ticks for stills and movies and
204
204
  `motionSceneAt` for matching data. A position with `sampled: false` is an estimate.
205
+
206
+ The inspection view selects one actor by arm index and track ID. Pick a mark on the map, choose from the actor list, or
207
+ focus the map and use an arrow key followed by Enter. Zoom and follow keep comparison arms on one camera. Turning off
208
+ trails or regions changes presentation. An optional third note field gives an observed destination as `[x, y]`. The
209
+ dashed segment connects the selected actor to that destination.
210
+
211
+ Use `MotionFigure` with `view` and `onViewChange` when a host shares camera or selection state. A moment may supply
212
+ `view` to restore a measured actor, camera and metric when activated. The metric history shares the timeline rail and
213
+ preserves measured changes as steps. `readMotionLocation` and `writeMotionLocation` round-trip the selected tick and
214
+ inspection settings. Reuse `NativeMotionFigure` and its verified mapping when the same window has recorded footage.
@@ -1,11 +0,0 @@
1
- // packages/charts/src/plot/locate.ts
2
- function e({ marks: e, width: t, height: n, axis: r = "both" }) {
3
- return (i) => {
4
- let a = i.x / i.width * t, o = i.y / i.height * n, s = e.map((e) => {
5
- let t = r === "y" ? 0 : e.x - a, n = r === "x" ? 0 : e.y - o;
6
- return t * t + n * n;
7
- });
8
- return e[s.indexOf(Math.min(...s))]?.id;
9
- };
10
- }
11
- export { e as t };
@@ -1,101 +0,0 @@
1
- import { h as e } from "./plot-layout-1MG72ZWn.js";
2
- import { n as t } from "./plot-width-D3hTycYX.js";
3
- import { r as n } from "./path-BglsXpnO.js";
4
- import { c as r, l as i, n as a, p as o } from "./plot-marks-DgCtcd3L.js";
5
- import * as s from "@stylexjs/stylex";
6
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
7
- // packages/charts/src/plot/spatial-layer.tsx
8
- function u({ label: u, bounds: d, regions: f, points: p, tone: m, shape: h, selected: g, origin: _, locale: v, isDense: y, isCompact: b = !1 }) {
9
- let [x, S, C, w] = d, T = b ? 246 : 480, E = Math.min(440, Math.max(140, Math.round((T - 72) * (w - S) / (C - x) + 44))), D = new Intl.NumberFormat(v, { maximumSignificantDigits: 6 }), O = Math.min((T - 72) / (C - x), (E - 44) / (w - S));
10
- function k(e) {
11
- return T / 2 + (e - (x + C) / 2) * O;
12
- }
13
- function A(e) {
14
- return E / 2 + (e - (S + w) / 2) * O;
15
- }
16
- return /* @__PURE__ */ l("svg", {
17
- role: "img",
18
- "aria-label": u,
19
- width: T,
20
- height: E,
21
- viewBox: `0 0 ${T} ${E}`,
22
- className: "x1lliihq xh8yej3 xt7dq6l xpvm0e4 xb3r6kr",
23
- children: [
24
- e([x, C], b ? 3 : 5).map((e) => /* @__PURE__ */ l("g", { children: [/* @__PURE__ */ c("line", {
25
- x1: k(e),
26
- x2: k(e),
27
- y1: A(S),
28
- y2: A(w),
29
- ...s.props(t.grid)
30
- }), /* @__PURE__ */ c(r, {
31
- x: k(e),
32
- y: A(w) + 16,
33
- anchor: "middle",
34
- children: D.format(e)
35
- })] }, e)),
36
- e([S, w], Math.max(2, Math.floor(E / 60))).map((e) => /* @__PURE__ */ l("g", { children: [/* @__PURE__ */ c(r, {
37
- x: k(x) - 6,
38
- y: A(e) + 4,
39
- anchor: "end",
40
- children: D.format(e)
41
- }), /* @__PURE__ */ c("line", {
42
- x1: k(x),
43
- x2: k(C),
44
- y1: A(e),
45
- y2: A(e),
46
- ...s.props(t.grid)
47
- })] }, e)),
48
- f.map((e) => {
49
- let [t, n, o, s] = e.bounds, u = `M${k(t)},${A(n)}H${k(o)}V${A(s)}H${k(t)}Z`;
50
- return /* @__PURE__ */ l("g", { children: [
51
- /* @__PURE__ */ c(a, {
52
- d: u,
53
- tone: m
54
- }),
55
- /* @__PURE__ */ c(i, {
56
- d: u,
57
- tone: m,
58
- stroke: "dashed"
59
- }),
60
- /* @__PURE__ */ c(r, {
61
- x: k(t),
62
- y: A(n) - 6,
63
- children: e.label
64
- })
65
- ] }, JSON.stringify(e));
66
- }),
67
- _ !== void 0 && /* @__PURE__ */ l("g", { children: [/* @__PURE__ */ c(o, {
68
- shape: h,
69
- x: k(_.x),
70
- y: A(_.y),
71
- tone: m,
72
- radius: 7,
73
- isHollow: !0
74
- }), /* @__PURE__ */ c(r, {
75
- x: k(_.x),
76
- y: A(_.y) - 13,
77
- anchor: "middle",
78
- children: _.label
79
- })] }),
80
- p.map((e) => e.trail.length < 2 ? null : /* @__PURE__ */ c(i, {
81
- d: n(e.trail.map(([e, t]) => ({
82
- x: k(e),
83
- y: A(t)
84
- }))),
85
- tone: m,
86
- emphasis: e.id === g ? "normal" : "receded"
87
- }, e.id)),
88
- p.map((e) => /* @__PURE__ */ c(o, {
89
- mark: e.id,
90
- x: k(e.x),
91
- y: A(e.y),
92
- tone: m,
93
- shape: h,
94
- radius: y ? 2.5 : 5,
95
- isSelected: e.id === g,
96
- emphasis: g != null && g !== e.id ? "receded" : "normal"
97
- }, e.id))
98
- ]
99
- });
100
- }
101
- export { u as t };