@motionscript/charts 0.0.0-stage → 0.1.0-alpha.10

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 (158) hide show
  1. package/CHANGELOG.md +110 -0
  2. package/LICENSE +201 -0
  3. package/NOTICE +49 -0
  4. package/README.md +98 -3
  5. package/dist/bar-chart/bar-chart.d.ts +191 -0
  6. package/dist/bar-chart/bar-chart.d.ts.map +1 -0
  7. package/dist/bar-chart/bar-chart.js +431 -0
  8. package/dist/bar-chart/bar-chart.js.map +1 -0
  9. package/dist/bar-chart/category-axis.d.ts +71 -0
  10. package/dist/bar-chart/category-axis.d.ts.map +1 -0
  11. package/dist/bar-chart/category-axis.js +119 -0
  12. package/dist/bar-chart/category-axis.js.map +1 -0
  13. package/dist/bar-chart/chart-bars.d.ts +129 -0
  14. package/dist/bar-chart/chart-bars.d.ts.map +1 -0
  15. package/dist/bar-chart/chart-bars.js +181 -0
  16. package/dist/bar-chart/chart-bars.js.map +1 -0
  17. package/dist/bar-chart/index.d.ts +16 -0
  18. package/dist/bar-chart/index.d.ts.map +1 -0
  19. package/dist/bar-chart/index.js +12 -0
  20. package/dist/bar-chart/index.js.map +1 -0
  21. package/dist/bar-chart/shared.d.ts +146 -0
  22. package/dist/bar-chart/shared.d.ts.map +1 -0
  23. package/dist/bar-chart/shared.js +182 -0
  24. package/dist/bar-chart/shared.js.map +1 -0
  25. package/dist/browser/chunks/chunk-TJNHLQGV.js +2 -0
  26. package/dist/browser/chunks/chunk-TJNHLQGV.js.map +7 -0
  27. package/dist/browser/index.js +2 -0
  28. package/dist/browser/index.js.map +7 -0
  29. package/dist/browser/kit.js +2 -0
  30. package/dist/browser/kit.js.map +7 -0
  31. package/dist/browser/manifest.json +13 -0
  32. package/dist/engine.d.ts +29 -0
  33. package/dist/engine.d.ts.map +1 -0
  34. package/dist/engine.js +29 -0
  35. package/dist/engine.js.map +1 -0
  36. package/dist/index.d.ts +6 -0
  37. package/dist/index.d.ts.map +1 -0
  38. package/dist/index.js +6 -0
  39. package/dist/index.js.map +1 -0
  40. package/dist/kit/cartesian.d.ts +44 -0
  41. package/dist/kit/cartesian.d.ts.map +1 -0
  42. package/dist/kit/cartesian.js +59 -0
  43. package/dist/kit/cartesian.js.map +1 -0
  44. package/dist/kit/chart-border.d.ts +27 -0
  45. package/dist/kit/chart-border.d.ts.map +1 -0
  46. package/dist/kit/chart-border.js +28 -0
  47. package/dist/kit/chart-border.js.map +1 -0
  48. package/dist/kit/chart-canvas.d.ts +67 -0
  49. package/dist/kit/chart-canvas.d.ts.map +1 -0
  50. package/dist/kit/chart-canvas.js +68 -0
  51. package/dist/kit/chart-canvas.js.map +1 -0
  52. package/dist/kit/chart-legend.d.ts +164 -0
  53. package/dist/kit/chart-legend.d.ts.map +1 -0
  54. package/dist/kit/chart-legend.js +163 -0
  55. package/dist/kit/chart-legend.js.map +1 -0
  56. package/dist/kit/entries.d.ts +17 -0
  57. package/dist/kit/entries.d.ts.map +1 -0
  58. package/dist/kit/entries.js +19 -0
  59. package/dist/kit/entries.js.map +1 -0
  60. package/dist/kit/motion.d.ts +48 -0
  61. package/dist/kit/motion.d.ts.map +1 -0
  62. package/dist/kit/motion.js +63 -0
  63. package/dist/kit/motion.js.map +1 -0
  64. package/dist/kit/paints.d.ts +10 -0
  65. package/dist/kit/paints.d.ts.map +1 -0
  66. package/dist/kit/paints.js +12 -0
  67. package/dist/kit/paints.js.map +1 -0
  68. package/dist/kit/shared.d.ts +302 -0
  69. package/dist/kit/shared.d.ts.map +1 -0
  70. package/dist/kit/shared.js +496 -0
  71. package/dist/kit/shared.js.map +1 -0
  72. package/dist/kit/vertical-axis.d.ts +86 -0
  73. package/dist/kit/vertical-axis.d.ts.map +1 -0
  74. package/dist/kit/vertical-axis.js +141 -0
  75. package/dist/kit/vertical-axis.js.map +1 -0
  76. package/dist/line-chart/chart-line.d.ts +74 -0
  77. package/dist/line-chart/chart-line.d.ts.map +1 -0
  78. package/dist/line-chart/chart-line.js +135 -0
  79. package/dist/line-chart/chart-line.js.map +1 -0
  80. package/dist/line-chart/chart-region.d.ts +46 -0
  81. package/dist/line-chart/chart-region.d.ts.map +1 -0
  82. package/dist/line-chart/chart-region.js +67 -0
  83. package/dist/line-chart/chart-region.js.map +1 -0
  84. package/dist/line-chart/horizontal-axis.d.ts +79 -0
  85. package/dist/line-chart/horizontal-axis.d.ts.map +1 -0
  86. package/dist/line-chart/horizontal-axis.js +129 -0
  87. package/dist/line-chart/horizontal-axis.js.map +1 -0
  88. package/dist/line-chart/index.d.ts +22 -0
  89. package/dist/line-chart/index.d.ts.map +1 -0
  90. package/dist/line-chart/index.js +19 -0
  91. package/dist/line-chart/index.js.map +1 -0
  92. package/dist/line-chart/line-chart.d.ts +200 -0
  93. package/dist/line-chart/line-chart.d.ts.map +1 -0
  94. package/dist/line-chart/line-chart.js +473 -0
  95. package/dist/line-chart/line-chart.js.map +1 -0
  96. package/dist/line-chart/shared.d.ts +171 -0
  97. package/dist/line-chart/shared.d.ts.map +1 -0
  98. package/dist/line-chart/shared.js +285 -0
  99. package/dist/line-chart/shared.js.map +1 -0
  100. package/dist/line-chart/x-scale.d.ts +77 -0
  101. package/dist/line-chart/x-scale.d.ts.map +1 -0
  102. package/dist/line-chart/x-scale.js +313 -0
  103. package/dist/line-chart/x-scale.js.map +1 -0
  104. package/dist/nodes.d.ts +17 -0
  105. package/dist/nodes.d.ts.map +1 -0
  106. package/dist/nodes.js +18 -0
  107. package/dist/nodes.js.map +1 -0
  108. package/dist/pie-chart/index.d.ts +18 -0
  109. package/dist/pie-chart/index.d.ts.map +1 -0
  110. package/dist/pie-chart/index.js +14 -0
  111. package/dist/pie-chart/index.js.map +1 -0
  112. package/dist/pie-chart/pie-chart.d.ts +152 -0
  113. package/dist/pie-chart/pie-chart.d.ts.map +1 -0
  114. package/dist/pie-chart/pie-chart.js +222 -0
  115. package/dist/pie-chart/pie-chart.js.map +1 -0
  116. package/dist/pie-chart/pie-legend.d.ts +113 -0
  117. package/dist/pie-chart/pie-legend.d.ts.map +1 -0
  118. package/dist/pie-chart/pie-legend.js +117 -0
  119. package/dist/pie-chart/pie-legend.js.map +1 -0
  120. package/dist/pie-chart/pie-ring.d.ts +304 -0
  121. package/dist/pie-chart/pie-ring.d.ts.map +1 -0
  122. package/dist/pie-chart/pie-ring.js +680 -0
  123. package/dist/pie-chart/pie-ring.js.map +1 -0
  124. package/dist/pie-chart/shared.d.ts +216 -0
  125. package/dist/pie-chart/shared.d.ts.map +1 -0
  126. package/dist/pie-chart/shared.js +246 -0
  127. package/dist/pie-chart/shared.js.map +1 -0
  128. package/package.json +72 -3
  129. package/registry.json +23 -0
  130. package/src/bar-chart/bar-chart.ts +542 -0
  131. package/src/bar-chart/category-axis.ts +162 -0
  132. package/src/bar-chart/chart-bars.ts +287 -0
  133. package/src/bar-chart/index.ts +31 -0
  134. package/src/bar-chart/shared.ts +354 -0
  135. package/src/engine.ts +28 -0
  136. package/src/index.ts +5 -0
  137. package/src/kit/cartesian.ts +81 -0
  138. package/src/kit/chart-border.ts +50 -0
  139. package/src/kit/chart-canvas.ts +122 -0
  140. package/src/kit/chart-legend.ts +229 -0
  141. package/src/kit/entries.ts +20 -0
  142. package/src/kit/motion.ts +90 -0
  143. package/src/kit/paints.ts +15 -0
  144. package/src/kit/shared.ts +782 -0
  145. package/src/kit/vertical-axis.ts +194 -0
  146. package/src/line-chart/chart-line.ts +156 -0
  147. package/src/line-chart/chart-region.ts +90 -0
  148. package/src/line-chart/horizontal-axis.ts +151 -0
  149. package/src/line-chart/index.ts +39 -0
  150. package/src/line-chart/line-chart.ts +598 -0
  151. package/src/line-chart/shared.ts +473 -0
  152. package/src/line-chart/x-scale.ts +382 -0
  153. package/src/nodes.ts +18 -0
  154. package/src/pie-chart/index.ts +37 -0
  155. package/src/pie-chart/pie-chart.ts +296 -0
  156. package/src/pie-chart/pie-legend.ts +169 -0
  157. package/src/pie-chart/pie-ring.ts +848 -0
  158. package/src/pie-chart/sh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AK,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA;QAE7E,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;YACjB,MAAM,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,CAAA;YAC7B,KAAK,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,KAAK,CAAC;gBAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC,CAAA;QACzF,CAAC;QACD,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;YACjB,MAAM,IAAI,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,CAAC,CAAA;YAC5B,KAAK,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC;gBAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,GAAG,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;QACzF,CAAC;IACH,CAAC;CACF,CAAC,CAAA","sourcesContent":["import {\n Graphics2D,\n Types,\n component2d,\n fillOps,\n strokeOps,\n type Fill,\n type FillResolved,\n type NodeOf,\n // Named so this component's emitted type reaches `Node2D` through the sdk, not core.\n type Node2D as _Node2D,\n type Stroke,\n type StrokeResolved,\n} from \"@motionscript/sdk\"\n\nimport { fresh } from \"../kit/entries\"\nimport { loadPaints } from \"../kit/paints\"\nimport {\n DEFAULT_CHART_THEME,\n EMPTY_REGION_BOX,\n hasRegion,\n type RegionBox,\n} from \"./shared\"\n\n/**\n * The **region call-out** of a {@link LineChart}: a washed rectangle over the\n * plot with a dashed rule down each edge the author actually bounded. Sized and\n * positioned entirely from the pre-mapped `box` rather\n * than its own box — the region already carries the plot geometry.\n *\n * It draws only the *marking*; fading the series outside the region is\n * {@link ChartLine}'s job (it clips its own polyline against the same box), so\n * the two can't disagree about where the boundary is.\n *\n * Only bounded edges get a rule: a region given just an `x` range spans the full\n * plot height, so its top and bottom edges are the plot's own border, not a data\n * bound — drawing dashes there would assert a limit the author didn't set.\n */\nexport const ChartRegion = component2d({\n key: \"chartRegion\",\n state: {\n /** The highlighted slice, already resolved into this node's local pixel space (origin at centre, y-up) by the parent {@link LineChart}. A degenerate box draws nothing. */\n box: fresh<RegionBox>(() => EMPTY_REGION_BOX),\n /** Dashed rule marking each *bounded* edge of the box. */\n stroke: Types.custom<Stroke, StrokeResolved[]>(DEFAULT_CHART_THEME.region.stroke, { resolve: strokeOps.resolve, lerp: strokeOps.lerp }),\n /** Wash filling the box, under the series lines. */\n fill: Types.custom<Fill, FillResolved[]>(DEFAULT_CHART_THEME.region.fill, { resolve: fillOps.resolve, lerp: fillOps.lerp }),\n /** Reveal of the annotation in `[0, 1]`, driven by the chart's own `regionReveal` so the rules and the series' dimming move as one. */\n reveal: 0,\n },\n load: (loader, state) => loadPaints(loader, { fills: [state.fill], strokes: [state.stroke] }),\n render: (ctx, state) => {\n const box = state.box\n if (!hasRegion(box)) return\n\n const r = Math.max(0, Math.min(1, state.reveal))\n if (r <= 0) return\n\n const width = box.right - box.left\n const height = box.top - box.bottom\n const cx = (box.left + box.right) / 2\n const cy = (box.bottom + box.top) / 2\n\n // Wash first, so the rules sit over their own tint.\n if (state.fill.length > 0) {\n ctx.draw(new Graphics2D().rect({ x: cx, y: cy, width, height }).fill(state.fill).opacity(r))\n }\n\n // One rule per bounded edge, growing from the region's centre outward as\n // `reveal` climbs — the same \"trace it in\" beat as the series lines.\n if (state.stroke.length === 0) return\n\n // One `draw` per rule rather than four line ops under a single paint:\n // shapes chained before a `stroke()` are combined into one surface, and\n // stroking a union of disjoint open paths doesn't paint.\n const rule = (points: { x: number; y: number }[]) =>\n ctx.draw(new Graphics2D().line({ points }).stroke(state.stroke).opacity(r))\n\n if (box.xBounded) {\n const half = (height / 2) * r\n for (const x of [box.left, box.right]) rule([{ x, y: cy - half }, { x, y: cy + half }])\n }\n if (box.yBounded) {\n const half = (width / 2) * r\n for (const y of [box.bottom, box.top]) rule([{ x: cx - half, y }, { x: cx + half, y }])\n }\n },\n})\n\nexport type ChartRegion = NodeOf<typeof ChartRegion>\n"]}
@@ -0,0 +1,79 @@
1
+ import { type NodeOf, type Node2D } from "@motionscript/sdk";
2
+ import { type Arrival } from "../kit/motion.js";
3
+ import { type AxisConfig, type Range } from "../kit/shared.js";
4
+ /**
5
+ * The horizontal axis of a {@link LineChart}: a **row of {@link Text} nodes**,
6
+ * one per marker value, running left-to-right. Pure layout — the mirror of the
7
+ * kit's `VerticalAxis`, including its bound (not snapshotted) marker text and
8
+ * positions, and its landed resting state.
9
+ *
10
+ * Markers are always placed **by value** across the range, whatever they say:
11
+ * `2026-03` sits three months along, not three slots along. That is what keeps
12
+ * it distinct from a bar chart's bottom axis, which centres a caption on each
13
+ * slot and has no scale at all — the two only look alike. What the values are
14
+ * captioned *as* is the chart's to decide, in `captions`.
15
+ *
16
+ * `enter` staggers the markers in **left-to-right**: each starts lifted a
17
+ * little above its slot and transparent, then fades and slides down into place.
18
+ */
19
+ export declare const HorizontalAxis: import("@motionscript/sdk").Component<"horizontalAxis", import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
20
+ /** `[min, max]` of the horizontal scale the markers are positioned within. */
21
+ readonly range: import("@motionscript/sdk").Type<Range, Range, false>;
22
+ /** Tick values (in data units) to draw along the axis. */
23
+ readonly markers: import("@motionscript/sdk").Type<number[], number[], false>;
24
+ /**
25
+ * How each marker is captioned, one per entry of `markers` and in its order.
26
+ * Empty (the default), or short, captions a marker with its bare numeric
27
+ * reading; a chart whose x column names months or categories writes those.
28
+ */
29
+ readonly captions: import("@motionscript/sdk").Type<string[], string[], false>;
30
+ /** Marker/caption text style, grid stroke, and gutters — see {@link AxisConfig}. */
31
+ readonly axis: import("@motionscript/sdk").Type<AxisConfig, AxisConfig, false>;
32
+ /** Caption drawn centred in the gutter beneath the marker row; empty (the default) hides it. */
33
+ readonly label: "";
34
+ readonly arrivals: import("@motionscript/sdk").Type<Readonly<Record<string, Arrival>>, Readonly<Record<string, Arrival>>, false>;
35
+ }>, {
36
+ readonly enter: {
37
+ readonly stagger: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
38
+ readonly slide: import("@motionscript/sdk").Type<number, number, false>;
39
+ };
40
+ }, null, Node2D<import("@motionscript/core").Node2DProps>, import("@motionscript/sdk").CallProps<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
41
+ /** `[min, max]` of the horizontal scale the markers are positioned within. */
42
+ readonly range: import("@motionscript/sdk").Type<Range, Range, false>;
43
+ /** Tick values (in data units) to draw along the axis. */
44
+ readonly markers: import("@motionscript/sdk").Type<number[], number[], false>;
45
+ /**
46
+ * How each marker is captioned, one per entry of `markers` and in its order.
47
+ * Empty (the default), or short, captions a marker with its bare numeric
48
+ * reading; a chart whose x column names months or categories writes those.
49
+ */
50
+ readonly captions: import("@motionscript/sdk").Type<string[], string[], false>;
51
+ /** Marker/caption text style, grid stroke, and gutters — see {@link AxisConfig}. */
52
+ readonly axis: import("@motionscript/sdk").Type<AxisConfig, AxisConfig, false>;
53
+ /** Caption drawn centred in the gutter beneath the marker row; empty (the default) hides it. */
54
+ readonly label: "";
55
+ readonly arrivals: import("@motionscript/sdk").Type<Readonly<Record<string, Arrival>>, Readonly<Record<string, Arrival>>, false>;
56
+ }>, null, import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
57
+ /** `[min, max]` of the horizontal scale the markers are positioned within. */
58
+ readonly range: import("@motionscript/sdk").Type<Range, Range, false>;
59
+ /** Tick values (in data units) to draw along the axis. */
60
+ readonly markers: import("@motionscript/sdk").Type<number[], number[], false>;
61
+ /**
62
+ * How each marker is captioned, one per entry of `markers` and in its order.
63
+ * Empty (the default), or short, captions a marker with its bare numeric
64
+ * reading; a chart whose x column names months or categories writes those.
65
+ */
66
+ readonly captions: import("@motionscript/sdk").Type<string[], string[], false>;
67
+ /** Marker/caption text style, grid stroke, and gutters — see {@link AxisConfig}. */
68
+ readonly axis: import("@motionscript/sdk").Type<AxisConfig, AxisConfig, false>;
69
+ /** Caption drawn centred in the gutter beneath the marker row; empty (the default) hides it. */
70
+ readonly label: "";
71
+ readonly arrivals: import("@motionscript/sdk").Type<Readonly<Record<string, Arrival>>, Readonly<Record<string, Arrival>>, false>;
72
+ }>, {
73
+ readonly enter: {
74
+ readonly stagger: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
75
+ readonly slide: import("@motionscript/sdk").Type<number, number, false>;
76
+ };
77
+ }, Node2D<import("@motionscript/core").Node2DProps>>>>;
78
+ export type HorizontalAxis = NodeOf<typeof HorizontalAxis>;
79
+ //# sourceMappingURL=horizontal-axis.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"horizontal-axis.d.ts","sourceRoot":"","sources":["../../src/line-chart/horizontal-axis.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,MAAM,EACX,KAAK,MAAM,EACZ,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAA8D,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AACzG,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,KAAK,EACX,MAAM,eAAe,CAAC;AAMvB;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc;IAGvB,8EAA8E;;IAE9E,0DAA0D;;IAE1D;;;;OAIG;;IAEH,oFAAoF;;IAEpF,gGAAgG;;;;;;;;;IAZhG,8EAA8E;;IAE9E,0DAA0D;;IAE1D;;;;OAIG;;IAEH,oFAAoF;;IAEpF,gGAAgG;;;;IAZhG,8EAA8E;;IAE9E,0DAA0D;;IAE1D;;;;OAIG;;IAEH,oFAAoF;;IAEpF,gGAAgG;;;;;;;;sDA8FlG,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -0,0 +1,129 @@
1
+ import { Rect, Text, Types, component2d, insetsOps, textOps, } from "@motionscript/sdk";
2
+ import { asParts, fresh } from "../kit/entries.js";
3
+ import { armed, arrival, arrivalOf, arrivalsEntry, beats, frameEase } from "../kit/motion.js";
4
+ import { DEFAULT_X_AXIS, enterBudget, } from "../kit/shared.js";
5
+ import { markerCaption } from "../kit/vertical-axis.js";
6
+ /** How far a marker starts above its slot when it enters, in px. */
7
+ const SLIDE = 24;
8
+ /**
9
+ * The horizontal axis of a {@link LineChart}: a **row of {@link Text} nodes**,
10
+ * one per marker value, running left-to-right. Pure layout — the mirror of the
11
+ * kit's `VerticalAxis`, including its bound (not snapshotted) marker text and
12
+ * positions, and its landed resting state.
13
+ *
14
+ * Markers are always placed **by value** across the range, whatever they say:
15
+ * `2026-03` sits three months along, not three slots along. That is what keeps
16
+ * it distinct from a bar chart's bottom axis, which centres a caption on each
17
+ * slot and has no scale at all — the two only look alike. What the values are
18
+ * captioned *as* is the chart's to decide, in `captions`.
19
+ *
20
+ * `enter` staggers the markers in **left-to-right**: each starts lifted a
21
+ * little above its slot and transparent, then fades and slides down into place.
22
+ */
23
+ export const HorizontalAxis = component2d({
24
+ key: "horizontalAxis",
25
+ state: {
26
+ /** `[min, max]` of the horizontal scale the markers are positioned within. */
27
+ range: fresh(() => [0, 1]),
28
+ /** Tick values (in data units) to draw along the axis. */
29
+ markers: fresh(() => []),
30
+ /**
31
+ * How each marker is captioned, one per entry of `markers` and in its order.
32
+ * Empty (the default), or short, captions a marker with its bare numeric
33
+ * reading; a chart whose x column names months or categories writes those.
34
+ */
35
+ captions: fresh(() => []),
36
+ /** Marker/caption text style, grid stroke, and gutters — see {@link AxisConfig}. */
37
+ axis: Types.custom(DEFAULT_X_AXIS),
38
+ /** Caption drawn centred in the gutter beneath the marker row; empty (the default) hides it. */
39
+ label: "",
40
+ arrivals: arrivalsEntry(),
41
+ },
42
+ // A plain node filled its parent; one made of its markers would hug them.
43
+ defaults: { width: "fill", height: "fill" },
44
+ children: (state) => {
45
+ const tickPad = insetsOps.resolve(state.axis.tickPadding).top;
46
+ const titlePad = insetsOps.resolve(state.axis.titlePadding).top;
47
+ const column = [];
48
+ // The column's parent is the axis: its box is what the markers are placed in.
49
+ const box = () => column[0]?.parent?.layoutBounds ?? { width: 0, height: 0 };
50
+ /** The live tick values, left → right — re-read every frame, not snapshotted. */
51
+ const sorted = () => [...state.markers].sort((a, b) => a - b);
52
+ /** Tick `i`'s fraction across the live `range`, 0 at the left edge. */
53
+ const fracAt = (value) => {
54
+ if (value === undefined)
55
+ return 0;
56
+ const [min, max] = state.range;
57
+ return max <= min ? 0 : (value - min) / (max - min);
58
+ };
59
+ const markers = state.markers.map((_, i) => {
60
+ const marker = new Text({
61
+ ...textOps.styleProps(state.axis.labelStyle),
62
+ text: () => {
63
+ const value = sorted()[i];
64
+ return value === undefined ? "" : markerCaption(state, value);
65
+ },
66
+ x: () => {
67
+ const width = box().width;
68
+ const centred = (fracAt(sorted()[i]) - 0.5) * width;
69
+ // Held inside the axis's right edge, which is also the *chart's*: the
70
+ // last marker is centred on the last grid line, so half of `2026-06`
71
+ // — or of `3300` — would be drawn outside the node's box and outside
72
+ // the rectangle the editor draws around it. Only the right edge is
73
+ // held, because the left one has the vertical axis's whole gutter
74
+ // beyond it, and a marker overhanging into that is inside the chart.
75
+ const limit = width / 2 - marker.layoutBounds.width / 2;
76
+ return Math.min(centred, limit);
77
+ },
78
+ opacity: () => arrivalOf(state.arrivals, i).opacity,
79
+ y: () => arrivalOf(state.arrivals, i).shift,
80
+ });
81
+ return marker;
82
+ });
83
+ const children = [
84
+ new Rect({ width: "fill", height: "hug", padding: { top: tickPad }, children: markers }),
85
+ ];
86
+ if (state.label !== "") {
87
+ children.push(new Text({
88
+ ...textOps.styleProps(state.axis.titleStyle),
89
+ text: state.label,
90
+ opacity: () => arrivalOf(state.arrivals, "label").opacity,
91
+ y: () => arrivalOf(state.arrivals, "label").shift,
92
+ }));
93
+ }
94
+ column.push(new Rect({ flow: "vertical", gap: titlePad, height: "hug", width: "fill", children }));
95
+ return asParts(column);
96
+ },
97
+ commands: {
98
+ /**
99
+ * Stagger the markers in left to right, then slide the caption in after
100
+ * them. Its first frame arms them all: lifted by `slide` and transparent.
101
+ *
102
+ * The timeline's duration is the **whole** entrance — see
103
+ * `VerticalAxis.enter` and {@link enterBudget}.
104
+ */
105
+ enter: {
106
+ args: {
107
+ stagger: Types.custom(undefined),
108
+ slide: Types.number(SLIDE),
109
+ },
110
+ run: (timeline, state) => {
111
+ const { stagger, slide } = timeline.args;
112
+ const count = state.markers.length;
113
+ const captioned = state.label !== "";
114
+ const from = { opacity: 0, shift: slide };
115
+ const keys = [...state.markers.keys(), ...(captioned ? ["label"] : [])];
116
+ const arm = timeline.animate(() => ({ arrivals: armed(keys, from) }));
117
+ if (count === 0)
118
+ return arm;
119
+ const { step, per, caption } = enterBudget(timeline.duration, count, captioned, stagger);
120
+ const ease = frameEase(timeline);
121
+ // Left marker leads: the row is already left → right.
122
+ const markers = state.markers.map((_, i) => ({ at: i * step, duration: per, piece: arrival(timeline, i, from, ease) }));
123
+ const label = captioned ? [{ at: (count - 1) * step + per, duration: caption, piece: arrival(timeline, "label", from, ease) }] : [];
124
+ return timeline.together([arm, beats(timeline, [...markers, ...label])]);
125
+ },
126
+ },
127
+ },
128
+ });
129
+ //# sourceMappingURL=horizontal-axis.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"horizontal-axis.js","sourceRoot":"","sources":["../../src/line-chart/horizontal-axis.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,WAAW,EACX,SAAS,EACT,OAAO,GAGR,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,C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QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;gBACzF,MAAM,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;gBACjC,sDAAsD;gBACtD,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;gBACxH,MAAM,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBACpI,OAAO,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,GAAG,OAAO,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YAC3E,CAAC;SACF;KACF;CACF,CAAC,CAAC","sourcesContent":["import {\n Rect,\n Text,\n Types,\n component2d,\n insetsOps,\n textOps,\n type NodeOf,\n type Node2D,\n} from \"@motionscript/sdk\";\n\nimport { asParts, fresh } from \"../kit/entries\";\nimport { armed, arrival, arrivalOf, arrivalsEntry, beats, frameEase, type Arrival } from \"../kit/motion\";\nimport {\n DEFAULT_X_AXIS,\n enterBudget,\n type AxisConfig,\n type Range,\n} from \"../kit/shared\";\nimport { markerCaption } from \"../kit/vertical-axis\";\n\n/** How far a marker starts above its slot when it enters, in px. */\nconst SLIDE = 24;\n\n/**\n * The horizontal axis of a {@link LineChart}: a **row of {@link Text} nodes**,\n * one per marker value, running left-to-right. Pure layout — the mirror of the\n * kit's `VerticalAxis`, including its bound (not snapshotted) marker text and\n * positions, and its landed resting state.\n *\n * Markers are always placed **by value** across the range, whatever they say:\n * `2026-03` sits three months along, not three slots along. That is what keeps\n * it distinct from a bar chart's bottom axis, which centres a caption on each\n * slot and has no scale at all — the two only look alike. What the values are\n * captioned *as* is the chart's to decide, in `captions`.\n *\n * `enter` staggers the markers in **left-to-right**: each starts lifted a\n * little above its slot and transparent, then fades and slides down into place.\n */\nexport const HorizontalAxis = component2d({\n key: \"horizontalAxis\",\n state: {\n /** `[min, max]` of the horizontal scale the markers are positioned within. */\n range: fresh<Range>(() => [0, 1]),\n /** Tick values (in data units) to draw along the axis. */\n markers: fresh<number[]>(() => []),\n /**\n * How each marker is captioned, one per entry of `markers` and in its order.\n * Empty (the default), or short, captions a marker with its bare numeric\n * reading; a chart whose x column names months or categories writes those.\n */\n captions: fresh<string[]>(() => []),\n /** Marker/caption text style, grid stroke, and gutters — see {@link AxisConfig}. */\n axis: Types.custom<AxisConfig>(DEFAULT_X_AXIS),\n /** Caption drawn centred in the gutter beneath the marker row; empty (the default) hides it. */\n label: \"\",\n arrivals: arrivalsEntry(),\n },\n // A plain node filled its parent; one made of its markers would hug them.\n defaults: { width: \"fill\", height: \"fill\" },\n children: (state) => {\n const tickPad = insetsOps.resolve(state.axis.tickPadding).top;\n const titlePad = insetsOps.resolve(state.axis.titlePadding).top;\n\n const column: Node2D[] = [];\n // The column's parent is the axis: its box is what the markers are placed in.\n const box = () => (column[0]?.parent as Node2D | null | undefined)?.layoutBounds ?? { width: 0, height: 0 };\n /** The live tick values, left → right — re-read every frame, not snapshotted. */\n const sorted = () => [...state.markers].sort((a, b) => a - b);\n /** Tick `i`'s fraction across the live `range`, 0 at the left edge. */\n const fracAt = (value: number | undefined) => {\n if (value === undefined) return 0;\n const [min, max] = state.range;\n return max <= min ? 0 : (value - min) / (max - min);\n };\n\n const markers = state.markers.map((_, i) => {\n const marker: Node2D = new Text({\n ...textOps.styleProps(state.axis.labelStyle),\n text: () => {\n const value = sorted()[i];\n return value === undefined ? \"\" : markerCaption(state, value);\n },\n x: () => {\n const width = box().width;\n const centred = (fracAt(sorted()[i]) - 0.5) * width;\n // Held inside the axis's right edge, which is also the *chart's*: the\n // last marker is centred on the last grid line, so half of `2026-06`\n // — or of `3300` — would be drawn outside the node's box and outside\n // the rectangle the editor draws around it. Only the right edge is\n // held, because the left one has the vertical axis's whole gutter\n // beyond it, and a marker overhanging into that is inside the chart.\n const limit = width / 2 - marker.layoutBounds.width / 2;\n return Math.min(centred, limit);\n },\n opacity: () => arrivalOf(state.arrivals, i).opacity,\n y: () => arrivalOf(state.arrivals, i).shift,\n });\n return marker;\n });\n\n const children: Node2D[] = [\n new Rect({ width: \"fill\", height: \"hug\", padding: { top: tickPad }, children: markers }),\n ];\n if (state.label !== \"\") {\n children.push(\n new Text({\n ...textOps.styleProps(state.axis.titleStyle),\n text: state.label,\n opacity: () => arrivalOf(state.arrivals, \"label\").opacity,\n y: () => arrivalOf(state.arrivals, \"label\").shift,\n }),\n );\n }\n\n column.push(new Rect({ flow: \"vertical\", gap: titlePad, height: \"hug\", width: \"fill\", children }));\n return asParts(column);\n },\n commands: {\n /**\n * Stagger the markers in left to right, then slide the caption in after\n * them. Its first frame arms them all: lifted by `slide` and transparent.\n *\n * The timeline's duration is the **whole** entrance — see\n * `VerticalAxis.enter` and {@link enterBudget}.\n */\n enter: {\n args: {\n stagger: Types.custom<number | undefined>(undefined),\n slide: Types.number(SLIDE),\n },\n run: (timeline, state) => {\n const { stagger, slide } = timeline.args;\n const count = state.markers.length;\n const captioned = state.label !== \"\";\n const from: Arrival = { opacity: 0, shift: slide };\n const keys = [...state.markers.keys(), ...(captioned ? [\"label\"] : [])];\n const arm = timeline.animate(() => ({ arrivals: armed(keys, from) }));\n if (count === 0) return arm;\n const { step, per, caption } = enterBudget(timeline.duration, count, captioned, stagger);\n const ease = frameEase(timeline);\n // Left marker leads: the row is already left → right.\n const markers = state.markers.map((_, i) => ({ at: i * step, duration: per, piece: arrival(timeline, i, from, ease) }));\n const label = captioned ? [{ at: (count - 1) * step + per, duration: caption, piece: arrival(timeline, \"label\", from, ease) }] : [];\n return timeline.together([arm, beats(timeline, [...markers, ...label])]);\n },\n },\n },\n});\n\nexport type HorizontalAxis = NodeOf<typeof HorizontalAxis>;\n"]}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * The line chart: a cartesian plot with a traced polyline, spotlit regions and
3
+ * a staggered entrance.
4
+ *
5
+ * {@link LineChart} composes the parts below plus the shared ones in the kit
6
+ * (the plot panel, the value axis, the legend); each part is exported too, so
7
+ * another node type can reuse one on its own.
8
+ *
9
+ * These files are what a copy of the line chart takes (`registry.json`). Everything they reach for
10
+ * that is *not* here comes from the kit and stays a dependency — see
11
+ * `../engine.ts` for why that line is where it is.
12
+ */
13
+ export { LineChart, lineChartDomains } from "./line-chart.js";
14
+ export type { LineChartDomains, LineChartProps, LineChartValues } from "./line-chart.js";
15
+ export { ChartRegion } from "./chart-region.js";
16
+ export { ChartLine } from "./chart-line.js";
17
+ export { HorizontalAxis } from "./horizontal-axis.js";
18
+ export { DEFAULT_CHART_THEME, EMPTY_REGION_BOX, clipPolylineToBox, hasRegion, lerpChartTheme, resolveChartTheme, resolveRegionBox, resolveYScale, seriesPoints, yExtent, } from "./shared.js";
19
+ export type { ChartConfig, ChartTheme, LineSeries, PlotRegion, RegionBox, RegionConfig, } from "./shared.js";
20
+ export { formatInstant, parseInstant, resolveXScale } from "./x-scale.js";
21
+ export type { XScale, XScaleKind } from "./x-scale.js";
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/line-chart/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC1D,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AACrF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,OAAO,GACR,MAAM,UAAU,CAAA;AACjB,YAAY,EACV,WAAW,EACX,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,YAAY,GACb,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACtE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The line chart: a cartesian plot with a traced polyline, spotlit regions and
3
+ * a staggered entrance.
4
+ *
5
+ * {@link LineChart} composes the parts below plus the shared ones in the kit
6
+ * (the plot panel, the value axis, the legend); each part is exported too, so
7
+ * another node type can reuse one on its own.
8
+ *
9
+ * These files are what a copy of the line chart takes (`registry.json`). Everything they reach for
10
+ * that is *not* here comes from the kit and stays a dependency — see
11
+ * `../engine.ts` for why that line is where it is.
12
+ */
13
+ export { LineChart, lineChartDomains } from "./line-chart.js";
14
+ export { ChartRegion } from "./chart-region.js";
15
+ export { ChartLine } from "./chart-line.js";
16
+ export { HorizontalAxis } from "./horizontal-axis.js";
17
+ export { DEFAULT_CHART_THEME, EMPTY_REGION_BOX, clipPolylineToBox, hasRegion, lerpChartTheme, resolveChartTheme, resolveRegionBox, resolveYScale, seriesPoints, yExtent, } from "./shared.js";
18
+ export { formatInstant, parseInstant, resolveXScale } from "./x-scale.js";
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/line-chart/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,OAAO,GACR,MAAM,UAAU,CAAA;AASjB,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA","sourcesContent":["/**\n * The line chart: a cartesian plot with a traced polyline, spotlit regions and\n * a staggered entrance.\n *\n * {@link LineChart} composes the parts below plus the shared ones in the kit\n * (the plot panel, the value axis, the legend); each part is exported too, so\n * another node type can reuse one on its own.\n *\n * These files are what a copy of the line chart takes (`registry.json`). Everything they reach for\n * that is *not* here comes from the kit and stays a dependency — see\n * `../engine.ts` for why that line is where it is.\n */\nexport { LineChart, lineChartDomains } from \"./line-chart\"\nexport type { LineChartDomains, LineChartProps, LineChartValues } from \"./line-chart\"\nexport { ChartRegion } from \"./chart-region\"\nexport { ChartLine } from \"./chart-line\"\nexport { HorizontalAxis } from \"./horizontal-axis\"\nexport {\n DEFAULT_CHART_THEME,\n EMPTY_REGION_BOX,\n clipPolylineToBox,\n hasRegion,\n lerpChartTheme,\n resolveChartTheme,\n resolveRegionBox,\n resolveYScale,\n seriesPoints,\n yExtent,\n} from \"./shared\"\nexport type {\n ChartConfig,\n ChartTheme,\n LineSeries,\n PlotRegion,\n RegionBox,\n RegionConfig,\n} from \"./shared\"\nexport { formatInstant, parseInstant, resolveXScale } from \"./x-scale\"\nexport type { XScale, XScaleKind } from \"./x-scale\"\n"]}
@@ -0,0 +1,200 @@
1
+ import { type DataRecord, type NodeOf, type Node2D, type Node2DProps } from "@motionscript/sdk";
2
+ import { type AxisDomainConfig, type Range } from "../kit/shared.js";
3
+ import { type ChartConfig, type ChartTheme, type LineSeries, type PlotRegion } from "./shared.js";
4
+ export interface LineChartProps extends Node2DProps {
5
+ /** One row per sample — a plain record of field name to value. */
6
+ data: DataRecord[];
7
+ /**
8
+ * Key into each row for its x value, shared by every series. Named `xField`
9
+ * rather than `x` because every node already has an `x` — its position.
10
+ */
11
+ xField: string;
12
+ /** One polyline per entry: which field it plots, its legend `label`, its `fill`. */
13
+ series: LineSeries[];
14
+ /** X-axis data domain: caption, scale range, and tick placement. */
15
+ xAxis?: AxisDomainConfig;
16
+ /** Y-axis data domain: caption, scale range, and tick placement. */
17
+ yAxis?: AxisDomainConfig;
18
+ /**
19
+ * A slice of the plot to spotlight, in **data units**. Dashed rules mark the
20
+ * bounded edges and every series fades outside the box — see
21
+ * `spotlightRegion`, which animates the same thing. `null` (the default) is no
22
+ * region.
23
+ */
24
+ region?: PlotRegion | null;
25
+ /**
26
+ * The chart's visual theme — series palette, axis text/grid/gutters, plot
27
+ * panel paint, and legend styling. Every branch is optional and deep-merged
28
+ * onto {@link DEFAULT_CHART_THEME}, so pass only what you want to override.
29
+ */
30
+ theme?: ChartTheme;
31
+ /** Whether the legend row below the plot is drawn at all. */
32
+ showLegend?: boolean;
33
+ }
34
+ /** Both axes' domains with their ranges and ticks resolved. */
35
+ export interface LineChartDomains {
36
+ readonly x: AxisDomainConfig & {
37
+ readonly range: Range;
38
+ readonly ticks: number[];
39
+ };
40
+ readonly y: AxisDomainConfig & {
41
+ readonly range: Range;
42
+ readonly ticks: number[];
43
+ };
44
+ }
45
+ /** What a line chart plots, as its entries hold it. */
46
+ export interface LineChartValues {
47
+ readonly data: DataRecord[];
48
+ readonly xField: string;
49
+ readonly series: LineSeries[];
50
+ readonly xAxis: AxisDomainConfig;
51
+ readonly yAxis: AxisDomainConfig;
52
+ }
53
+ /** Both axes as a line chart draws them now, an auto range or tick row read back as itself. */
54
+ export declare function lineChartDomains(s: LineChartValues): LineChartDomains;
55
+ /**
56
+ * A multi-series line chart, composed from five independent parts rather than
57
+ * one monolithic draw:
58
+ *
59
+ * - {@link ChartCanvas} — the plot panel with a two-way grid, under everything.
60
+ * - {@link VerticalAxis} / {@link HorizontalAxis} — columns/rows of real text
61
+ * markers that stagger in, each carrying its own axis caption.
62
+ * - {@link ChartRegion} — the optional call-out marking a spotlit slice of the
63
+ * plot: dashed rules on its bounded edges, and every series faded outside it.
64
+ * - {@link ChartLine} (one per series) — the traced polylines over the canvas.
65
+ * - {@link ChartLegend} — a row of entries below the chart, one per series.
66
+ *
67
+ * Every part reads the chart's entries through bindings, and the lines, the
68
+ * region and the grid all map against the plot panel's own laid-out box, so
69
+ * points land exactly on their markers and the chart re-flows if its box
70
+ * changes.
71
+ *
72
+ * **Resting state is the finished chart**: an editor paints a node's Initial
73
+ * state on a paused canvas. `enter` arms every part on its first frame.
74
+ *
75
+ * Past the entrance, `showSeries`/`hideSeries`/`spotlightSeries` pick out a
76
+ * *series*, `spotlightRegion` marks a *slice of the plot* without changing the
77
+ * scale, and `zoomTo` rescales the axes so a slice fills the plot. A spotlit
78
+ * region resolves against the live scales, so it travels with a zoom. A `to` of
79
+ * an axis `range` or `ticks` tweens from the domain as drawn (see
80
+ * {@link lerpAxisEntry}), so an auto axis rescales continuously.
81
+ */
82
+ export declare const LineChart: import("@motionscript/sdk").Component<"lineChart", import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
83
+ readonly data: import("@motionscript/sdk").Type<DataRecord[], DataRecord[], false>;
84
+ readonly xField: "";
85
+ readonly series: import("@motionscript/sdk").Type<import("../index.js").ChartSeries[], import("../index.js").ChartSeries[], false>;
86
+ readonly xAxis: import("@motionscript/sdk").Type<AxisDomainConfig, AxisDomainConfig, false>;
87
+ readonly yAxis: import("@motionscript/sdk").Type<AxisDomainConfig, AxisDomainConfig, false>;
88
+ readonly theme: import("@motionscript/sdk").Type<ChartTheme, ChartConfig, false>;
89
+ /**
90
+ * The spotlit slice of the plot in data units, or `null` for none. The box
91
+ * snaps; the animation is {@link regionReveal} drawing the rules on.
92
+ */
93
+ readonly region: import("@motionscript/sdk").Type<PlotRegion | null, PlotRegion | null, false>;
94
+ /**
95
+ * How far the `region` call-out is drawn in, `[0, 1]`: the rules grow out and
96
+ * the wash fades up as it climbs, while every line's out-of-region stretch
97
+ * fades to the theme's `region.dimOpacity`.
98
+ */
99
+ readonly regionReveal: 0;
100
+ /** Read as the chart is built: the legend is a part the chart builds or doesn't. */
101
+ readonly showLegend: import("@motionscript/sdk").Type<boolean, boolean, false>;
102
+ /**
103
+ * The domain `zoomTo` first left, so `resetZoom` restores the chart as it
104
+ * stood, auto-derived ticks included. Cleared by `resetZoom`, so the next zoom
105
+ * remembers wherever the chart rests then.
106
+ */
107
+ readonly home: import("@motionscript/sdk").Type<LineChartDomains | null, LineChartDomains | null, false>;
108
+ }>, {
109
+ readonly enter: {};
110
+ readonly spotlightRegion: {
111
+ readonly region: import("@motionscript/sdk").Type<PlotRegion | undefined, PlotRegion | undefined, false>;
112
+ };
113
+ readonly clearRegion: {};
114
+ readonly zoomTo: {
115
+ readonly region: import("@motionscript/sdk").Type<PlotRegion | undefined, PlotRegion | undefined, false>;
116
+ };
117
+ readonly resetZoom: {};
118
+ readonly showSeries: {
119
+ readonly seriesIndex: import("@motionscript/sdk").Type<number, number, false>;
120
+ };
121
+ readonly hideSeries: {
122
+ readonly seriesIndex: import("@motionscript/sdk").Type<number, number, false>;
123
+ };
124
+ readonly spotlightSeries: {
125
+ readonly seriesIndex: import("@motionscript/sdk").Type<number, number, false>;
126
+ };
127
+ }, readonly [], Node2D<Node2DProps>, import("@motionscript/sdk").CallProps<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
128
+ readonly data: import("@motionscript/sdk").Type<DataRecord[], DataRecord[], false>;
129
+ readonly xField: "";
130
+ readonly series: import("@motionscript/sdk").Type<import("../index.js").ChartSeries[], import("../index.js").ChartSeries[], false>;
131
+ readonly xAxis: import("@motionscript/sdk").Type<AxisDomainConfig, AxisDomainConfig, false>;
132
+ readonly yAxis: import("@motionscript/sdk").Type<AxisDomainConfig, AxisDomainConfig, false>;
133
+ readonly theme: import("@motionscript/sdk").Type<ChartTheme, ChartConfig, false>;
134
+ /**
135
+ * The spotlit slice of the plot in data units, or `null` for none. The box
136
+ * snaps; the animation is {@link regionReveal} drawing the rules on.
137
+ */
138
+ readonly region: import("@motionscript/sdk").Type<PlotRegion | null, PlotRegion | null, false>;
139
+ /**
140
+ * How far the `region` call-out is drawn in, `[0, 1]`: the rules grow out and
141
+ * the wash fades up as it climbs, while every line's out-of-region stretch
142
+ * fades to the theme's `region.dimOpacity`.
143
+ */
144
+ readonly regionReveal: 0;
145
+ /** Read as the chart is built: the legend is a part the chart builds or doesn't. */
146
+ readonly showLegend: import("@motionscript/sdk").Type<boolean, boolean, false>;
147
+ /**
148
+ * The domain `zoomTo` first left, so `resetZoom` restores the chart as it
149
+ * stood, auto-derived ticks included. Cleared by `resetZoom`, so the next zoom
150
+ * remembers wherever the chart rests then.
151
+ */
152
+ readonly home: import("@motionscript/sdk").Type<LineChartDomains | null, LineChartDomains | null, false>;
153
+ }>, readonly [], import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
154
+ readonly data: import("@motionscript/sdk").Type<DataRecord[], DataRecord[], false>;
155
+ readonly xField: "";
156
+ readonly series: import("@motionscript/sdk").Type<import("../index.js").ChartSeries[], import("../index.js").ChartSeries[], false>;
157
+ readonly xAxis: import("@motionscript/sdk").Type<AxisDomainConfig, AxisDomainConfig, false>;
158
+ readonly yAxis: import("@motionscript/sdk").Type<AxisDomainConfig, AxisDomainConfig, false>;
159
+ readonly theme: import("@motionscript/sdk").Type<ChartTheme, ChartConfig, false>;
160
+ /**
161
+ * The spotlit slice of the plot in data units, or `null` for none. The box
162
+ * snaps; the animation is {@link regionReveal} drawing the rules on.
163
+ */
164
+ readonly region: import("@motionscript/sdk").Type<PlotRegion | null, PlotRegion | null, false>;
165
+ /**
166
+ * How far the `region` call-out is drawn in, `[0, 1]`: the rules grow out and
167
+ * the wash fades up as it climbs, while every line's out-of-region stretch
168
+ * fades to the theme's `region.dimOpacity`.
169
+ */
170
+ readonly regionReveal: 0;
171
+ /** Read as the chart is built: the legend is a part the chart builds or doesn't. */
172
+ readonly showLegend: import("@motionscript/sdk").Type<boolean, boolean, false>;
173
+ /**
174
+ * The domain `zoomTo` first left, so `resetZoom` restores the chart as it
175
+ * stood, auto-derived ticks included. Cleared by `resetZoom`, so the next zoom
176
+ * remembers wherever the chart rests then.
177
+ */
178
+ readonly home: import("@motionscript/sdk").Type<LineChartDomains | null, LineChartDomains | null, false>;
179
+ }>, {
180
+ readonly enter: {};
181
+ readonly spotlightRegion: {
182
+ readonly region: import("@motionscript/sdk").Type<PlotRegion | undefined, PlotRegion | undefined, false>;
183
+ };
184
+ readonly clearRegion: {};
185
+ readonly zoomTo: {
186
+ readonly region: import("@motionscript/sdk").Type<PlotRegion | undefined, PlotRegion | undefined, false>;
187
+ };
188
+ readonly resetZoom: {};
189
+ readonly showSeries: {
190
+ readonly seriesIndex: import("@motionscript/sdk").Type<number, number, false>;
191
+ };
192
+ readonly hideSeries: {
193
+ readonly seriesIndex: import("@motionscript/sdk").Type<number, number, false>;
194
+ };
195
+ readonly spotlightSeries: {
196
+ readonly seriesIndex: import("@motionscript/sdk").Type<number, number, false>;
197
+ };
198
+ }, Node2D<Node2DProps>>>>;
199
+ export type LineChart = NodeOf<typeof LineChart>;
200
+ //# sourceMappingURL=line-chart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"line-chart.d.ts","sourceRoot":"","sources":["../../src/line-chart/line-chart.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,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