@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.
- package/CHANGELOG.md +38 -0
- package/README.md +98 -28
- package/dist/bar-chart/bar-chart.d.ts +242 -119
- package/dist/bar-chart/bar-chart.d.ts.map +1 -1
- package/dist/bar-chart/bar-chart.js +231 -260
- package/dist/bar-chart/bar-chart.js.map +1 -1
- package/dist/bar-chart/category-axis.d.ts +16 -38
- package/dist/bar-chart/category-axis.d.ts.map +1 -1
- package/dist/bar-chart/category-axis.js +59 -68
- package/dist/bar-chart/category-axis.js.map +1 -1
- package/dist/bar-chart/chart-bars.d.ts +60 -91
- package/dist/bar-chart/chart-bars.d.ts.map +1 -1
- package/dist/bar-chart/chart-bars.js +88 -125
- package/dist/bar-chart/chart-bars.js.map +1 -1
- package/dist/bar-chart/index.d.ts +5 -13
- package/dist/bar-chart/index.d.ts.map +1 -1
- package/dist/bar-chart/index.js +2 -9
- package/dist/bar-chart/index.js.map +1 -1
- package/dist/bar-chart/shared.d.ts +40 -132
- package/dist/bar-chart/shared.d.ts.map +1 -1
- package/dist/bar-chart/shared.js +70 -158
- package/dist/bar-chart/shared.js.map +1 -1
- package/dist/browser/chunks/chunk-R3Q5EE6E.js +2 -0
- package/dist/browser/chunks/chunk-R3Q5EE6E.js.map +7 -0
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +4 -4
- package/dist/browser/kit.js +1 -1
- package/dist/browser/manifest.json +1 -1
- package/dist/engine.d.ts +8 -17
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +8 -17
- package/dist/engine.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/kit/cartesian.d.ts +49 -35
- package/dist/kit/cartesian.d.ts.map +1 -1
- package/dist/kit/cartesian.js +80 -42
- package/dist/kit/cartesian.js.map +1 -1
- package/dist/kit/chart-canvas.d.ts +37 -40
- package/dist/kit/chart-canvas.d.ts.map +1 -1
- package/dist/kit/chart-canvas.js +53 -47
- package/dist/kit/chart-canvas.js.map +1 -1
- package/dist/kit/chart-legend.d.ts +16 -59
- package/dist/kit/chart-legend.d.ts.map +1 -1
- package/dist/kit/chart-legend.js +38 -76
- package/dist/kit/chart-legend.js.map +1 -1
- package/dist/kit/entries.d.ts +2 -0
- package/dist/kit/entries.d.ts.map +1 -1
- package/dist/kit/entries.js +2 -0
- package/dist/kit/entries.js.map +1 -1
- package/dist/kit/horizontal-axis.d.ts +77 -0
- package/dist/kit/horizontal-axis.d.ts.map +1 -0
- package/dist/kit/horizontal-axis.js +99 -0
- package/dist/kit/horizontal-axis.js.map +1 -0
- package/dist/kit/motion.d.ts +16 -3
- package/dist/kit/motion.d.ts.map +1 -1
- package/dist/kit/motion.js +15 -1
- package/dist/kit/motion.js.map +1 -1
- package/dist/{pie-chart → kit}/pie-legend.d.ts +14 -29
- package/dist/kit/pie-legend.d.ts.map +1 -0
- package/dist/kit/pie-legend.js +93 -0
- package/dist/kit/pie-legend.js.map +1 -0
- package/dist/kit/polar.d.ts +31 -0
- package/dist/kit/polar.d.ts.map +1 -0
- package/dist/kit/polar.js +33 -0
- package/dist/kit/polar.js.map +1 -0
- package/dist/kit/shared.d.ts +60 -214
- package/dist/kit/shared.d.ts.map +1 -1
- package/dist/kit/shared.js +91 -291
- package/dist/kit/shared.js.map +1 -1
- package/dist/kit/style.d.ts +254 -0
- package/dist/kit/style.d.ts.map +1 -0
- package/dist/kit/style.js +197 -0
- package/dist/kit/style.js.map +1 -0
- package/dist/kit/vertical-axis.d.ts +36 -45
- package/dist/kit/vertical-axis.d.ts.map +1 -1
- package/dist/kit/vertical-axis.js +69 -81
- package/dist/kit/vertical-axis.js.map +1 -1
- package/dist/line-chart/chart-line.d.ts +107 -40
- package/dist/line-chart/chart-line.d.ts.map +1 -1
- package/dist/line-chart/chart-line.js +172 -89
- package/dist/line-chart/chart-line.js.map +1 -1
- package/dist/line-chart/chart-region.d.ts +14 -27
- package/dist/line-chart/chart-region.d.ts.map +1 -1
- package/dist/line-chart/chart-region.js +13 -28
- package/dist/line-chart/chart-region.js.map +1 -1
- package/dist/line-chart/index.d.ts +5 -18
- package/dist/line-chart/index.d.ts.map +1 -1
- package/dist/line-chart/index.js +3 -16
- package/dist/line-chart/index.js.map +1 -1
- package/dist/line-chart/line-chart.d.ts +272 -119
- package/dist/line-chart/line-chart.d.ts.map +1 -1
- package/dist/line-chart/line-chart.js +309 -257
- package/dist/line-chart/line-chart.js.map +1 -1
- package/dist/line-chart/shared.d.ts +73 -130
- package/dist/line-chart/shared.d.ts.map +1 -1
- package/dist/line-chart/shared.js +195 -156
- package/dist/line-chart/shared.js.map +1 -1
- package/dist/line-chart/x-scale.d.ts +16 -55
- package/dist/line-chart/x-scale.d.ts.map +1 -1
- package/dist/line-chart/x-scale.js +44 -111
- package/dist/line-chart/x-scale.js.map +1 -1
- package/dist/nodes.d.ts +3 -13
- package/dist/nodes.d.ts.map +1 -1
- package/dist/nodes.js +9 -13
- package/dist/nodes.js.map +1 -1
- package/dist/pie-chart/index.d.ts +3 -15
- package/dist/pie-chart/index.d.ts.map +1 -1
- package/dist/pie-chart/index.js +1 -11
- package/dist/pie-chart/index.js.map +1 -1
- package/dist/pie-chart/pie-chart.d.ts +147 -85
- package/dist/pie-chart/pie-chart.d.ts.map +1 -1
- package/dist/pie-chart/pie-chart.js +65 -86
- package/dist/pie-chart/pie-chart.js.map +1 -1
- package/dist/pie-chart/pie-ring.d.ts +65 -196
- package/dist/pie-chart/pie-ring.d.ts.map +1 -1
- package/dist/pie-chart/pie-ring.js +154 -292
- package/dist/pie-chart/pie-ring.js.map +1 -1
- package/dist/pie-chart/shared.d.ts +78 -172
- package/dist/pie-chart/shared.d.ts.map +1 -1
- package/dist/pie-chart/shared.js +54 -177
- package/dist/pie-chart/shared.js.map +1 -1
- package/dist/radar-chart/index.d.ts +5 -0
- package/dist/radar-chart/index.d.ts.map +1 -0
- package/dist/radar-chart/index.js +5 -0
- package/dist/radar-chart/index.js.map +1 -0
- package/dist/radar-chart/radar-chart.d.ts +218 -0
- package/dist/radar-chart/radar-chart.d.ts.map +1 -0
- package/dist/radar-chart/radar-chart.js +224 -0
- package/dist/radar-chart/radar-chart.js.map +1 -0
- package/dist/radar-chart/radar-grid.d.ts +43 -0
- package/dist/radar-chart/radar-grid.d.ts.map +1 -0
- package/dist/radar-chart/radar-grid.js +61 -0
- package/dist/radar-chart/radar-grid.js.map +1 -0
- package/dist/radar-chart/radar-series.d.ts +59 -0
- package/dist/radar-chart/radar-series.d.ts.map +1 -0
- package/dist/radar-chart/radar-series.js +71 -0
- package/dist/radar-chart/radar-series.js.map +1 -0
- package/dist/radar-chart/shared.d.ts +73 -0
- package/dist/radar-chart/shared.d.ts.map +1 -0
- package/dist/radar-chart/shared.js +123 -0
- package/dist/radar-chart/shared.js.map +1 -0
- package/dist/radial-chart/index.d.ts +6 -0
- package/dist/radial-chart/index.d.ts.map +1 -0
- package/dist/radial-chart/index.js +4 -0
- package/dist/radial-chart/index.js.map +1 -0
- package/dist/radial-chart/radial-chart.d.ts +216 -0
- package/dist/radial-chart/radial-chart.d.ts.map +1 -0
- package/dist/radial-chart/radial-chart.js +174 -0
- package/dist/radial-chart/radial-chart.js.map +1 -0
- package/dist/radial-chart/radial-rings.d.ts +121 -0
- package/dist/radial-chart/radial-rings.d.ts.map +1 -0
- package/dist/radial-chart/radial-rings.js +273 -0
- package/dist/radial-chart/radial-rings.js.map +1 -0
- package/dist/radial-chart/shared.d.ts +73 -0
- package/dist/radial-chart/shared.d.ts.map +1 -0
- package/dist/radial-chart/shared.js +79 -0
- package/dist/radial-chart/shared.js.map +1 -0
- package/package.json +4 -4
- package/registry.json +21 -6
- package/src/bar-chart/bar-chart.ts +274 -315
- package/src/bar-chart/category-axis.ts +53 -88
- package/src/bar-chart/chart-bars.ts +108 -205
- package/src/bar-chart/index.ts +8 -19
- package/src/bar-chart/shared.ts +81 -309
- package/src/engine.ts +8 -17
- package/src/index.ts +2 -0
- package/src/kit/cartesian.ts +118 -55
- package/src/kit/chart-canvas.ts +50 -80
- package/src/kit/chart-legend.ts +36 -97
- package/src/kit/entries.ts +4 -1
- package/src/kit/horizontal-axis.ts +114 -0
- package/src/kit/motion.ts +18 -2
- package/src/{pie-chart → kit}/pie-legend.ts +25 -65
- package/src/kit/polar.ts +54 -0
- package/src/kit/shared.ts +104 -487
- package/src/kit/style.ts +257 -0
- package/src/kit/vertical-axis.ts +81 -115
- package/src/line-chart/chart-line.ts +185 -91
- package/src/line-chart/chart-region.ts +14 -31
- package/src/line-chart/index.ts +14 -22
- package/src/line-chart/line-chart.ts +377 -315
- package/src/line-chart/shared.ts +229 -304
- package/src/line-chart/x-scale.ts +44 -121
- package/src/nodes.ts +9 -13
- package/src/pie-chart/index.ts +3 -35
- package/src/pie-chart/pie-chart.ts +83 -134
- package/src/pie-chart/pie-ring.ts +162 -368
- package/src/pie-chart/shared.ts +92 -379
- package/src/radar-chart/index.ts +4 -0
- package/src/radar-chart/radar-chart.ts +287 -0
- package/src/radar-chart/radar-grid.ts +78 -0
- package/src/radar-chart/radar-series.ts +88 -0
- package/src/radar-chart/shared.ts +146 -0
- package/src/radial-chart/index.ts +5 -0
- package/src/radial-chart/radial-chart.ts +210 -0
- package/src/radial-chart/radial-rings.ts +328 -0
- package/src/radial-chart/shared.ts +114 -0
- package/dist/browser/chunks/chunk-TJNHLQGV.js +0 -2
- package/dist/browser/chunks/chunk-TJNHLQGV.js.map +0 -7
- package/dist/kit/chart-border.d.ts +0 -27
- package/dist/kit/chart-border.d.ts.map +0 -1
- package/dist/kit/chart-border.js +0 -28
- package/dist/kit/chart-border.js.map +0 -1
- package/dist/line-chart/horizontal-axis.d.ts +0 -79
- package/dist/line-chart/horizontal-axis.d.ts.map +0 -1
- package/dist/line-chart/horizontal-axis.js +0 -129
- package/dist/line-chart/horizontal-axis.js.map +0 -1
- package/dist/pie-chart/pie-legend.d.ts.map +0 -1
- package/dist/pie-chart/pie-legend.js +0 -117
- package/dist/pie-chart/pie-legend.js.map +0 -1
- package/src/kit/chart-border.ts +0 -50
- package/src/line-chart/horizontal-axis.ts +0 -151
package/dist/line-chart/index.js
CHANGED
|
@@ -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 {
|
|
17
|
-
export {
|
|
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
|
|
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
|
|
3
|
-
import { type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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:
|
|
37
|
-
|
|
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
|
|
81
|
+
/** Both axes as drawn now. */
|
|
54
82
|
export declare function lineChartDomains(s: LineChartValues): LineChartDomains;
|
|
55
83
|
/**
|
|
56
|
-
* A multi-series line chart
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
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
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
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
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
/**
|
|
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<
|
|
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
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
-
/**
|
|
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
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
-
/**
|
|
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<
|
|
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,
|
|
1
|
+
{"version":3,"file":"line-chart.d.ts","sourceRoot":"","sources":["../../src/line-chart/line-chart.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,UAAU,EACf,KAAK,MAAM,EACX,KAAK,KAAK,EAEV,KAAK,MAAM,EACX,KAAK,WAAW,IAAI,YAAY,EAChC,KAAK,IAAI,IAAI,KAAK,EAClB,KAAK,YAAY,IAAI,aAAa,EAClC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,cAAc,IAAI,eAAe,EAEtC,KAAK,UAAU,IAAI,WAAW,EAC9B,KAAK,WAAW,IAAI,YAAY,EAEjC,MAAM,mBAAmB,CAAA;AAS1B,OAAO,EAWL,KAAK,gBAAgB,EAErB,KAAK,kBAAkB,EACxB,MAAM,eAAe,CAAA;AAgBtB,OAAO,EAML,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,UAAU,EAGhB,MAAM,UAAU,CAAA;AAGjB,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAIf,CAAA;AAED,qCAAqC;AACrC,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA;AAErD,+DAA+D;AAC/D,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,CAAC,EAAE,kBAAkB,CAAA;IAC9B,QAAQ,CAAC,CAAC,EAAE,kBAAkB,CAAA;CAC/B;AAED,uDAAuD;AACvD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,CAAA;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,CAAA;IAC7B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAA;IAChC,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAA;IAChC,uDAAuD;IACvD,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACpC,sFAAsF;IACtF,QAAQ,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAC3C;AA2DD,8BAA8B;AAC9B,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,eAAe,GAAG,gBAAgB,CAUrE;AA+ID;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS;;;;IAOlB,8GAA8G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK9G,mGAAmG;;IAEnG,oHAAoH;;IAEpH,+FAA+F;;IAE/F,yHAAyH;;IAEzH,uFAAuF;;;;;;;;;;;;;;;;;;;;;;;;;IAbvF,8GAA8G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK9G,mGAAmG;;IAEnG,oHAAoH;;IAEpH,+FAA+F;;IAE/F,yHAAyH;;IAEzH,uFAAuF;;;;;;IAbvF,8GAA8G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK9G,mGAAmG;;IAEnG,oHAAoH;;IAEpH,+FAA+F;;IAE/F,yHAAyH;;IAEzH,uFAAuF;;;;;;;;;;;;;;;;;;;;;0BAwTzF,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,SAAS,CAAC,CAAA"}
|