@mechane-ai/elements 0.65.0 → 0.68.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 (129) hide show
  1. package/README.md +21 -10
  2. package/dist/ai.js +288 -205
  3. package/dist/{article-BrUa4Wz1.js → article-Ni152e-v.js} +107 -92
  4. package/dist/article.js +1 -1
  5. package/dist/catalog.json +151 -34
  6. package/dist/{categorical-values-AXJkMt-Y.js → categorical-values-6Iz03F1i.js} +1 -1
  7. package/dist/{cells-X8SVrZBc.js → cells-BRI8LpMU.js} +1 -1
  8. package/dist/charts/cartesian.js +1 -1
  9. package/dist/charts/cells.js +1 -1
  10. package/dist/charts/comparison.js +1 -1
  11. package/dist/charts/distribution.js +1 -1
  12. package/dist/charts/figure.js +12 -12
  13. package/dist/charts/graph.js +1 -1
  14. package/dist/charts/hierarchy.js +1 -1
  15. package/dist/charts/image.js +1 -1
  16. package/dist/charts/matrix.js +2 -2
  17. package/dist/charts/plot.js +16 -15
  18. package/dist/charts/relationship.js +1 -1
  19. package/dist/charts/text.js +1 -1
  20. package/dist/charts/timeline.js +2 -2
  21. package/dist/charts/trend.js +1 -1
  22. package/dist/charts.js +3 -3
  23. package/dist/{code-block-BDRmjlES.js → code-block-DbW_t9U4.js} +1 -1
  24. package/dist/collections.js +1 -1
  25. package/dist/{color-legend-CIo7DhXB.js → color-legend-4As8881l.js} +1 -1
  26. package/dist/{commands-rzsDElrG.js → commands-C7Zrp-tG.js} +2 -2
  27. package/dist/content/code.js +1 -1
  28. package/dist/content/diff.js +3 -3
  29. package/dist/content/link.js +1 -1
  30. package/dist/content/markdown.js +1 -1
  31. package/dist/content/tree.js +2 -2
  32. package/dist/{content-link-DRaNf1mD.js → content-link-BN4NPp0u.js} +1 -1
  33. package/dist/content.js +1 -1
  34. package/dist/{dates-wu-gKO2C.js → dates-OTq-xU33.js} +2 -2
  35. package/dist/{dumbbell-plot-VFajQtEW.js → dumbbell-plot-jaQvOctJ.js} +4 -4
  36. package/dist/{embedding-map-BqDEmy88.js → embedding-map-DnZL1kvY.js} +8 -8
  37. package/dist/feedback.js +1 -1
  38. package/dist/figure-format-BVb7yFCA.js +46 -0
  39. package/dist/{figure-frame-Dd-pOeZN.js → figure-frame-96zFqsWz.js} +22 -21
  40. package/dist/forms/dates.js +1 -1
  41. package/dist/{forms-Bjx7JQ30.js → forms-iAOjGRTO.js} +1 -1
  42. package/dist/forms.js +2 -2
  43. package/dist/{image-grid-Dpyqxgwy.js → image-grid-B6fdmE9c.js} +4 -4
  44. package/dist/index.js +1 -1
  45. package/dist/kits/evaluation.js +15 -15
  46. package/dist/kits/interpretability.js +49 -45
  47. package/dist/kits/operations.js +81 -80
  48. package/dist/kits/research.js +776 -499
  49. package/dist/kits/training.js +108 -107
  50. package/dist/layout.js +1 -1
  51. package/dist/lesson.js +3 -3
  52. package/dist/markdown-JeuBeMDZ.js +293 -0
  53. package/dist/mdx.js +6 -6
  54. package/dist/navigation/commands.js +1 -1
  55. package/dist/{navigation-Cp3p0gss.js → navigation-CTnYtVD8.js} +1 -1
  56. package/dist/navigation.js +3 -3
  57. package/dist/packages/ai/src/index.d.ts +2 -0
  58. package/dist/packages/ai/src/message-reactions.d.ts +51 -0
  59. package/dist/packages/ai/src/message.d.ts +3 -1
  60. package/dist/packages/charts/src/plot/index.d.ts +2 -0
  61. package/dist/packages/charts/src/plot/plot-layout.d.ts +2 -2
  62. package/dist/packages/charts/src/plot/spatial-layer.d.ts +32 -0
  63. package/dist/packages/charts/src/plot/ticks.d.ts +2 -2
  64. package/dist/packages/collections/src/card-columns-model.d.ts +50 -0
  65. package/dist/packages/collections/src/card-columns.d.ts +30 -0
  66. package/dist/packages/collections/src/collection-page.d.ts +43 -0
  67. package/dist/packages/collections/src/column-card.d.ts +15 -0
  68. package/dist/packages/collections/src/data-table-layout.d.ts +2 -0
  69. package/dist/packages/collections/src/data-table-rows.d.ts +4 -3
  70. package/dist/packages/collections/src/data-table.d.ts +2 -2
  71. package/dist/packages/collections/src/index.d.ts +5 -0
  72. package/dist/packages/collections/src/table-query.d.ts +9 -1
  73. package/dist/packages/feedback/src/feedback.d.ts +0 -4
  74. package/dist/packages/feedback/src/index.d.ts +1 -1
  75. package/dist/packages/foundations/src/visible-motion.d.ts +1 -1
  76. package/dist/packages/kits/src/research/index.d.ts +7 -2
  77. package/dist/packages/kits/src/research/motion-clip.d.ts +41 -0
  78. package/dist/packages/kits/src/research/motion-error.d.ts +8 -0
  79. package/dist/packages/kits/src/research/motion-figure.d.ts +9 -0
  80. package/dist/packages/kits/src/research/motion-frame.d.ts +22 -0
  81. package/dist/packages/kits/src/research/motion-scene.d.ts +22 -0
  82. package/dist/packages/teaching/src/article/uncover.d.ts +2 -0
  83. package/dist/{param-CwT1RvUS.js → param-Dk92C-K1.js} +2 -2
  84. package/dist/{pierre-diff-DuvK3kLF.js → pierre-diff-DXVIwW7o.js} +1 -1
  85. package/dist/plot-CpTwLIYN.js +101 -0
  86. package/dist/{plot-layout-CvkeUuG6.js → plot-layout-1MG72ZWn.js} +175 -124
  87. package/dist/{plot-surface-yy37R4vs.js → plot-surface-8-FZI94y.js} +1 -1
  88. package/dist/{reference-lines-AMeDkYlo.js → reference-lines-C18o1yEY.js} +1 -1
  89. package/dist/{scene-BRhI8XSy.js → scene-B8dppj5V.js} +7 -7
  90. package/dist/scene.js +1 -1
  91. package/dist/{slope-chart-BMOCaa8R.js → slope-chart-CELflRJd.js} +5 -5
  92. package/dist/{src-9n2M1V_y.js → src-BCAelv4f.js} +3 -3
  93. package/dist/{src-BgmAkau8.js → src-Bkov5TTa.js} +171 -164
  94. package/dist/{src-Bns-5joF.js → src-BsqbWDxS.js} +4 -4
  95. package/dist/{src-BdyO4PgQ.js → src-CIyuaSCi.js} +101 -107
  96. package/dist/{src-Tu6d_Pm8.js → src-Dc1t1ugL.js} +958 -585
  97. package/dist/{src-C5SH3jjU.js → src-DceyVyL0.js} +2 -2
  98. package/dist/{src-C_E29-DX.js → src-Dlh99sPD.js} +1 -1
  99. package/dist/styles2.css +33 -1
  100. package/dist/{time-series-CTNVqoUQ.js → time-series-DtAtGoT_.js} +9 -9
  101. package/dist/{timeline-DrsDtEIW.js → timeline-CzianQir.js} +5 -5
  102. package/dist/{token-heatmap-DddArdH8.js → token-heatmap-m6oaMwkK.js} +274 -289
  103. package/dist/{token-predictions-CBykmPID.js → token-predictions-CpGVjOIs.js} +4 -4
  104. package/dist/{transport-r1QgELf8.js → transport-DQ1yzsQl.js} +5 -5
  105. package/dist/{tree-diagram-BIJFK4pl.js → tree-diagram-D9ekymCQ.js} +5 -5
  106. package/dist/{treemap-DgmEw_mr.js → treemap-DT8q65LQ.js} +5 -5
  107. package/dist/{use-tween-BWf44Jy4.js → use-tween-DbXVZBR8.js} +1 -1
  108. package/dist/{violin-plot-BYJnv6sG.js → violin-plot-83HSjnQM.js} +4 -4
  109. package/dist/visible-motion-D6NwjGNz.js +24 -0
  110. package/dist/{waterfall-BNseqMas.js → waterfall-DmApvdrY.js} +5 -5
  111. package/package.json +1 -1
  112. package/recipes/recorded-motion.tsx +14 -0
  113. package/recipes/searchable-collection.tsx +74 -76
  114. package/skills/extend-elements/SKILL.md +2 -1
  115. package/skills/review-elements/SKILL.md +15 -7
  116. package/skills/review-explainer/SKILL.md +4 -0
  117. package/skills/upgrade-elements/SKILL.md +3 -1
  118. package/skills/upgrade-elements/references/releases.md +20 -0
  119. package/skills/use-elements/SKILL.md +10 -6
  120. package/skills/use-elements/references/collections.md +59 -12
  121. package/skills/use-elements/references/conversations.md +32 -0
  122. package/skills/use-elements/references/editorial-restraint.md +17 -29
  123. package/skills/use-elements/references/figures.md +6 -2
  124. package/skills/use-elements/references/kits.md +23 -0
  125. package/skills/use-elements/references/workspace.md +5 -5
  126. package/skills/write-explainer/SKILL.md +5 -0
  127. package/dist/figure-format-B8kRZMlo.js +0 -36
  128. package/dist/markdown--nfaDoR1.js +0 -313
  129. package/dist/packages/kits/src/research/collection-page.d.ts +0 -71
@@ -2,12 +2,12 @@ import type { ReactNode } from 'react';
2
2
  import type { DataTableColumnLayout } from './data-table-layout.tsx';
3
3
  import type { TableRowsProps } from './data-table-rows.tsx';
4
4
  import type { LocalTableQuery, TableQuery } from './table-query.tsx';
5
- export type DataTablePlaceholderProps = Pick<DataTableProps<object>, 'caption' | 'hideCaption' | 'hideHeaders' | 'rowSizing' | 'window' | 'footer'> & {
5
+ export type DataTablePlaceholderProps = Pick<DataTableProps<object>, 'caption' | 'hideCaption' | 'hideHeaders' | 'rowSizing' | 'window' | 'footer' | 'pagination'> & {
6
6
  readonly columns: ReadonlyArray<DataTableColumnLayout & {
7
7
  readonly shouldTruncate?: boolean;
8
- readonly placeholder?: ReactNode;
9
8
  }>;
10
9
  readonly rows?: number;
10
+ readonly hasSelectionColumn?: boolean;
11
11
  };
12
12
  export declare function DataTablePlaceholder({ columns, rows, hideCaption, ...props }: DataTablePlaceholderProps): ReactNode;
13
13
  export type DataTableProps<Row> = TableRowsProps<Row> & ({
@@ -1,3 +1,5 @@
1
+ export type { CollectionPageProps, CollectionRead, CollectionSectionProps } from './collection-page.tsx';
2
+ export { CollectionPage, CollectionSection } from './collection-page.tsx';
1
3
  export type { CollectionToolbarProps, FilterChip, FilterChipsProps, FilterRemoveDetails, DisplayOption, DisplayOptionsProps, CollectionPaginationProps, } from './collection-controls.tsx';
2
4
  export { CollectionToolbar, FilterChips, DisplayOptions, CollectionPagination } from './collection-controls.tsx';
3
5
  export type { DataTableColumn, DataTableColumnLayout, DataTableColumnRole } from './data-table-layout.tsx';
@@ -7,6 +9,9 @@ export { DataTableText, DataTableTextPlaceholder } from './data-table-text.tsx';
7
9
  export type { DataTableRowAction } from './data-table-trigger.tsx';
8
10
  export type { DataTablePlaceholderProps, DataTableProps } from './data-table.tsx';
9
11
  export { DataTable, DataTablePlaceholder } from './data-table.tsx';
12
+ export type { CardColumn, CardColumnsLabels, CardColumnsStatus, CardMoveDetails, CardSummary, } from './card-columns-model.ts';
13
+ export type { CardColumnsProps } from './card-columns.tsx';
14
+ export { CardColumns } from './card-columns.tsx';
10
15
  export type { CollectionEndProps, CollectionScrollProps } from './collection-scroll.tsx';
11
16
  export { CollectionEnd, CollectionScroll } from './collection-scroll.tsx';
12
17
  export type { InspectorProps } from './inspector.tsx';
@@ -1,6 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { CollectionFilter } from './collection-filters.tsx';
3
3
  import type { CollectionSearch } from './query-controls.tsx';
4
+ import type { CollectionControlsProps } from './use-collection-controls.tsx';
4
5
  export type TableQueryException = {
5
6
  readonly reason: string;
6
7
  };
@@ -16,8 +17,10 @@ export type LocalTableQuery<Row> = {
16
17
  readonly search: ((row: Row) => string) | TableQueryException;
17
18
  readonly filters: TableFilterDimensions<TableFilterDimension<Row>>;
18
19
  };
19
- type ControlledTableQuery = {
20
+ export type ControlledTableQuery = {
20
21
  readonly mode: 'controlled';
22
+ /** Other active routing constraints the reader can remove from this collection. */
23
+ readonly chips?: CollectionControlsProps['chips'];
21
24
  readonly search: CollectionSearch | TableQueryException;
22
25
  readonly filters: TableFilterDimensions<CollectionFilter>;
23
26
  };
@@ -60,6 +63,11 @@ export declare function useFrameTableQuery(): boolean;
60
63
  export declare function controlledTableControls(query: ControlledTableQuery): {
61
64
  search: CollectionSearch | undefined;
62
65
  filters: never[] | readonly [CollectionFilter, ...CollectionFilter[]];
66
+ chips?: readonly {
67
+ readonly id: string;
68
+ readonly label: string;
69
+ readonly onRemove: (details: import("./collection-controls.tsx").FilterRemoveDetails) => void;
70
+ }[];
63
71
  isFiltered: boolean;
64
72
  };
65
73
  export {};
@@ -3,9 +3,5 @@ type EmptyStateProps = Omit<ComponentProps<'div'>, 'title'> & {
3
3
  readonly title: string;
4
4
  readonly action?: ReactNode;
5
5
  };
6
- type NoticeProps = ComponentProps<'div'> & {
7
- readonly hasError?: boolean;
8
- };
9
6
  export declare function EmptyState({ title, children, action, ...props }: EmptyStateProps): ReactNode;
10
- export declare function Notice({ hasError, ...props }: NoticeProps): ReactNode;
11
7
  export {};
@@ -1,4 +1,4 @@
1
- export { EmptyState, Notice } from './feedback.tsx';
1
+ export { EmptyState } from './feedback.tsx';
2
2
  export type { ButtonPlaceholderProps, FieldPlaceholderProps } from './control-placeholders.tsx';
3
3
  export { ButtonPlaceholder, FieldPlaceholder } from './control-placeholders.tsx';
4
4
  export type { ProgressProps, MeterProps } from './progress.tsx';
@@ -1,4 +1,4 @@
1
- export declare function useVisibleMotion(isEnabled: boolean): {
1
+ export declare function useVisibleMotion(isEnabled: boolean, isUserPlayback?: boolean): {
2
2
  ref: import("react").RefObject<HTMLDivElement | null>;
3
3
  isActive: boolean;
4
4
  };
@@ -1,5 +1,3 @@
1
- export type { CollectionPageProps, CollectionScope, CollectionSectionProps, CollectionStatus, } from './collection-page.tsx';
2
- export { CollectionPage, CollectionSection } from './collection-page.tsx';
3
1
  export type { FindingCardLabels, FindingCardProps, FindingMetric, FindingSource, FindingStatus, } from './finding-card.tsx';
4
2
  export { FindingCard } from './finding-card.tsx';
5
3
  export type { LineageGraphLabels, LineageGraphProps, LineageNode, LineageNodeKind } from './lineage-graph.tsx';
@@ -10,3 +8,10 @@ export type { SpecimenDiffLabels, SpecimenDiffProps, SpecimenDiffRow, SpecimenFi
10
8
  export { SpecimenDiff } from './specimen-diff.tsx';
11
9
  export type { WorkHeartbeatLabels, WorkHeartbeatProps, WorkHeartbeatState, WorkProgress, WorkReportItem, } from './work-heartbeat.tsx';
12
10
  export { WorkHeartbeat } from './work-heartbeat.tsx';
11
+ export type { MotionClip, MotionArm, MotionMoment, MotionPoint, MotionBounds, MotionTrack } from './motion-clip.ts';
12
+ export { parseMotionClip } from './motion-clip.ts';
13
+ export { motionSceneAt } from './motion-frame.ts';
14
+ export type { MotionLabels, MotionSceneProps } from './motion-scene.tsx';
15
+ export { MotionScene } from './motion-scene.tsx';
16
+ export type { MotionFigureProps } from './motion-figure.tsx';
17
+ export { MotionFigure } from './motion-figure.tsx';
@@ -0,0 +1,41 @@
1
+ export type MotionBounds = readonly [number, number, number, number];
2
+ export type MotionPoint = readonly [tick: number, horizontal: number, vertical: number];
3
+ export type MotionTrack = {
4
+ readonly id: string;
5
+ readonly label: string;
6
+ readonly points: ReadonlyArray<MotionPoint>;
7
+ readonly end: number;
8
+ readonly notes?: ReadonlyArray<readonly [number, string]>;
9
+ };
10
+ export type MotionArm = {
11
+ readonly label: string;
12
+ readonly tracks: ReadonlyArray<MotionTrack>;
13
+ readonly regions?: ReadonlyArray<{
14
+ readonly label: string;
15
+ readonly bounds: MotionBounds;
16
+ }>;
17
+ readonly metrics?: ReadonlyArray<{
18
+ readonly label: string;
19
+ readonly values: ReadonlyArray<readonly [number, number]>;
20
+ }>;
21
+ };
22
+ export type MotionMoment = {
23
+ readonly id: string;
24
+ readonly label: string;
25
+ readonly tick: number;
26
+ readonly detail?: string;
27
+ };
28
+ export type MotionClip = {
29
+ readonly version: 1;
30
+ readonly title: string;
31
+ readonly first: number;
32
+ readonly last: number;
33
+ readonly hz: number;
34
+ readonly speed: number;
35
+ readonly bounds: MotionBounds;
36
+ readonly arms: ReadonlyArray<MotionArm>;
37
+ readonly moments: ReadonlyArray<MotionMoment>;
38
+ readonly source?: unknown;
39
+ };
40
+ /** Decode JSON once per clip. Hosts limit bytes before parsing, including opaque provenance. */
41
+ export declare function parseMotionClip(input: unknown): MotionClip;
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from 'react';
2
+ export declare function invalidMotion(reason: string): never;
3
+ export declare function InvalidTick({ title, locale, first, last, }: {
4
+ readonly title: string;
5
+ readonly locale: string;
6
+ readonly first: number;
7
+ readonly last: number;
8
+ }): ReactNode;
@@ -0,0 +1,9 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { MotionSceneProps } from './motion-scene.tsx';
3
+ export type MotionFigureProps = MotionSceneProps & {
4
+ readonly onTickChange: (tick: number) => void;
5
+ readonly isPlaying?: boolean;
6
+ readonly onPlayingChange?: (isPlaying: boolean) => void;
7
+ };
8
+ /** Play only on request. Pause on every seek and when the reader enables reduced motion. */
9
+ export declare function MotionFigure({ clip, tick, onTickChange, isPlaying: controlled, onPlayingChange, isInspecting, isGuided, locale, labels: given, }: MotionFigureProps): ReactNode;
@@ -0,0 +1,22 @@
1
+ import type { MotionClip } from './motion-clip.ts';
2
+ /** A seek in either direction has the same result. Only positions interpolate, within a single observed segment. */
3
+ export declare function motionSceneAt(clip: MotionClip, tick: number): {
4
+ label: string;
5
+ regions: readonly {
6
+ readonly label: string;
7
+ readonly bounds: import("./motion-clip.ts").MotionBounds;
8
+ }[];
9
+ actors: {
10
+ x: number;
11
+ y: number;
12
+ sampled: boolean;
13
+ id: string;
14
+ label: string;
15
+ trail: (readonly [number, number])[];
16
+ note: readonly [number, string] | undefined;
17
+ }[];
18
+ metrics: {
19
+ label: string;
20
+ value: number | null;
21
+ }[];
22
+ }[];
@@ -0,0 +1,22 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { MotionClip } from './motion-clip.ts';
3
+ export type MotionLabels = {
4
+ readonly tick: string;
5
+ readonly start: string;
6
+ readonly moment: string;
7
+ readonly actor: string;
8
+ readonly sampled: string;
9
+ readonly interpolated: string;
10
+ readonly absent: string;
11
+ };
12
+ export declare const defaultMotionLabels: MotionLabels;
13
+ export type MotionSceneProps = {
14
+ readonly clip: MotionClip;
15
+ readonly tick: number;
16
+ readonly isInspecting?: boolean;
17
+ readonly isGuided?: boolean;
18
+ readonly locale?: string;
19
+ readonly labels?: Partial<MotionLabels>;
20
+ };
21
+ /** Draw one frame at an integer tick. Posters, movies and interactive playback share this rendering. */
22
+ export declare function MotionScene({ clip, tick, isInspecting, isGuided, locale, labels: given, }: MotionSceneProps): ReactNode;
@@ -0,0 +1,2 @@
1
+ /** Moves a covered target below a pinned figure or contents bar. */
2
+ export declare function uncover(pinned: HTMLElement, target: Element): void;
@@ -1,5 +1,5 @@
1
- import { d as e, m as t } from "./src-C5SH3jjU.js";
2
- import { r as n } from "./figure-format-B8kRZMlo.js";
1
+ import { d as e, m as t } from "./src-DceyVyL0.js";
2
+ import { r as n } from "./figure-format-BVb7yFCA.js";
3
3
  import { n as r, t as i } from "./clock-DSm5lkNE.js";
4
4
  import "@stylexjs/stylex";
5
5
  import { createParts as a } from "@ui-sdk/react/primitive";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./use-scroll-tab-index-Dxpdh4W7.js";
2
- import { n as t, r as n } from "./code-block-BDRmjlES.js";
2
+ import { n as t, r as n } from "./code-block-DbW_t9U4.js";
3
3
  import { t as r } from "./viewer-styles-DsFYri4K.js";
4
4
  import * as i from "@stylexjs/stylex";
5
5
  import { useCallback as a, useState as o } from "react";
@@ -0,0 +1,101 @@
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 };