@motionscript/charts 0.1.0-alpha.0 → 0.1.0-alpha.5
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 +59 -0
- package/LICENSE +201 -201
- package/NOTICE +48 -0
- package/README.md +85 -0
- package/dist/bar-chart/bar-chart.d.ts +33 -19
- package/dist/bar-chart/bar-chart.d.ts.map +1 -1
- package/dist/bar-chart/bar-chart.js +68 -64
- package/dist/bar-chart/bar-chart.js.map +1 -1
- package/dist/bar-chart/category-axis.d.ts +2 -2
- package/dist/bar-chart/category-axis.d.ts.map +1 -1
- package/dist/bar-chart/category-axis.js +2 -2
- package/dist/bar-chart/category-axis.js.map +1 -1
- package/dist/bar-chart/chart-bars.d.ts +1 -1
- package/dist/bar-chart/chart-bars.d.ts.map +1 -1
- package/dist/bar-chart/chart-bars.js +2 -2
- package/dist/bar-chart/chart-bars.js.map +1 -1
- package/dist/bar-chart/index.js.map +1 -1
- package/dist/bar-chart/shared.d.ts +4 -4
- package/dist/bar-chart/shared.d.ts.map +1 -1
- package/dist/bar-chart/shared.js +4 -4
- package/dist/bar-chart/shared.js.map +1 -1
- package/dist/browser/chunks/chunk-5ZPBV6BU.js +2 -0
- package/dist/browser/chunks/chunk-5ZPBV6BU.js.map +7 -0
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +3 -3
- package/dist/browser/kit.js +1 -1
- package/dist/browser/manifest.json +4 -3
- package/dist/engine.d.ts +1 -1
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +1 -1
- package/dist/engine.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/kit/chart-border.d.ts +1 -1
- package/dist/kit/chart-border.d.ts.map +1 -1
- package/dist/kit/chart-border.js +2 -2
- package/dist/kit/chart-border.js.map +1 -1
- package/dist/kit/chart-canvas.d.ts +1 -1
- package/dist/kit/chart-canvas.d.ts.map +1 -1
- package/dist/kit/chart-canvas.js +2 -2
- package/dist/kit/chart-canvas.js.map +1 -1
- package/dist/kit/chart-legend.d.ts +6 -27
- package/dist/kit/chart-legend.d.ts.map +1 -1
- package/dist/kit/chart-legend.js +33 -57
- package/dist/kit/chart-legend.js.map +1 -1
- package/dist/kit/shared.d.ts +31 -8
- package/dist/kit/shared.d.ts.map +1 -1
- package/dist/kit/shared.js +67 -11
- package/dist/kit/shared.js.map +1 -1
- package/dist/kit/vertical-axis.d.ts +2 -2
- package/dist/kit/vertical-axis.d.ts.map +1 -1
- package/dist/kit/vertical-axis.js +2 -2
- package/dist/kit/vertical-axis.js.map +1 -1
- package/dist/line-chart/chart-line.d.ts +3 -3
- package/dist/line-chart/chart-line.d.ts.map +1 -1
- package/dist/line-chart/chart-line.js +2 -2
- package/dist/line-chart/chart-line.js.map +1 -1
- package/dist/line-chart/chart-region.d.ts +1 -1
- package/dist/line-chart/chart-region.d.ts.map +1 -1
- package/dist/line-chart/chart-region.js +2 -2
- package/dist/line-chart/chart-region.js.map +1 -1
- package/dist/line-chart/horizontal-axis.d.ts +2 -2
- package/dist/line-chart/horizontal-axis.d.ts.map +1 -1
- package/dist/line-chart/horizontal-axis.js +2 -2
- package/dist/line-chart/horizontal-axis.js.map +1 -1
- package/dist/line-chart/index.js.map +1 -1
- package/dist/line-chart/line-chart.d.ts +25 -9
- package/dist/line-chart/line-chart.d.ts.map +1 -1
- package/dist/line-chart/line-chart.js +66 -43
- package/dist/line-chart/line-chart.js.map +1 -1
- package/dist/line-chart/shared.d.ts +4 -4
- package/dist/line-chart/shared.d.ts.map +1 -1
- package/dist/line-chart/shared.js +20 -5
- package/dist/line-chart/shared.js.map +1 -1
- package/dist/line-chart/x-scale.d.ts +2 -2
- package/dist/line-chart/x-scale.d.ts.map +1 -1
- package/dist/line-chart/x-scale.js +2 -2
- package/dist/line-chart/x-scale.js.map +1 -1
- package/dist/nodes.js.map +1 -1
- package/dist/pie-chart/index.js.map +1 -1
- package/dist/pie-chart/pie-chart.d.ts +16 -10
- package/dist/pie-chart/pie-chart.d.ts.map +1 -1
- package/dist/pie-chart/pie-chart.js +15 -16
- package/dist/pie-chart/pie-chart.js.map +1 -1
- package/dist/pie-chart/pie-legend.d.ts +2 -2
- package/dist/pie-chart/pie-legend.d.ts.map +1 -1
- package/dist/pie-chart/pie-legend.js +6 -6
- package/dist/pie-chart/pie-legend.js.map +1 -1
- package/dist/pie-chart/pie-ring.d.ts +14 -5
- package/dist/pie-chart/pie-ring.d.ts.map +1 -1
- package/dist/pie-chart/pie-ring.js +45 -15
- package/dist/pie-chart/pie-ring.js.map +1 -1
- package/dist/pie-chart/shared.d.ts +4 -4
- package/dist/pie-chart/shared.d.ts.map +1 -1
- package/dist/pie-chart/shared.js +4 -4
- package/dist/pie-chart/shared.js.map +1 -1
- package/package.json +6 -4
- package/registry.json +23 -23
- package/src/bar-chart/bar-chart.ts +820 -804
- package/src/bar-chart/category-axis.ts +177 -177
- package/src/bar-chart/chart-bars.ts +310 -310
- package/src/bar-chart/index.ts +31 -31
- package/src/bar-chart/shared.ts +354 -354
- package/src/engine.ts +26 -26
- package/src/index.ts +5 -5
- package/src/kit/chart-border.ts +61 -61
- package/src/kit/chart-canvas.ts +157 -157
- package/src/kit/chart-legend.ts +245 -250
- package/src/kit/shared.ts +733 -675
- package/src/kit/vertical-axis.ts +224 -224
- package/src/line-chart/chart-line.ts +208 -208
- package/src/line-chart/chart-region.ts +135 -135
- package/src/line-chart/horizontal-axis.ts +202 -202
- package/src/line-chart/index.ts +39 -39
- package/src/line-chart/line-chart.ts +961 -894
- package/src/line-chart/shared.ts +473 -459
- package/src/line-chart/x-scale.ts +367 -367
- package/src/nodes.ts +20 -20
- package/src/pie-chart/index.ts +37 -37
- package/src/pie-chart/pie-chart.ts +383 -374
- package/src/pie-chart/pie-legend.ts +159 -159
- package/src/pie-chart/pie-ring.ts +935 -903
- package/src/pie-chart/shared.ts +490 -490
- package/dist/browser/chunks/chunk-ZMBOBHYL.js +0 -2
- package/dist/browser/chunks/chunk-ZMBOBHYL.js.map +0 -7
package/src/line-chart/index.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
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 `ms add line-chart` copies. 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 } from "./line-chart"
|
|
14
|
-
export type { LineChartProps } from "./line-chart"
|
|
15
|
-
export { ChartRegion } from "./chart-region"
|
|
16
|
-
export { ChartLine } from "./chart-line"
|
|
17
|
-
export { HorizontalAxis } from "./horizontal-axis"
|
|
18
|
-
export {
|
|
19
|
-
DEFAULT_CHART_THEME,
|
|
20
|
-
EMPTY_REGION_BOX,
|
|
21
|
-
clipPolylineToBox,
|
|
22
|
-
hasRegion,
|
|
23
|
-
lerpChartTheme,
|
|
24
|
-
resolveChartTheme,
|
|
25
|
-
resolveRegionBox,
|
|
26
|
-
resolveYScale,
|
|
27
|
-
seriesPoints,
|
|
28
|
-
yExtent,
|
|
29
|
-
} from "./shared"
|
|
30
|
-
export type {
|
|
31
|
-
ChartConfig,
|
|
32
|
-
ChartTheme,
|
|
33
|
-
LineSeries,
|
|
34
|
-
PlotRegion,
|
|
35
|
-
RegionBox,
|
|
36
|
-
RegionConfig,
|
|
37
|
-
} from "./shared"
|
|
38
|
-
export { formatInstant, parseInstant, resolveXScale } from "./x-scale"
|
|
39
|
-
export type { XScale, XScaleKind } from "./x-scale"
|
|
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 `ms add line-chart` copies. 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 } from "./line-chart"
|
|
14
|
+
export type { LineChartProps } from "./line-chart"
|
|
15
|
+
export { ChartRegion } from "./chart-region"
|
|
16
|
+
export { ChartLine } from "./chart-line"
|
|
17
|
+
export { HorizontalAxis } from "./horizontal-axis"
|
|
18
|
+
export {
|
|
19
|
+
DEFAULT_CHART_THEME,
|
|
20
|
+
EMPTY_REGION_BOX,
|
|
21
|
+
clipPolylineToBox,
|
|
22
|
+
hasRegion,
|
|
23
|
+
lerpChartTheme,
|
|
24
|
+
resolveChartTheme,
|
|
25
|
+
resolveRegionBox,
|
|
26
|
+
resolveYScale,
|
|
27
|
+
seriesPoints,
|
|
28
|
+
yExtent,
|
|
29
|
+
} from "./shared"
|
|
30
|
+
export type {
|
|
31
|
+
ChartConfig,
|
|
32
|
+
ChartTheme,
|
|
33
|
+
LineSeries,
|
|
34
|
+
PlotRegion,
|
|
35
|
+
RegionBox,
|
|
36
|
+
RegionConfig,
|
|
37
|
+
} from "./shared"
|
|
38
|
+
export { formatInstant, parseInstant, resolveXScale } from "./x-scale"
|
|
39
|
+
export type { XScale, XScaleKind } from "./x-scale"
|