@motionscript/charts 0.1.0 → 0.1.1-alpha.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 (215) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +98 -28
  3. package/dist/bar-chart/bar-chart.d.ts +242 -119
  4. package/dist/bar-chart/bar-chart.d.ts.map +1 -1
  5. package/dist/bar-chart/bar-chart.js +231 -260
  6. package/dist/bar-chart/bar-chart.js.map +1 -1
  7. package/dist/bar-chart/category-axis.d.ts +16 -38
  8. package/dist/bar-chart/category-axis.d.ts.map +1 -1
  9. package/dist/bar-chart/category-axis.js +59 -68
  10. package/dist/bar-chart/category-axis.js.map +1 -1
  11. package/dist/bar-chart/chart-bars.d.ts +60 -91
  12. package/dist/bar-chart/chart-bars.d.ts.map +1 -1
  13. package/dist/bar-chart/chart-bars.js +88 -125
  14. package/dist/bar-chart/chart-bars.js.map +1 -1
  15. package/dist/bar-chart/index.d.ts +5 -13
  16. package/dist/bar-chart/index.d.ts.map +1 -1
  17. package/dist/bar-chart/index.js +2 -9
  18. package/dist/bar-chart/index.js.map +1 -1
  19. package/dist/bar-chart/shared.d.ts +40 -132
  20. package/dist/bar-chart/shared.d.ts.map +1 -1
  21. package/dist/bar-chart/shared.js +70 -158
  22. package/dist/bar-chart/shared.js.map +1 -1
  23. package/dist/browser/chunks/chunk-R3Q5EE6E.js +2 -0
  24. package/dist/browser/chunks/chunk-R3Q5EE6E.js.map +7 -0
  25. package/dist/browser/index.js +1 -1
  26. package/dist/browser/index.js.map +4 -4
  27. package/dist/browser/kit.js +1 -1
  28. package/dist/browser/manifest.json +1 -1
  29. package/dist/engine.d.ts +8 -17
  30. package/dist/engine.d.ts.map +1 -1
  31. package/dist/engine.js +8 -17
  32. package/dist/engine.js.map +1 -1
  33. package/dist/index.d.ts +2 -0
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +2 -0
  36. package/dist/index.js.map +1 -1
  37. package/dist/kit/cartesian.d.ts +49 -35
  38. package/dist/kit/cartesian.d.ts.map +1 -1
  39. package/dist/kit/cartesian.js +80 -42
  40. package/dist/kit/cartesian.js.map +1 -1
  41. package/dist/kit/chart-canvas.d.ts +37 -40
  42. package/dist/kit/chart-canvas.d.ts.map +1 -1
  43. package/dist/kit/chart-canvas.js +53 -47
  44. package/dist/kit/chart-canvas.js.map +1 -1
  45. package/dist/kit/chart-legend.d.ts +16 -59
  46. package/dist/kit/chart-legend.d.ts.map +1 -1
  47. package/dist/kit/chart-legend.js +38 -76
  48. package/dist/kit/chart-legend.js.map +1 -1
  49. package/dist/kit/entries.d.ts +2 -0
  50. package/dist/kit/entries.d.ts.map +1 -1
  51. package/dist/kit/entries.js +2 -0
  52. package/dist/kit/entries.js.map +1 -1
  53. package/dist/kit/horizontal-axis.d.ts +77 -0
  54. package/dist/kit/horizontal-axis.d.ts.map +1 -0
  55. package/dist/kit/horizontal-axis.js +99 -0
  56. package/dist/kit/horizontal-axis.js.map +1 -0
  57. package/dist/kit/motion.d.ts +16 -3
  58. package/dist/kit/motion.d.ts.map +1 -1
  59. package/dist/kit/motion.js +15 -1
  60. package/dist/kit/motion.js.map +1 -1
  61. package/dist/{pie-chart → kit}/pie-legend.d.ts +14 -29
  62. package/dist/kit/pie-legend.d.ts.map +1 -0
  63. package/dist/kit/pie-legend.js +93 -0
  64. package/dist/kit/pie-legend.js.map +1 -0
  65. package/dist/kit/polar.d.ts +31 -0
  66. package/dist/kit/polar.d.ts.map +1 -0
  67. package/dist/kit/polar.js +33 -0
  68. package/dist/kit/polar.js.map +1 -0
  69. package/dist/kit/shared.d.ts +60 -214
  70. package/dist/kit/shared.d.ts.map +1 -1
  71. package/dist/kit/shared.js +91 -291
  72. package/dist/kit/shared.js.map +1 -1
  73. package/dist/kit/style.d.ts +254 -0
  74. package/dist/kit/style.d.ts.map +1 -0
  75. package/dist/kit/style.js +197 -0
  76. package/dist/kit/style.js.map +1 -0
  77. package/dist/kit/vertical-axis.d.ts +36 -45
  78. package/dist/kit/vertical-axis.d.ts.map +1 -1
  79. package/dist/kit/vertical-axis.js +69 -81
  80. package/dist/kit/vertical-axis.js.map +1 -1
  81. package/dist/line-chart/chart-line.d.ts +107 -40
  82. package/dist/line-chart/chart-line.d.ts.map +1 -1
  83. package/dist/line-chart/chart-line.js +172 -89
  84. package/dist/line-chart/chart-line.js.map +1 -1
  85. package/dist/line-chart/chart-region.d.ts +14 -27
  86. package/dist/line-chart/chart-region.d.ts.map +1 -1
  87. package/dist/line-chart/chart-region.js +13 -28
  88. package/dist/line-chart/chart-region.js.map +1 -1
  89. package/dist/line-chart/index.d.ts +5 -18
  90. package/dist/line-chart/index.d.ts.map +1 -1
  91. package/dist/line-chart/index.js +3 -16
  92. package/dist/line-chart/index.js.map +1 -1
  93. package/dist/line-chart/line-chart.d.ts +272 -119
  94. package/dist/line-chart/line-chart.d.ts.map +1 -1
  95. package/dist/line-chart/line-chart.js +309 -257
  96. package/dist/line-chart/line-chart.js.map +1 -1
  97. package/dist/line-chart/shared.d.ts +73 -130
  98. package/dist/line-chart/shared.d.ts.map +1 -1
  99. package/dist/line-chart/shared.js +195 -156
  100. package/dist/line-chart/shared.js.map +1 -1
  101. package/dist/line-chart/x-scale.d.ts +16 -55
  102. package/dist/line-chart/x-scale.d.ts.map +1 -1
  103. package/dist/line-chart/x-scale.js +44 -111
  104. package/dist/line-chart/x-scale.js.map +1 -1
  105. package/dist/nodes.d.ts +3 -13
  106. package/dist/nodes.d.ts.map +1 -1
  107. package/dist/nodes.js +9 -13
  108. package/dist/nodes.js.map +1 -1
  109. package/dist/pie-chart/index.d.ts +3 -15
  110. package/dist/pie-chart/index.d.ts.map +1 -1
  111. package/dist/pie-chart/index.js +1 -11
  112. package/dist/pie-chart/index.js.map +1 -1
  113. package/dist/pie-chart/pie-chart.d.ts +147 -85
  114. package/dist/pie-chart/pie-chart.d.ts.map +1 -1
  115. package/dist/pie-chart/pie-chart.js +65 -86
  116. package/dist/pie-chart/pie-chart.js.map +1 -1
  117. package/dist/pie-chart/pie-ring.d.ts +65 -196
  118. package/dist/pie-chart/pie-ring.d.ts.map +1 -1
  119. package/dist/pie-chart/pie-ring.js +154 -292
  120. package/dist/pie-chart/pie-ring.js.map +1 -1
  121. package/dist/pie-chart/shared.d.ts +78 -172
  122. package/dist/pie-chart/shared.d.ts.map +1 -1
  123. package/dist/pie-chart/shared.js +54 -177
  124. package/dist/pie-chart/shared.js.map +1 -1
  125. package/dist/radar-chart/index.d.ts +5 -0
  126. package/dist/radar-chart/index.d.ts.map +1 -0
  127. package/dist/radar-chart/index.js +5 -0
  128. package/dist/radar-chart/index.js.map +1 -0
  129. package/dist/radar-chart/radar-chart.d.ts +218 -0
  130. package/dist/radar-chart/radar-chart.d.ts.map +1 -0
  131. package/dist/radar-chart/radar-chart.js +224 -0
  132. package/dist/radar-chart/radar-chart.js.map +1 -0
  133. package/dist/radar-chart/radar-grid.d.ts +43 -0
  134. package/dist/radar-chart/radar-grid.d.ts.map +1 -0
  135. package/dist/radar-chart/radar-grid.js +61 -0
  136. package/dist/radar-chart/radar-grid.js.map +1 -0
  137. package/dist/radar-chart/radar-series.d.ts +59 -0
  138. package/dist/radar-chart/radar-series.d.ts.map +1 -0
  139. package/dist/radar-chart/radar-series.js +71 -0
  140. package/dist/radar-chart/radar-series.js.map +1 -0
  141. package/dist/radar-chart/shared.d.ts +73 -0
  142. package/dist/radar-chart/shared.d.ts.map +1 -0
  143. package/dist/radar-chart/shared.js +123 -0
  144. package/dist/radar-chart/shared.js.map +1 -0
  145. package/dist/radial-chart/index.d.ts +6 -0
  146. package/dist/radial-chart/index.d.ts.map +1 -0
  147. package/dist/radial-chart/index.js +4 -0
  148. package/dist/radial-chart/index.js.map +1 -0
  149. package/dist/radial-chart/radial-chart.d.ts +216 -0
  150. package/dist/radial-chart/radial-chart.d.ts.map +1 -0
  151. package/dist/radial-chart/radial-chart.js +174 -0
  152. package/dist/radial-chart/radial-chart.js.map +1 -0
  153. package/dist/radial-chart/radial-rings.d.ts +121 -0
  154. package/dist/radial-chart/radial-rings.d.ts.map +1 -0
  155. package/dist/radial-chart/radial-rings.js +273 -0
  156. package/dist/radial-chart/radial-rings.js.map +1 -0
  157. package/dist/radial-chart/shared.d.ts +73 -0
  158. package/dist/radial-chart/shared.d.ts.map +1 -0
  159. package/dist/radial-chart/shared.js +79 -0
  160. package/dist/radial-chart/shared.js.map +1 -0
  161. package/package.json +4 -4
  162. package/registry.json +21 -6
  163. package/src/bar-chart/bar-chart.ts +274 -315
  164. package/src/bar-chart/category-axis.ts +53 -88
  165. package/src/bar-chart/chart-bars.ts +108 -205
  166. package/src/bar-chart/index.ts +8 -19
  167. package/src/bar-chart/shared.ts +81 -309
  168. package/src/engine.ts +8 -17
  169. package/src/index.ts +2 -0
  170. package/src/kit/cartesian.ts +118 -55
  171. package/src/kit/chart-canvas.ts +50 -80
  172. package/src/kit/chart-legend.ts +36 -97
  173. package/src/kit/entries.ts +4 -1
  174. package/src/kit/horizontal-axis.ts +114 -0
  175. package/src/kit/motion.ts +18 -2
  176. package/src/{pie-chart → kit}/pie-legend.ts +25 -65
  177. package/src/kit/polar.ts +54 -0
  178. package/src/kit/shared.ts +104 -487
  179. package/src/kit/style.ts +257 -0
  180. package/src/kit/vertical-axis.ts +81 -115
  181. package/src/line-chart/chart-line.ts +185 -91
  182. package/src/line-chart/chart-region.ts +14 -31
  183. package/src/line-chart/index.ts +14 -22
  184. package/src/line-chart/line-chart.ts +377 -315
  185. package/src/line-chart/shared.ts +229 -304
  186. package/src/line-chart/x-scale.ts +44 -121
  187. package/src/nodes.ts +9 -13
  188. package/src/pie-chart/index.ts +3 -35
  189. package/src/pie-chart/pie-chart.ts +83 -134
  190. package/src/pie-chart/pie-ring.ts +162 -368
  191. package/src/pie-chart/shared.ts +92 -379
  192. package/src/radar-chart/index.ts +4 -0
  193. package/src/radar-chart/radar-chart.ts +287 -0
  194. package/src/radar-chart/radar-grid.ts +78 -0
  195. package/src/radar-chart/radar-series.ts +88 -0
  196. package/src/radar-chart/shared.ts +146 -0
  197. package/src/radial-chart/index.ts +5 -0
  198. package/src/radial-chart/radial-chart.ts +210 -0
  199. package/src/radial-chart/radial-rings.ts +328 -0
  200. package/src/radial-chart/shared.ts +114 -0
  201. package/dist/browser/chunks/chunk-TJNHLQGV.js +0 -2
  202. package/dist/browser/chunks/chunk-TJNHLQGV.js.map +0 -7
  203. package/dist/kit/chart-border.d.ts +0 -27
  204. package/dist/kit/chart-border.d.ts.map +0 -1
  205. package/dist/kit/chart-border.js +0 -28
  206. package/dist/kit/chart-border.js.map +0 -1
  207. package/dist/line-chart/horizontal-axis.d.ts +0 -79
  208. package/dist/line-chart/horizontal-axis.d.ts.map +0 -1
  209. package/dist/line-chart/horizontal-axis.js +0 -129
  210. package/dist/line-chart/horizontal-axis.js.map +0 -1
  211. package/dist/pie-chart/pie-legend.d.ts.map +0 -1
  212. package/dist/pie-chart/pie-legend.js +0 -117
  213. package/dist/pie-chart/pie-legend.js.map +0 -1
  214. package/src/kit/chart-border.ts +0 -50
  215. package/src/line-chart/horizontal-axis.ts +0 -151
@@ -1,19 +1,6 @@
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
1
  export { LineChart, lineChartDomains } from "./line-chart.js";
14
2
  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";
3
+ export { ChartArea, ChartLine, areaFill, traceX } from "./chart-line.js";
4
+ export { EMPTY_REGION_BOX, LINE_LABELS, LINE_MARKS, clipPolygonToBox, clipPolylineToBox, curvePoints, cutAt, hasRegion, resolveRegionBox, resolveYScale, seriesPoints, stackExtent, stackSeries, yExtent, } from "./shared.js";
5
+ export { EVERY_SAMPLE, formatInstant, parseInstant, resolveXScale } from "./x-scale.js";
19
6
  //# sourceMappingURL=index.js.map
@@ -1 +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"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/line-chart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrE,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,KAAK,EACL,SAAS,EAET,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,WAAW,EACX,OAAO,GACR,MAAM,UAAU,CAAA;AASjB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA","sourcesContent":["export { LineChart, lineChartDomains } from \"./line-chart\"\nexport type { LineChartDomains, LineChartStyle, LineChartValues } from \"./line-chart\"\nexport { ChartRegion } from \"./chart-region\"\nexport { ChartArea, ChartLine, areaFill, traceX } from \"./chart-line\"\nexport {\n EMPTY_REGION_BOX,\n LINE_LABELS,\n LINE_MARKS,\n clipPolygonToBox,\n clipPolylineToBox,\n curvePoints,\n cutAt,\n hasRegion,\n\n resolveRegionBox,\n resolveYScale,\n seriesPoints,\n stackExtent,\n stackSeries,\n yExtent,\n} from \"./shared\"\nexport type {\n LineCurve,\n LineSeries,\n LineStack,\n PlotRegion,\n RegionBox,\n StackedSeries,\n} from \"./shared\"\nexport { EVERY_SAMPLE, formatInstant, parseInstant, resolveXScale } from \"./x-scale\"\nexport type { XScale, XScaleKind } from \"./x-scale\"\n"]}
@@ -1,110 +1,168 @@
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
- }
1
+ import { type DataRecord, type NodeOf, type OutOf, type Node2D, type Node2DProps as _Node2DProps, type Fill as _Fill, type FillResolved as _FillResolved, type Stroke as _Stroke, type StrokeResolved as _StrokeResolved, type StyleInput as _StyleInput, type StyleValues as _StyleValues } from "@motionscript/sdk";
2
+ import { type AxisDomainConfig, type ResolvedAxisDomain } from "../kit/shared.js";
3
+ import { type LineSeries, type LineStack, type PlotRegion } from "./shared.js";
4
+ declare const LINE_STYLE: import("@motionscript/sdk").Type<_StyleInput<{
5
+ legend: import("@motionscript/sdk").Type<"right" | "top" | "bottom" | "none", "right" | "top" | "bottom" | "none", false>;
6
+ swatch: import("@motionscript/sdk").Type<"square" | "circle" | "line", "square" | "circle" | "line", false>;
7
+ } & {
8
+ horizontalGrid: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
9
+ verticalGrid: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
10
+ axisStroke: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
11
+ showXAxis: import("@motionscript/sdk").Type<boolean, boolean, false>;
12
+ showYAxis: import("@motionscript/sdk").Type<boolean, boolean, false>;
13
+ } & {
14
+ fontFamily: import("@motionscript/sdk").Type<string, string, false>;
15
+ fontSize: import("@motionscript/sdk").Type<number, number, false>;
16
+ fontWeight: import("@motionscript/sdk").Type<number, number, false>;
17
+ } & {
18
+ palette: import("@motionscript/sdk").Type<_Fill[], _FillResolved[][], false>;
19
+ foreground: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
20
+ muted: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
21
+ background: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
22
+ } & {
23
+ strokeWidth: import("@motionscript/sdk").Type<number, number, false>;
24
+ curve: import("@motionscript/sdk").Type<"step" | "linear" | "smooth", "step" | "linear" | "smooth", false>;
25
+ dots: import("@motionscript/sdk").Type<boolean, boolean, false>;
26
+ dotSize: import("@motionscript/sdk").Type<number, number, false>;
27
+ area: import("@motionscript/sdk").Type<"none" | "solid" | "gradient", "none" | "solid" | "gradient", false>;
28
+ areaOpacity: import("@motionscript/sdk").Type<number, number, false>;
29
+ } & {
30
+ values: import("@motionscript/sdk").Type<"none" | "above" | "below", "none" | "above" | "below", false>;
31
+ }>, _StyleValues<{
32
+ legend: import("@motionscript/sdk").Type<"right" | "top" | "bottom" | "none", "right" | "top" | "bottom" | "none", false>;
33
+ swatch: import("@motionscript/sdk").Type<"square" | "circle" | "line", "square" | "circle" | "line", false>;
34
+ } & {
35
+ horizontalGrid: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
36
+ verticalGrid: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
37
+ axisStroke: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
38
+ showXAxis: import("@motionscript/sdk").Type<boolean, boolean, false>;
39
+ showYAxis: import("@motionscript/sdk").Type<boolean, boolean, false>;
40
+ } & {
41
+ fontFamily: import("@motionscript/sdk").Type<string, string, false>;
42
+ fontSize: import("@motionscript/sdk").Type<number, number, false>;
43
+ fontWeight: import("@motionscript/sdk").Type<number, number, false>;
44
+ } & {
45
+ palette: import("@motionscript/sdk").Type<_Fill[], _FillResolved[][], false>;
46
+ foreground: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
47
+ muted: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
48
+ background: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
49
+ } & {
50
+ strokeWidth: import("@motionscript/sdk").Type<number, number, false>;
51
+ curve: import("@motionscript/sdk").Type<"step" | "linear" | "smooth", "step" | "linear" | "smooth", false>;
52
+ dots: import("@motionscript/sdk").Type<boolean, boolean, false>;
53
+ dotSize: import("@motionscript/sdk").Type<number, number, false>;
54
+ area: import("@motionscript/sdk").Type<"none" | "solid" | "gradient", "none" | "solid" | "gradient", false>;
55
+ areaOpacity: import("@motionscript/sdk").Type<number, number, false>;
56
+ } & {
57
+ values: import("@motionscript/sdk").Type<"none" | "above" | "below", "none" | "above" | "below", false>;
58
+ }>, false>;
59
+ /** A line chart's resolved style. */
60
+ export type LineChartStyle = OutOf<typeof LINE_STYLE>;
34
61
  /** Both axes' domains with their ranges and ticks resolved. */
35
62
  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
- };
63
+ readonly x: ResolvedAxisDomain;
64
+ readonly y: ResolvedAxisDomain;
44
65
  }
45
66
  /** What a line chart plots, as its entries hold it. */
46
67
  export interface LineChartValues {
47
68
  readonly data: DataRecord[];
48
69
  readonly xField: string;
49
70
  readonly series: LineSeries[];
71
+ readonly stack: LineStack;
50
72
  readonly xAxis: AxisDomainConfig;
51
73
  readonly yAxis: AxisDomainConfig;
74
+ /** Each series' share of a stack, `1` when missing. */
75
+ readonly weights?: readonly number[];
76
+ /** An area must reach its baseline, so a chart with areas keeps zero on the scale. */
77
+ readonly style?: {
78
+ readonly area: string;
79
+ };
52
80
  }
53
- /** Both axes as a line chart draws them now, an auto range or tick row read back as itself. */
81
+ /** Both axes as drawn now. */
54
82
  export declare function lineChartDomains(s: LineChartValues): LineChartDomains;
55
83
  /**
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.
84
+ * A multi-series line or area chart composed of {@link ChartCanvas}, the value
85
+ * and x axes, {@link ChartRegion}, a {@link ChartArea} and a {@link ChartLine}
86
+ * per series, and {@link ChartLegend}. Every part reads the chart's entries
87
+ * through bindings and maps against the plot panel's own laid-out box.
74
88
  *
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.
89
+ * Resting state is the finished chart; `enter` arms every part on its first
90
+ * frame. A `to` of an axis `range` or `ticks` tweens from the domain as drawn
91
+ * (see {@link lerpAxisEntry}), so an auto axis rescales continuously.
81
92
  */
82
93
  export declare const LineChart: import("@motionscript/sdk").Component<"lineChart", import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
83
94
  readonly data: import("@motionscript/sdk").Type<DataRecord[], DataRecord[], false>;
84
95
  readonly xField: "";
85
96
  readonly series: import("@motionscript/sdk").Type<import("../index.js").ChartSeries[], import("../index.js").ChartSeries[], false>;
97
+ /** `stacked`: each series sits on the sum of those before it; `percent`: every row reads as shares of 100. */
98
+ readonly stack: import("@motionscript/sdk").Type<"none" | "percent" | "stacked", "none" | "percent" | "stacked", false>;
86
99
  readonly xAxis: import("@motionscript/sdk").Type<AxisDomainConfig, AxisDomainConfig, false>;
87
100
  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
- */
101
+ readonly style: import("@motionscript/sdk").Type<_StyleInput<{
102
+ legend: import("@motionscript/sdk").Type<"right" | "top" | "bottom" | "none", "right" | "top" | "bottom" | "none", false>;
103
+ swatch: import("@motionscript/sdk").Type<"square" | "circle" | "line", "square" | "circle" | "line", false>;
104
+ } & {
105
+ horizontalGrid: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
106
+ verticalGrid: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
107
+ axisStroke: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
108
+ showXAxis: import("@motionscript/sdk").Type<boolean, boolean, false>;
109
+ showYAxis: import("@motionscript/sdk").Type<boolean, boolean, false>;
110
+ } & {
111
+ fontFamily: import("@motionscript/sdk").Type<string, string, false>;
112
+ fontSize: import("@motionscript/sdk").Type<number, number, false>;
113
+ fontWeight: import("@motionscript/sdk").Type<number, number, false>;
114
+ } & {
115
+ palette: import("@motionscript/sdk").Type<_Fill[], _FillResolved[][], false>;
116
+ foreground: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
117
+ muted: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
118
+ background: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
119
+ } & {
120
+ strokeWidth: import("@motionscript/sdk").Type<number, number, false>;
121
+ curve: import("@motionscript/sdk").Type<"step" | "linear" | "smooth", "step" | "linear" | "smooth", false>;
122
+ dots: import("@motionscript/sdk").Type<boolean, boolean, false>;
123
+ dotSize: import("@motionscript/sdk").Type<number, number, false>;
124
+ area: import("@motionscript/sdk").Type<"none" | "solid" | "gradient", "none" | "solid" | "gradient", false>;
125
+ areaOpacity: import("@motionscript/sdk").Type<number, number, false>;
126
+ } & {
127
+ values: import("@motionscript/sdk").Type<"none" | "above" | "below", "none" | "above" | "below", false>;
128
+ }>, _StyleValues<{
129
+ legend: import("@motionscript/sdk").Type<"right" | "top" | "bottom" | "none", "right" | "top" | "bottom" | "none", false>;
130
+ swatch: import("@motionscript/sdk").Type<"square" | "circle" | "line", "square" | "circle" | "line", false>;
131
+ } & {
132
+ horizontalGrid: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
133
+ verticalGrid: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
134
+ axisStroke: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
135
+ showXAxis: import("@motionscript/sdk").Type<boolean, boolean, false>;
136
+ showYAxis: import("@motionscript/sdk").Type<boolean, boolean, false>;
137
+ } & {
138
+ fontFamily: import("@motionscript/sdk").Type<string, string, false>;
139
+ fontSize: import("@motionscript/sdk").Type<number, number, false>;
140
+ fontWeight: import("@motionscript/sdk").Type<number, number, false>;
141
+ } & {
142
+ palette: import("@motionscript/sdk").Type<_Fill[], _FillResolved[][], false>;
143
+ foreground: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
144
+ muted: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
145
+ background: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
146
+ } & {
147
+ strokeWidth: import("@motionscript/sdk").Type<number, number, false>;
148
+ curve: import("@motionscript/sdk").Type<"step" | "linear" | "smooth", "step" | "linear" | "smooth", false>;
149
+ dots: import("@motionscript/sdk").Type<boolean, boolean, false>;
150
+ dotSize: import("@motionscript/sdk").Type<number, number, false>;
151
+ area: import("@motionscript/sdk").Type<"none" | "solid" | "gradient", "none" | "solid" | "gradient", false>;
152
+ areaOpacity: import("@motionscript/sdk").Type<number, number, false>;
153
+ } & {
154
+ values: import("@motionscript/sdk").Type<"none" | "above" | "below", "none" | "above" | "below", false>;
155
+ }>, false>;
156
+ /** The spotlit slice in data units, or `null`. The box snaps; {@link regionReveal} animates it. */
93
157
  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
- */
158
+ /** How far the `region` call-out is drawn in, `[0, 1]`: rules grow, wash fades up, out-of-region stretches fade. */
99
159
  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
- */
160
+ /** The domain `zoomTo` first left, so `resetZoom` restores it, auto-derived ticks included. */
107
161
  readonly home: import("@motionscript/sdk").Type<LineChartDomains | null, LineChartDomains | null, false>;
162
+ /** Each series' share of a stack, seeded from `enabled`: a weight rather than a switch, so a hidden series sinks out. */
163
+ readonly weights: import("@motionscript/sdk").Type<number[], number[], false>;
164
+ /** Whether the plot clips its marks, from a zoom's first frame until a reset lands. */
165
+ readonly clipped: import("@motionscript/sdk").Type<boolean, boolean, true>;
108
166
  }>, {
109
167
  readonly enter: {};
110
168
  readonly spotlightRegion: {
@@ -124,58 +182,152 @@ export declare const LineChart: import("@motionscript/sdk").Component<"lineChart
124
182
  readonly spotlightSeries: {
125
183
  readonly seriesIndex: import("@motionscript/sdk").Type<number, number, false>;
126
184
  };
127
- }, readonly [], Node2D<Node2DProps>, import("@motionscript/sdk").CallProps<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
185
+ }, readonly [], Node2D<_Node2DProps>, import("@motionscript/sdk").CallProps<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
128
186
  readonly data: import("@motionscript/sdk").Type<DataRecord[], DataRecord[], false>;
129
187
  readonly xField: "";
130
188
  readonly series: import("@motionscript/sdk").Type<import("../index.js").ChartSeries[], import("../index.js").ChartSeries[], false>;
189
+ /** `stacked`: each series sits on the sum of those before it; `percent`: every row reads as shares of 100. */
190
+ readonly stack: import("@motionscript/sdk").Type<"none" | "percent" | "stacked", "none" | "percent" | "stacked", false>;
131
191
  readonly xAxis: import("@motionscript/sdk").Type<AxisDomainConfig, AxisDomainConfig, false>;
132
192
  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
- */
193
+ readonly style: import("@motionscript/sdk").Type<_StyleInput<{
194
+ legend: import("@motionscript/sdk").Type<"right" | "top" | "bottom" | "none", "right" | "top" | "bottom" | "none", false>;
195
+ swatch: import("@motionscript/sdk").Type<"square" | "circle" | "line", "square" | "circle" | "line", false>;
196
+ } & {
197
+ horizontalGrid: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
198
+ verticalGrid: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
199
+ axisStroke: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
200
+ showXAxis: import("@motionscript/sdk").Type<boolean, boolean, false>;
201
+ showYAxis: import("@motionscript/sdk").Type<boolean, boolean, false>;
202
+ } & {
203
+ fontFamily: import("@motionscript/sdk").Type<string, string, false>;
204
+ fontSize: import("@motionscript/sdk").Type<number, number, false>;
205
+ fontWeight: import("@motionscript/sdk").Type<number, number, false>;
206
+ } & {
207
+ palette: import("@motionscript/sdk").Type<_Fill[], _FillResolved[][], false>;
208
+ foreground: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
209
+ muted: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
210
+ background: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
211
+ } & {
212
+ strokeWidth: import("@motionscript/sdk").Type<number, number, false>;
213
+ curve: import("@motionscript/sdk").Type<"step" | "linear" | "smooth", "step" | "linear" | "smooth", false>;
214
+ dots: import("@motionscript/sdk").Type<boolean, boolean, false>;
215
+ dotSize: import("@motionscript/sdk").Type<number, number, false>;
216
+ area: import("@motionscript/sdk").Type<"none" | "solid" | "gradient", "none" | "solid" | "gradient", false>;
217
+ areaOpacity: import("@motionscript/sdk").Type<number, number, false>;
218
+ } & {
219
+ values: import("@motionscript/sdk").Type<"none" | "above" | "below", "none" | "above" | "below", false>;
220
+ }>, _StyleValues<{
221
+ legend: import("@motionscript/sdk").Type<"right" | "top" | "bottom" | "none", "right" | "top" | "bottom" | "none", false>;
222
+ swatch: import("@motionscript/sdk").Type<"square" | "circle" | "line", "square" | "circle" | "line", false>;
223
+ } & {
224
+ horizontalGrid: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
225
+ verticalGrid: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
226
+ axisStroke: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
227
+ showXAxis: import("@motionscript/sdk").Type<boolean, boolean, false>;
228
+ showYAxis: import("@motionscript/sdk").Type<boolean, boolean, false>;
229
+ } & {
230
+ fontFamily: import("@motionscript/sdk").Type<string, string, false>;
231
+ fontSize: import("@motionscript/sdk").Type<number, number, false>;
232
+ fontWeight: import("@motionscript/sdk").Type<number, number, false>;
233
+ } & {
234
+ palette: import("@motionscript/sdk").Type<_Fill[], _FillResolved[][], false>;
235
+ foreground: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
236
+ muted: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
237
+ background: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
238
+ } & {
239
+ strokeWidth: import("@motionscript/sdk").Type<number, number, false>;
240
+ curve: import("@motionscript/sdk").Type<"step" | "linear" | "smooth", "step" | "linear" | "smooth", false>;
241
+ dots: import("@motionscript/sdk").Type<boolean, boolean, false>;
242
+ dotSize: import("@motionscript/sdk").Type<number, number, false>;
243
+ area: import("@motionscript/sdk").Type<"none" | "solid" | "gradient", "none" | "solid" | "gradient", false>;
244
+ areaOpacity: import("@motionscript/sdk").Type<number, number, false>;
245
+ } & {
246
+ values: import("@motionscript/sdk").Type<"none" | "above" | "below", "none" | "above" | "below", false>;
247
+ }>, false>;
248
+ /** The spotlit slice in data units, or `null`. The box snaps; {@link regionReveal} animates it. */
138
249
  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
- */
250
+ /** How far the `region` call-out is drawn in, `[0, 1]`: rules grow, wash fades up, out-of-region stretches fade. */
144
251
  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
- */
252
+ /** The domain `zoomTo` first left, so `resetZoom` restores it, auto-derived ticks included. */
152
253
  readonly home: import("@motionscript/sdk").Type<LineChartDomains | null, LineChartDomains | null, false>;
254
+ /** Each series' share of a stack, seeded from `enabled`: a weight rather than a switch, so a hidden series sinks out. */
255
+ readonly weights: import("@motionscript/sdk").Type<number[], number[], false>;
256
+ /** Whether the plot clips its marks, from a zoom's first frame until a reset lands. */
257
+ readonly clipped: import("@motionscript/sdk").Type<boolean, boolean, true>;
153
258
  }>, readonly [], import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
154
259
  readonly data: import("@motionscript/sdk").Type<DataRecord[], DataRecord[], false>;
155
260
  readonly xField: "";
156
261
  readonly series: import("@motionscript/sdk").Type<import("../index.js").ChartSeries[], import("../index.js").ChartSeries[], false>;
262
+ /** `stacked`: each series sits on the sum of those before it; `percent`: every row reads as shares of 100. */
263
+ readonly stack: import("@motionscript/sdk").Type<"none" | "percent" | "stacked", "none" | "percent" | "stacked", false>;
157
264
  readonly xAxis: import("@motionscript/sdk").Type<AxisDomainConfig, AxisDomainConfig, false>;
158
265
  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
- */
266
+ readonly style: import("@motionscript/sdk").Type<_StyleInput<{
267
+ legend: import("@motionscript/sdk").Type<"right" | "top" | "bottom" | "none", "right" | "top" | "bottom" | "none", false>;
268
+ swatch: import("@motionscript/sdk").Type<"square" | "circle" | "line", "square" | "circle" | "line", false>;
269
+ } & {
270
+ horizontalGrid: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
271
+ verticalGrid: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
272
+ axisStroke: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
273
+ showXAxis: import("@motionscript/sdk").Type<boolean, boolean, false>;
274
+ showYAxis: import("@motionscript/sdk").Type<boolean, boolean, false>;
275
+ } & {
276
+ fontFamily: import("@motionscript/sdk").Type<string, string, false>;
277
+ fontSize: import("@motionscript/sdk").Type<number, number, false>;
278
+ fontWeight: import("@motionscript/sdk").Type<number, number, false>;
279
+ } & {
280
+ palette: import("@motionscript/sdk").Type<_Fill[], _FillResolved[][], false>;
281
+ foreground: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
282
+ muted: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
283
+ background: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
284
+ } & {
285
+ strokeWidth: import("@motionscript/sdk").Type<number, number, false>;
286
+ curve: import("@motionscript/sdk").Type<"step" | "linear" | "smooth", "step" | "linear" | "smooth", false>;
287
+ dots: import("@motionscript/sdk").Type<boolean, boolean, false>;
288
+ dotSize: import("@motionscript/sdk").Type<number, number, false>;
289
+ area: import("@motionscript/sdk").Type<"none" | "solid" | "gradient", "none" | "solid" | "gradient", false>;
290
+ areaOpacity: import("@motionscript/sdk").Type<number, number, false>;
291
+ } & {
292
+ values: import("@motionscript/sdk").Type<"none" | "above" | "below", "none" | "above" | "below", false>;
293
+ }>, _StyleValues<{
294
+ legend: import("@motionscript/sdk").Type<"right" | "top" | "bottom" | "none", "right" | "top" | "bottom" | "none", false>;
295
+ swatch: import("@motionscript/sdk").Type<"square" | "circle" | "line", "square" | "circle" | "line", false>;
296
+ } & {
297
+ horizontalGrid: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
298
+ verticalGrid: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
299
+ axisStroke: import("@motionscript/sdk").Type<_Stroke, _StrokeResolved[], false>;
300
+ showXAxis: import("@motionscript/sdk").Type<boolean, boolean, false>;
301
+ showYAxis: import("@motionscript/sdk").Type<boolean, boolean, false>;
302
+ } & {
303
+ fontFamily: import("@motionscript/sdk").Type<string, string, false>;
304
+ fontSize: import("@motionscript/sdk").Type<number, number, false>;
305
+ fontWeight: import("@motionscript/sdk").Type<number, number, false>;
306
+ } & {
307
+ palette: import("@motionscript/sdk").Type<_Fill[], _FillResolved[][], false>;
308
+ foreground: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
309
+ muted: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
310
+ background: import("@motionscript/sdk").Type<_Fill, _FillResolved[], false>;
311
+ } & {
312
+ strokeWidth: import("@motionscript/sdk").Type<number, number, false>;
313
+ curve: import("@motionscript/sdk").Type<"step" | "linear" | "smooth", "step" | "linear" | "smooth", false>;
314
+ dots: import("@motionscript/sdk").Type<boolean, boolean, false>;
315
+ dotSize: import("@motionscript/sdk").Type<number, number, false>;
316
+ area: import("@motionscript/sdk").Type<"none" | "solid" | "gradient", "none" | "solid" | "gradient", false>;
317
+ areaOpacity: import("@motionscript/sdk").Type<number, number, false>;
318
+ } & {
319
+ values: import("@motionscript/sdk").Type<"none" | "above" | "below", "none" | "above" | "below", false>;
320
+ }>, false>;
321
+ /** The spotlit slice in data units, or `null`. The box snaps; {@link regionReveal} animates it. */
164
322
  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
- */
323
+ /** How far the `region` call-out is drawn in, `[0, 1]`: rules grow, wash fades up, out-of-region stretches fade. */
170
324
  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
- */
325
+ /** The domain `zoomTo` first left, so `resetZoom` restores it, auto-derived ticks included. */
178
326
  readonly home: import("@motionscript/sdk").Type<LineChartDomains | null, LineChartDomains | null, false>;
327
+ /** Each series' share of a stack, seeded from `enabled`: a weight rather than a switch, so a hidden series sinks out. */
328
+ readonly weights: import("@motionscript/sdk").Type<number[], number[], false>;
329
+ /** Whether the plot clips its marks, from a zoom's first frame until a reset lands. */
330
+ readonly clipped: import("@motionscript/sdk").Type<boolean, boolean, true>;
179
331
  }>, {
180
332
  readonly enter: {};
181
333
  readonly spotlightRegion: {
@@ -195,6 +347,7 @@ export declare const LineChart: import("@motionscript/sdk").Component<"lineChart
195
347
  readonly spotlightSeries: {
196
348
  readonly seriesIndex: import("@motionscript/sdk").Type<number, number, false>;
197
349
  };
198
- }, Node2D<Node2DProps>>>>;
350
+ }, Node2D<_Node2DProps>>>>;
199
351
  export type LineChart = NodeOf<typeof LineChart>;
352
+ export {};
200
353
  //# sourceMappingURL=line-chart.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"line-chart.d.ts","sourceRoot":"","sources":["../../src/line-chart/line-chart.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,UAAU,EAEf,KAAK,MAAM,EAEX,KAAK,MAAM,EACX,KAAK,WAAW,EAIjB,MAAM,mBAAmB,CAAA;AAU1B,OAAO,EAWL,KAAK,gBAAgB,EACrB,KA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