@mechane-ai/elements 0.68.0 → 0.69.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 (72) 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 +82 -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/charts/src/timeline/event-strip.d.ts +3 -3
  37. package/dist/packages/content/src/timeline-scrubber.d.ts +3 -1
  38. package/dist/packages/kits/src/research/index.d.ts +8 -1
  39. package/dist/packages/kits/src/research/motion-clip.d.ts +1 -39
  40. package/dist/packages/kits/src/research/motion-figure.d.ts +4 -1
  41. package/dist/packages/kits/src/research/motion-frame.d.ts +3 -3
  42. package/dist/packages/kits/src/research/motion-inspection.d.ts +14 -0
  43. package/dist/packages/kits/src/research/motion-location.d.ts +9 -0
  44. package/dist/packages/kits/src/research/motion-scene.d.ts +9 -2
  45. package/dist/packages/kits/src/research/motion-types.d.ts +54 -0
  46. package/dist/packages/kits/src/research/motion-view.d.ts +9 -0
  47. package/dist/packages/kits/src/research/native-motion-figure.d.ts +17 -0
  48. package/dist/packages/kits/src/research/native-motion.d.ts +18 -0
  49. package/dist/plot-BIYlgY2B.js +223 -0
  50. package/dist/{plot-layout-1MG72ZWn.js → plot-layout-CNNFMC8H.js} +1 -1
  51. package/dist/{plot-surface-8-FZI94y.js → plot-surface-BSjoNIva.js} +1 -1
  52. package/dist/{reference-lines-C18o1yEY.js → reference-lines-Bet_hRyA.js} +1 -1
  53. package/dist/{scene-B8dppj5V.js → scene-C88Xkz4l.js} +4 -4
  54. package/dist/scene.js +1 -1
  55. package/dist/{slope-chart-CELflRJd.js → slope-chart-B6Mtcta2.js} +5 -5
  56. package/dist/{src-BsqbWDxS.js → src-DCozYUGI.js} +146 -131
  57. package/dist/styles2.css +4 -4
  58. package/dist/{time-series-DtAtGoT_.js → time-series-DJk-2Mt0.js} +6 -6
  59. package/dist/{timeline-CzianQir.js → timeline-BHpj7i7K.js} +3 -3
  60. package/dist/{token-heatmap-m6oaMwkK.js → token-heatmap-DEqEaoGE.js} +2 -2
  61. package/dist/{token-predictions-CpGVjOIs.js → token-predictions-Bjdh0K-A.js} +4 -4
  62. package/dist/{tree-diagram-D9ekymCQ.js → tree-diagram-BxSDOBFj.js} +3 -3
  63. package/dist/{treemap-DT8q65LQ.js → treemap-DzHAp4ia.js} +4 -4
  64. package/dist/{violin-plot-83HSjnQM.js → violin-plot-B4Cf38Y9.js} +4 -4
  65. package/dist/{waterfall-DmApvdrY.js → waterfall-CNDkDS6T.js} +84 -80
  66. package/package.json +1 -1
  67. package/recipes/research-history.tsx +51 -0
  68. package/skills/review-elements/SKILL.md +3 -1
  69. package/skills/use-elements/SKILL.md +4 -0
  70. package/skills/use-elements/references/kits.md +10 -0
  71. package/dist/locate-Bcg3QcP4.js +0 -11
  72. package/dist/plot-CpTwLIYN.js +0 -101
@@ -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 };