@silverpoint/core 0.3.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/catalog.d.ts +97 -0
- package/dist/catalog.js +8002 -0
- package/dist/catalog.js.map +1 -0
- package/dist/chunk-KFBSQH5G.js +34 -0
- package/dist/chunk-KFBSQH5G.js.map +1 -0
- package/dist/{chunk-I6BAZ7MJ.js → chunk-OLYKR5PS.js} +55 -45
- package/dist/chunk-OLYKR5PS.js.map +1 -0
- package/dist/chunk-PD4MD7JU.js +170 -0
- package/dist/chunk-PD4MD7JU.js.map +1 -0
- package/dist/dashboard-demos.d.ts +2 -2
- package/dist/index.d.ts +10 -57
- package/dist/index.js +18 -174
- package/dist/index.js.map +1 -1
- package/dist/model-CLhtoG75.d.ts +53 -0
- package/dist/{props-3G1XYd-r.d.ts → props-Dq8FC8GG.d.ts} +342 -2
- package/dist/{types-CbVMKvyQ.d.ts → types-B81k-s9_.d.ts} +1 -1
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +2 -1
- package/dist/ui.js.map +1 -1
- package/package.json +7 -1
- package/dist/chunk-I6BAZ7MJ.js.map +0 -1
package/README.md
CHANGED
|
@@ -26,6 +26,10 @@ export const substrates: SubstrateName[] = ['cream', 'green', 'blue', 'ochre'];
|
|
|
26
26
|
export const describe = (item: ActiveItem) => `${item.seriesKey} #${item.index}: ${item.value}`;
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
+
The recipes of the second catalog — the histogram, the box plot, the sunburst, the network and the
|
|
30
|
+
rest of the 27 charts added in `0.6.0` — are on their own entry, `@silverpoint/core/catalog`, so the main entry
|
|
31
|
+
stays small; their props types are in the main entry with every other chart's.
|
|
32
|
+
|
|
29
33
|
The geometry of the data is exact: the ground's hand-drawn inking only touches strokes that
|
|
30
34
|
carry no data, and it is deterministic for a given seed.
|
|
31
35
|
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { H as HistogramChartProps, E as EcdfChartProps, B as BoxPlotChartProps, V as ViolinChartProps, R as RidgelineChartProps, a as BeeswarmChartProps, L as LollipopChartProps, D as DumbbellChartProps, S as SlopeChartProps, b as BumpChartProps, c as ErrorBarChartProps, I as IntervalChartProps, d as DivergingBarChartProps, C as ConnectedScatterChartProps, e as SquarifiedTreemapProps, f as SunburstChartProps, T as TreeChartProps, W as WaffleChartProps, M as MarimekkoChartProps, P as ParallelCoordinatesChartProps, g as PolarLineChartProps, h as PolarScatterChartProps, i as DensityBinChartProps, j as ContourChartProps, k as DelaunayChartProps, l as VectorFieldChartProps, N as NetworkChartProps, G as Geometry, A as ActiveItem } from './props-Dq8FC8GG.js';
|
|
2
|
+
import { C as ChartRecipe } from './model-CLhtoG75.js';
|
|
3
|
+
|
|
4
|
+
/** `HistogramChart` recipe (REQ-400): raw observations binned in the core, abutting bins. */
|
|
5
|
+
declare const histogramChart: ChartRecipe<HistogramChartProps>;
|
|
6
|
+
|
|
7
|
+
/** `EcdfChart` recipe (REQ-401): the empirical cumulative distribution as an exact step line. */
|
|
8
|
+
declare const ecdfChart: ChartRecipe<EcdfChartProps>;
|
|
9
|
+
|
|
10
|
+
/** `BoxPlotChart` recipe (REQ-402): quartiles, median, Tukey whiskers and outliers per group. */
|
|
11
|
+
declare const boxPlotChart: ChartRecipe<BoxPlotChartProps>;
|
|
12
|
+
|
|
13
|
+
/** `ViolinChart` recipe (REQ-403): a mirrored kernel density per group, quartiles marked inside. */
|
|
14
|
+
declare const violinChart: ChartRecipe<ViolinChartProps>;
|
|
15
|
+
|
|
16
|
+
/** `RidgelineChart` recipe (REQ-404): a kernel density per group on overlapping baselines. */
|
|
17
|
+
declare const ridgelineChart: ChartRecipe<RidgelineChartProps>;
|
|
18
|
+
|
|
19
|
+
/** `BeeswarmChart` recipe (REQ-405): one point per observation, packed without overlap. */
|
|
20
|
+
declare const beeswarmChart: ChartRecipe<BeeswarmChartProps>;
|
|
21
|
+
|
|
22
|
+
/** `LollipopChart` recipe (REQ-406): a stem from the baseline and a head at the value. */
|
|
23
|
+
declare const lollipopChart: ChartRecipe<LollipopChartProps>;
|
|
24
|
+
|
|
25
|
+
/** `DumbbellChart` recipe (REQ-407): two values per category joined by a segment. */
|
|
26
|
+
declare const dumbbellChart: ChartRecipe<DumbbellChartProps>;
|
|
27
|
+
|
|
28
|
+
/** `SlopeChart` recipe (REQ-408): two period axes, one segment per category, labelled at both ends. */
|
|
29
|
+
declare const slopeChart: ChartRecipe<SlopeChartProps>;
|
|
30
|
+
|
|
31
|
+
/** `BumpChart` recipe (REQ-409): the rank of each series at each x, computed in the core. */
|
|
32
|
+
declare const bumpChart: ChartRecipe<BumpChartProps>;
|
|
33
|
+
|
|
34
|
+
/** `ErrorBarChart` recipe (REQ-410): a point estimate with its interval per category. */
|
|
35
|
+
declare const errorBarChart: ChartRecipe<ErrorBarChartProps>;
|
|
36
|
+
|
|
37
|
+
/** `IntervalChart` recipe (REQ-411): floating bars from start to end on lanes. */
|
|
38
|
+
declare const intervalChart: ChartRecipe<IntervalChartProps>;
|
|
39
|
+
|
|
40
|
+
/** `DivergingBarChart` recipe (REQ-412): ordered levels stacked on both sides of a neutral centre. */
|
|
41
|
+
declare const divergingBarChart: ChartRecipe<DivergingBarChartProps>;
|
|
42
|
+
|
|
43
|
+
/** `ConnectedScatterChart` recipe (REQ-413): an ordered path through x-y points, with direction marks. */
|
|
44
|
+
declare const connectedScatterChart: ChartRecipe<ConnectedScatterChartProps>;
|
|
45
|
+
|
|
46
|
+
/** `SquarifiedTreemap` recipe (REQ-416): a hierarchy laid out by the squarified algorithm, frames per level. */
|
|
47
|
+
declare const squarifiedTreemap: ChartRecipe<SquarifiedTreemapProps>;
|
|
48
|
+
|
|
49
|
+
/** `SunburstChart` recipe (REQ-417): a hierarchy as concentric rings of arcs, angle ∝ value, with a controlled root. */
|
|
50
|
+
declare const sunburstChart: ChartRecipe<SunburstChartProps>;
|
|
51
|
+
|
|
52
|
+
/** `TreeChart` recipe (REQ-418): a tidy node-link tree, horizontal or vertical. */
|
|
53
|
+
declare const treeChart: ChartRecipe<TreeChartProps>;
|
|
54
|
+
|
|
55
|
+
/** `WaffleChart` recipe (REQ-414): a unit grid filled in reading order by category, cells by largest remainder. */
|
|
56
|
+
declare const waffleChart: ChartRecipe<WaffleChartProps>;
|
|
57
|
+
|
|
58
|
+
/** `MarimekkoChart` recipe (REQ-415): column width ∝ total, segment height ∝ share, both axes at 100 %. */
|
|
59
|
+
declare const marimekkoChart: ChartRecipe<MarimekkoChartProps>;
|
|
60
|
+
|
|
61
|
+
/** `ParallelCoordinatesChart` recipe (REQ-419): one axis per dimension, one polyline per row. */
|
|
62
|
+
declare const parallelCoordinatesChart: ChartRecipe<ParallelCoordinatesChartProps>;
|
|
63
|
+
|
|
64
|
+
/** `PolarLineChart` recipe (REQ-420): a line over angle × radius, closed when the angle is cyclic. */
|
|
65
|
+
declare const polarLineChart: ChartRecipe<PolarLineChartProps>;
|
|
66
|
+
|
|
67
|
+
/** `PolarScatterChart` recipe (REQ-421): points over angle × radius, unbinned. */
|
|
68
|
+
declare const polarScatterChart: ChartRecipe<PolarScatterChartProps>;
|
|
69
|
+
|
|
70
|
+
/** `DensityBinChart` recipe (REQ-422): x-y points counted in hexagonal or square bins, toned by count. */
|
|
71
|
+
declare const densityBinChart: ChartRecipe<DensityBinChartProps>;
|
|
72
|
+
|
|
73
|
+
/** `ContourChart` recipe (REQ-423): iso-lines and filled bands of a point density or a regular grid. */
|
|
74
|
+
declare const contourChart: ChartRecipe<ContourChartProps>;
|
|
75
|
+
|
|
76
|
+
/** `DelaunayChart` recipe (REQ-424): the triangulation of x-y points, or its Voronoi cells. */
|
|
77
|
+
declare const delaunayChart: ChartRecipe<DelaunayChartProps>;
|
|
78
|
+
|
|
79
|
+
/** `VectorFieldChart` recipe (REQ-425): an arrow per grid point, its direction and length the vector's. */
|
|
80
|
+
declare const vectorFieldChart: ChartRecipe<VectorFieldChartProps>;
|
|
81
|
+
|
|
82
|
+
/** `NetworkChart` recipe (REQ-426): a node-link graph, laid out deterministically or placed by the consumer. */
|
|
83
|
+
declare const networkChart: ChartRecipe<NetworkChartProps>;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* What `onRootChange` carries when a node of a `SunburstChart` or a `SquarifiedTreemap` is
|
|
87
|
+
* activated (REQ-439, API delta §4): the node's id, or, for the drawn root, the id its centre or
|
|
88
|
+
* frame returns to — `null` for the data root, which has nothing above it. The adapters map their
|
|
89
|
+
* `select` through it and keep no root of their own (REQ-108, I-30).
|
|
90
|
+
*
|
|
91
|
+
* The node is read where `geometry`, the drawing as it is now, has the item: the shared reducer
|
|
92
|
+
* keeps an item by its place, so after the consumer passes a new `rootId` back the item's own
|
|
93
|
+
* summary may still be the old drawing's.
|
|
94
|
+
*/
|
|
95
|
+
declare function rootChangeOf(geometry: Geometry, item: ActiveItem): string | null;
|
|
96
|
+
|
|
97
|
+
export { beeswarmChart, boxPlotChart, bumpChart, connectedScatterChart, contourChart, delaunayChart, densityBinChart, divergingBarChart, dumbbellChart, ecdfChart, errorBarChart, histogramChart, intervalChart, lollipopChart, marimekkoChart, networkChart, parallelCoordinatesChart, polarLineChart, polarScatterChart, ridgelineChart, rootChangeOf, slopeChart, squarifiedTreemap, sunburstChart, treeChart, vectorFieldChart, violinChart, waffleChart };
|