@sophistry/charts 0.0.0-stage → 0.0.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/LICENSE +21 -0
- package/README.md +32 -2
- package/dist/3d/bar-chart3d.d.ts +56 -0
- package/dist/3d/bar-chart3d.d.ts.map +1 -0
- package/dist/3d/definitions.d.ts +38 -0
- package/dist/3d/definitions.d.ts.map +1 -0
- package/dist/3d/definitions.js +14 -0
- package/dist/3d/forward.d.ts +65 -0
- package/dist/3d/forward.d.ts.map +1 -0
- package/dist/3d/index.d.ts +31 -0
- package/dist/3d/index.d.ts.map +1 -0
- package/dist/3d/index.js +1 -0
- package/dist/3d/quiver3d.d.ts +53 -0
- package/dist/3d/quiver3d.d.ts.map +1 -0
- package/dist/3d/scatter3d.d.ts +45 -0
- package/dist/3d/scatter3d.d.ts.map +1 -0
- package/dist/3d/stem3d.d.ts +46 -0
- package/dist/3d/stem3d.d.ts.map +1 -0
- package/dist/3d/surface-grid3d.d.ts +34 -0
- package/dist/3d/surface-grid3d.d.ts.map +1 -0
- package/dist/3d/tri-surface3d.d.ts +46 -0
- package/dist/3d/tri-surface3d.d.ts.map +1 -0
- package/dist/3d/voxels3d.d.ts +26 -0
- package/dist/3d/voxels3d.d.ts.map +1 -0
- package/dist/3d/wireframe3d.d.ts +31 -0
- package/dist/3d/wireframe3d.d.ts.map +1 -0
- package/dist/band.d.ts +21 -0
- package/dist/band.d.ts.map +1 -0
- package/dist/bars/bar-chart.d.ts +144 -0
- package/dist/bars/bar-chart.d.ts.map +1 -0
- package/dist/bars/bar-labels.d.ts +117 -0
- package/dist/bars/bar-labels.d.ts.map +1 -0
- package/dist/bars/bars.d.ts +224 -0
- package/dist/bars/bars.d.ts.map +1 -0
- package/dist/bars/bullet.d.ts +158 -0
- package/dist/bars/bullet.d.ts.map +1 -0
- package/dist/bars/candlestick.d.ts +98 -0
- package/dist/bars/candlestick.d.ts.map +1 -0
- package/dist/bars/funnel.d.ts +91 -0
- package/dist/bars/funnel.d.ts.map +1 -0
- package/dist/bars/histogram.d.ts +109 -0
- package/dist/bars/histogram.d.ts.map +1 -0
- package/dist/bars/index.d.ts +23 -0
- package/dist/bars/index.d.ts.map +1 -0
- package/dist/bars/race.d.ts +29 -0
- package/dist/bars/race.d.ts.map +1 -0
- package/dist/bars/rules.d.ts +122 -0
- package/dist/bars/rules.d.ts.map +1 -0
- package/dist/bars/shared.d.ts +42 -0
- package/dist/bars/shared.d.ts.map +1 -0
- package/dist/bars/transforms.d.ts +250 -0
- package/dist/bars/transforms.d.ts.map +1 -0
- package/dist/bars/waterfall.d.ts +107 -0
- package/dist/bars/waterfall.d.ts.map +1 -0
- package/dist/batch.d.ts +143 -0
- package/dist/batch.d.ts.map +1 -0
- package/dist/channels-_Xf-p6Lx.js +56 -0
- package/dist/chart.d.ts +88 -0
- package/dist/chart.d.ts.map +1 -0
- package/dist/color-norm.d.ts +91 -0
- package/dist/color-norm.d.ts.map +1 -0
- package/dist/context.d.ts +112 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/curves/density.d.ts +126 -0
- package/dist/curves/density.d.ts.map +1 -0
- package/dist/curves/ecdf.d.ts +73 -0
- package/dist/curves/ecdf.d.ts.map +1 -0
- package/dist/curves/fill-between.d.ts +101 -0
- package/dist/curves/fill-between.d.ts.map +1 -0
- package/dist/curves/index.d.ts +16 -0
- package/dist/curves/index.d.ts.map +1 -0
- package/dist/curves/line-plot.d.ts +105 -0
- package/dist/curves/line-plot.d.ts.map +1 -0
- package/dist/curves/regression.d.ts +125 -0
- package/dist/curves/regression.d.ts.map +1 -0
- package/dist/curves/shared.d.ts +53 -0
- package/dist/curves/shared.d.ts.map +1 -0
- package/dist/curves/stack-plot.d.ts +141 -0
- package/dist/curves/stack-plot.d.ts.map +1 -0
- package/dist/curves/stairs.d.ts +171 -0
- package/dist/curves/stairs.d.ts.map +1 -0
- package/dist/data/channels.d.ts +171 -0
- package/dist/data/channels.d.ts.map +1 -0
- package/dist/end-space.d.ts +82 -0
- package/dist/end-space.d.ts.map +1 -0
- package/dist/entries/definitions.d.ts +21 -0
- package/dist/entries/definitions.d.ts.map +1 -0
- package/dist/entries/definitions.js +6 -0
- package/dist/frame/band-axis.d.ts +43 -0
- package/dist/frame/band-axis.d.ts.map +1 -0
- package/dist/frame/coords.d.ts +112 -0
- package/dist/frame/coords.d.ts.map +1 -0
- package/dist/frame/fit.d.ts +171 -0
- package/dist/frame/fit.d.ts.map +1 -0
- package/dist/frame/format.d.ts +41 -0
- package/dist/frame/format.d.ts.map +1 -0
- package/dist/frame/guide-metrics.d.ts +37 -0
- package/dist/frame/guide-metrics.d.ts.map +1 -0
- package/dist/frame/guides.d.ts +68 -0
- package/dist/frame/guides.d.ts.map +1 -0
- package/dist/frame/keys.d.ts +97 -0
- package/dist/frame/keys.d.ts.map +1 -0
- package/dist/frame/layout.d.ts +146 -0
- package/dist/frame/layout.d.ts.map +1 -0
- package/dist/frame/registry.d.ts +32 -0
- package/dist/frame/registry.d.ts.map +1 -0
- package/dist/frame/reports.d.ts +54 -0
- package/dist/frame/reports.d.ts.map +1 -0
- package/dist/frame/secondary-axes.d.ts +74 -0
- package/dist/frame/secondary-axes.d.ts.map +1 -0
- package/dist/frame/secondary.d.ts +57 -0
- package/dist/frame/secondary.d.ts.map +1 -0
- package/dist/frame/tooltip-overlay.d.ts +65 -0
- package/dist/frame/tooltip-overlay.d.ts.map +1 -0
- package/dist/frame/types.d.ts +659 -0
- package/dist/frame/types.d.ts.map +1 -0
- package/dist/grids/barbs.d.ts +52 -0
- package/dist/grids/barbs.d.ts.map +1 -0
- package/dist/grids/cell-rects.d.ts +38 -0
- package/dist/grids/cell-rects.d.ts.map +1 -0
- package/dist/grids/cells.d.ts +131 -0
- package/dist/grids/cells.d.ts.map +1 -0
- package/dist/grids/contour-f.d.ts +81 -0
- package/dist/grids/contour-f.d.ts.map +1 -0
- package/dist/grids/contour-shared.d.ts +54 -0
- package/dist/grids/contour-shared.d.ts.map +1 -0
- package/dist/grids/contour.d.ts +85 -0
- package/dist/grids/contour.d.ts.map +1 -0
- package/dist/grids/dendrogram.d.ts +105 -0
- package/dist/grids/dendrogram.d.ts.map +1 -0
- package/dist/grids/heatmap.d.ts +164 -0
- package/dist/grids/heatmap.d.ts.map +1 -0
- package/dist/grids/hex-bin.d.ts +94 -0
- package/dist/grids/hex-bin.d.ts.map +1 -0
- package/dist/grids/hist2d.d.ts +108 -0
- package/dist/grids/hist2d.d.ts.map +1 -0
- package/dist/grids/imshow.d.ts +85 -0
- package/dist/grids/imshow.d.ts.map +1 -0
- package/dist/grids/index.d.ts +27 -0
- package/dist/grids/index.d.ts.map +1 -0
- package/dist/grids/pcolormesh.d.ts +91 -0
- package/dist/grids/pcolormesh.d.ts.map +1 -0
- package/dist/grids/ramp-cells.d.ts +67 -0
- package/dist/grids/ramp-cells.d.ts.map +1 -0
- package/dist/grids/tri-contour.d.ts +121 -0
- package/dist/grids/tri-contour.d.ts.map +1 -0
- package/dist/grids/tri-shared.d.ts +62 -0
- package/dist/grids/tri-shared.d.ts.map +1 -0
- package/dist/grids/tripcolor.d.ts +74 -0
- package/dist/grids/tripcolor.d.ts.map +1 -0
- package/dist/guides/colorbar.d.ts +111 -0
- package/dist/guides/colorbar.d.ts.map +1 -0
- package/dist/guides/index.d.ts +12 -0
- package/dist/guides/index.d.ts.map +1 -0
- package/dist/guides/legend.d.ts +119 -0
- package/dist/guides/legend.d.ts.map +1 -0
- package/dist/guides/nodes.d.ts +14 -0
- package/dist/guides/nodes.d.ts.map +1 -0
- package/dist/guides/size-legend.d.ts +234 -0
- package/dist/guides/size-legend.d.ts.map +1 -0
- package/dist/hierarchy/breadcrumbs.d.ts +134 -0
- package/dist/hierarchy/breadcrumbs.d.ts.map +1 -0
- package/dist/hierarchy/circle-pack.d.ts +73 -0
- package/dist/hierarchy/circle-pack.d.ts.map +1 -0
- package/dist/hierarchy/drill.d.ts +246 -0
- package/dist/hierarchy/drill.d.ts.map +1 -0
- package/dist/hierarchy/frame.d.ts +68 -0
- package/dist/hierarchy/frame.d.ts.map +1 -0
- package/dist/hierarchy/icicle.d.ts +77 -0
- package/dist/hierarchy/icicle.d.ts.map +1 -0
- package/dist/hierarchy/index.d.ts +21 -0
- package/dist/hierarchy/index.d.ts.map +1 -0
- package/dist/hierarchy/labels.d.ts +25 -0
- package/dist/hierarchy/labels.d.ts.map +1 -0
- package/dist/hierarchy/mosaic.d.ts +131 -0
- package/dist/hierarchy/mosaic.d.ts.map +1 -0
- package/dist/hierarchy/own-tooltip.d.ts +13 -0
- package/dist/hierarchy/own-tooltip.d.ts.map +1 -0
- package/dist/hierarchy/props.d.ts +14 -0
- package/dist/hierarchy/props.d.ts.map +1 -0
- package/dist/hierarchy/sankey.d.ts +133 -0
- package/dist/hierarchy/sankey.d.ts.map +1 -0
- package/dist/hierarchy/shared.d.ts +248 -0
- package/dist/hierarchy/shared.d.ts.map +1 -0
- package/dist/hierarchy/sunburst.d.ts +75 -0
- package/dist/hierarchy/sunburst.d.ts.map +1 -0
- package/dist/hierarchy/tree.d.ts +125 -0
- package/dist/hierarchy/tree.d.ts.map +1 -0
- package/dist/hierarchy/treemap.d.ts +77 -0
- package/dist/hierarchy/treemap.d.ts.map +1 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/item-tooltip.d.ts +34 -0
- package/dist/item-tooltip.d.ts.map +1 -0
- package/dist/join.d.ts +224 -0
- package/dist/join.d.ts.map +1 -0
- package/dist/math/3d/bar3d.d.ts +28 -0
- package/dist/math/3d/bar3d.d.ts.map +1 -0
- package/dist/math/3d/quiver3d.d.ts +27 -0
- package/dist/math/3d/quiver3d.d.ts.map +1 -0
- package/dist/math/3d/scatter3d.d.ts +16 -0
- package/dist/math/3d/scatter3d.d.ts.map +1 -0
- package/dist/math/3d/stem3d.d.ts +23 -0
- package/dist/math/3d/stem3d.d.ts.map +1 -0
- package/dist/math/3d/surfaceGrid3d.d.ts +34 -0
- package/dist/math/3d/surfaceGrid3d.d.ts.map +1 -0
- package/dist/math/3d/trisurface.d.ts +12 -0
- package/dist/math/3d/trisurface.d.ts.map +1 -0
- package/dist/math/3d/voxels.d.ts +18 -0
- package/dist/math/3d/voxels.d.ts.map +1 -0
- package/dist/math/aggregate.d.ts +69 -0
- package/dist/math/aggregate.d.ts.map +1 -0
- package/dist/math/bar.d.ts +32 -0
- package/dist/math/bar.d.ts.map +1 -0
- package/dist/math/barLabels.d.ts +84 -0
- package/dist/math/barLabels.d.ts.map +1 -0
- package/dist/math/barbs.d.ts +37 -0
- package/dist/math/barbs.d.ts.map +1 -0
- package/dist/math/boxplot.d.ts +37 -0
- package/dist/math/boxplot.d.ts.map +1 -0
- package/dist/math/breadcrumbs.d.ts +129 -0
- package/dist/math/breadcrumbs.d.ts.map +1 -0
- package/dist/math/bubble.d.ts +39 -0
- package/dist/math/bubble.d.ts.map +1 -0
- package/dist/math/bullet.d.ts +111 -0
- package/dist/math/bullet.d.ts.map +1 -0
- package/dist/math/chord.d.ts +104 -0
- package/dist/math/chord.d.ts.map +1 -0
- package/dist/math/cluster.d.ts +89 -0
- package/dist/math/cluster.d.ts.map +1 -0
- package/dist/math/contour.d.ts +49 -0
- package/dist/math/contour.d.ts.map +1 -0
- package/dist/math/contourf.d.ts +51 -0
- package/dist/math/contourf.d.ts.map +1 -0
- package/dist/math/dodge.d.ts +37 -0
- package/dist/math/dodge.d.ts.map +1 -0
- package/dist/math/ecdf.d.ts +42 -0
- package/dist/math/ecdf.d.ts.map +1 -0
- package/dist/math/errorbar.d.ts +28 -0
- package/dist/math/errorbar.d.ts.map +1 -0
- package/dist/math/eventplot.d.ts +27 -0
- package/dist/math/eventplot.d.ts.map +1 -0
- package/dist/math/facet.d.ts +91 -0
- package/dist/math/facet.d.ts.map +1 -0
- package/dist/math/fillBetween.d.ts +29 -0
- package/dist/math/fillBetween.d.ts.map +1 -0
- package/dist/math/gauge.d.ts +72 -0
- package/dist/math/gauge.d.ts.map +1 -0
- package/dist/math/hexbin.d.ts +21 -0
- package/dist/math/hexbin.d.ts.map +1 -0
- package/dist/math/hierarchy.d.ts +180 -0
- package/dist/math/hierarchy.d.ts.map +1 -0
- package/dist/math/hierarchyJoin.d.ts +60 -0
- package/dist/math/hierarchyJoin.d.ts.map +1 -0
- package/dist/math/histogram.d.ts +37 -0
- package/dist/math/histogram.d.ts.map +1 -0
- package/dist/math/histogram2d.d.ts +45 -0
- package/dist/math/histogram2d.d.ts.map +1 -0
- package/dist/math/imshow.d.ts +27 -0
- package/dist/math/imshow.d.ts.map +1 -0
- package/dist/math/index.d.ts +140 -0
- package/dist/math/index.d.ts.map +1 -0
- package/dist/math/index.js +3 -0
- package/dist/math/jitter.d.ts +17 -0
- package/dist/math/jitter.d.ts.map +1 -0
- package/dist/math/join.d.ts +136 -0
- package/dist/math/join.d.ts.map +1 -0
- package/dist/math/keyframes.d.ts +128 -0
- package/dist/math/keyframes.d.ts.map +1 -0
- package/dist/math/legend.d.ts +121 -0
- package/dist/math/legend.d.ts.map +1 -0
- package/dist/math/line.d.ts +54 -0
- package/dist/math/line.d.ts.map +1 -0
- package/dist/math/morph.d.ts +82 -0
- package/dist/math/morph.d.ts.map +1 -0
- package/dist/math/mosaic.d.ts +120 -0
- package/dist/math/mosaic.d.ts.map +1 -0
- package/dist/math/ordinal.d.ts +80 -0
- package/dist/math/ordinal.d.ts.map +1 -0
- package/dist/math/parallel.d.ts +39 -0
- package/dist/math/parallel.d.ts.map +1 -0
- package/dist/math/pcolormesh.d.ts +23 -0
- package/dist/math/pcolormesh.d.ts.map +1 -0
- package/dist/math/pie.d.ts +106 -0
- package/dist/math/pie.d.ts.map +1 -0
- package/dist/math/polarArea.d.ts +35 -0
- package/dist/math/polarArea.d.ts.map +1 -0
- package/dist/math/radar.d.ts +111 -0
- package/dist/math/radar.d.ts.map +1 -0
- package/dist/math/range.d.ts +99 -0
- package/dist/math/range.d.ts.map +1 -0
- package/dist/math/regression.d.ts +110 -0
- package/dist/math/regression.d.ts.map +1 -0
- package/dist/math/reveal.d.ts +64 -0
- package/dist/math/reveal.d.ts.map +1 -0
- package/dist/math/sankey.d.ts +155 -0
- package/dist/math/sankey.d.ts.map +1 -0
- package/dist/math/scatter.d.ts +15 -0
- package/dist/math/scatter.d.ts.map +1 -0
- package/dist/math/shared/binning.d.ts +24 -0
- package/dist/math/shared/binning.d.ts.map +1 -0
- package/dist/math/shared/gridCells.d.ts +42 -0
- package/dist/math/shared/gridCells.d.ts.map +1 -0
- package/dist/math/shared/gridExtent.d.ts +6 -0
- package/dist/math/shared/gridExtent.d.ts.map +1 -0
- package/dist/math/shared/pairs.d.ts +3 -0
- package/dist/math/shared/pairs.d.ts.map +1 -0
- package/dist/math/shared/polar.d.ts +24 -0
- package/dist/math/shared/polar.d.ts.map +1 -0
- package/dist/math/stack.d.ts +70 -0
- package/dist/math/stack.d.ts.map +1 -0
- package/dist/math/stackplot.d.ts +36 -0
- package/dist/math/stackplot.d.ts.map +1 -0
- package/dist/math/stairs.d.ts +18 -0
- package/dist/math/stairs.d.ts.map +1 -0
- package/dist/math/stem.d.ts +22 -0
- package/dist/math/stem.d.ts.map +1 -0
- package/dist/math/symbol.d.ts +26 -0
- package/dist/math/symbol.d.ts.map +1 -0
- package/dist/math/tree.d.ts +118 -0
- package/dist/math/tree.d.ts.map +1 -0
- package/dist/math/tricontour.d.ts +77 -0
- package/dist/math/tricontour.d.ts.map +1 -0
- package/dist/math/violin.d.ts +100 -0
- package/dist/math/violin.d.ts.map +1 -0
- package/dist/math/waffle.d.ts +49 -0
- package/dist/math/waffle.d.ts.map +1 -0
- package/dist/math/waterfall.d.ts +29 -0
- package/dist/math/waterfall.d.ts.map +1 -0
- package/dist/math-CSHNpGej.js +3648 -0
- package/dist/mix.d.ts +25 -0
- package/dist/mix.d.ts.map +1 -0
- package/dist/multiview/brush.d.ts +166 -0
- package/dist/multiview/brush.d.ts.map +1 -0
- package/dist/multiview/chart-group.d.ts +266 -0
- package/dist/multiview/chart-group.d.ts.map +1 -0
- package/dist/multiview/chart-link.d.ts +189 -0
- package/dist/multiview/chart-link.d.ts.map +1 -0
- package/dist/multiview/chart-zoom.d.ts +145 -0
- package/dist/multiview/chart-zoom.d.ts.map +1 -0
- package/dist/multiview/facet.d.ts +239 -0
- package/dist/multiview/facet.d.ts.map +1 -0
- package/dist/multiview/group-guides.d.ts +100 -0
- package/dist/multiview/group-guides.d.ts.map +1 -0
- package/dist/multiview/index.d.ts +18 -0
- package/dist/multiview/index.d.ts.map +1 -0
- package/dist/multiview/joint-plot.d.ts +115 -0
- package/dist/multiview/joint-plot.d.ts.map +1 -0
- package/dist/multiview/pair-plot.d.ts +154 -0
- package/dist/multiview/pair-plot.d.ts.map +1 -0
- package/dist/multiview/panels.d.ts +23 -0
- package/dist/multiview/panels.d.ts.map +1 -0
- package/dist/multiview/parallel-coordinates.d.ts +110 -0
- package/dist/multiview/parallel-coordinates.d.ts.map +1 -0
- package/dist/points/event-plot.d.ts +68 -0
- package/dist/points/event-plot.d.ts.map +1 -0
- package/dist/points/index.d.ts +20 -0
- package/dist/points/index.d.ts.map +1 -0
- package/dist/points/labels.d.ts +71 -0
- package/dist/points/labels.d.ts.map +1 -0
- package/dist/points/links.d.ts +124 -0
- package/dist/points/links.d.ts.map +1 -0
- package/dist/points/rects.d.ts +81 -0
- package/dist/points/rects.d.ts.map +1 -0
- package/dist/points/rug.d.ts +73 -0
- package/dist/points/rug.d.ts.map +1 -0
- package/dist/points/scatter.d.ts +170 -0
- package/dist/points/scatter.d.ts.map +1 -0
- package/dist/points/segment-marks.d.ts +40 -0
- package/dist/points/segment-marks.d.ts.map +1 -0
- package/dist/points/shared.d.ts +35 -0
- package/dist/points/shared.d.ts.map +1 -0
- package/dist/points/stem.d.ts +76 -0
- package/dist/points/stem.d.ts.map +1 -0
- package/dist/points/strip.d.ts +146 -0
- package/dist/points/strip.d.ts.map +1 -0
- package/dist/points/symbol-marker.d.ts +34 -0
- package/dist/points/symbol-marker.d.ts.map +1 -0
- package/dist/points/ticks.d.ts +103 -0
- package/dist/points/ticks.d.ts.map +1 -0
- package/dist/props.d.ts +127 -0
- package/dist/props.d.ts.map +1 -0
- package/dist/radial/chord.d.ts +149 -0
- package/dist/radial/chord.d.ts.map +1 -0
- package/dist/radial/gauge.d.ts +127 -0
- package/dist/radial/gauge.d.ts.map +1 -0
- package/dist/radial/index.d.ts +16 -0
- package/dist/radial/index.d.ts.map +1 -0
- package/dist/radial/pie-chart.d.ts +144 -0
- package/dist/radial/pie-chart.d.ts.map +1 -0
- package/dist/radial/polar-area-chart.d.ts +136 -0
- package/dist/radial/polar-area-chart.d.ts.map +1 -0
- package/dist/radial/radar-chart.d.ts +177 -0
- package/dist/radial/radar-chart.d.ts.map +1 -0
- package/dist/radial/radial-bar-chart.d.ts +117 -0
- package/dist/radial/radial-bar-chart.d.ts.map +1 -0
- package/dist/radial/shared.d.ts +79 -0
- package/dist/radial/shared.d.ts.map +1 -0
- package/dist/radial/waffle.d.ts +131 -0
- package/dist/radial/waffle.d.ts.map +1 -0
- package/dist/raster.d.ts +44 -0
- package/dist/raster.d.ts.map +1 -0
- package/dist/series.d.ts +72 -0
- package/dist/series.d.ts.map +1 -0
- package/dist/src-CwGo1bes.js +19221 -0
- package/dist/stagger.d.ts +55 -0
- package/dist/stagger.d.ts.map +1 -0
- package/dist/statistics/box-plot.d.ts +152 -0
- package/dist/statistics/box-plot.d.ts.map +1 -0
- package/dist/statistics/error-bar.d.ts +149 -0
- package/dist/statistics/error-bar.d.ts.map +1 -0
- package/dist/statistics/groups.d.ts +141 -0
- package/dist/statistics/groups.d.ts.map +1 -0
- package/dist/statistics/index.d.ts +8 -0
- package/dist/statistics/index.d.ts.map +1 -0
- package/dist/statistics/violin-plot.d.ts +144 -0
- package/dist/statistics/violin-plot.d.ts.map +1 -0
- package/dist/text-width.d.ts +10 -0
- package/dist/text-width.d.ts.map +1 -0
- package/dist/tooltip.d.ts +277 -0
- package/dist/tooltip.d.ts.map +1 -0
- package/dist/util.d.ts +34 -0
- package/dist/util.d.ts.map +1 -0
- package/dist/voxels-9lJ2TZS4.js +235 -0
- package/dist/wireframe3d-D157GZAq.js +345 -0
- package/package.json +86 -3
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How one `progress` becomes a staggered per-datum reveal, and the orders a
|
|
3
|
+
* stagger runs in: by position, by a hash of the key, or a grid's reading
|
|
4
|
+
* order. Pure; internal to the charts.
|
|
5
|
+
*/
|
|
6
|
+
import type { BandKey, Range } from "@sophistry/core/geometry";
|
|
7
|
+
import type { StaggerOrder } from "./props";
|
|
8
|
+
/**
|
|
9
|
+
* One datum's share of a reveal staggered across `count` data: start times
|
|
10
|
+
* spread over `spread` of the reveal, each datum taking `1 - spread`, so the
|
|
11
|
+
* last ends at `progress = 1` and 5 or 500 bars take equally long.
|
|
12
|
+
*
|
|
13
|
+
* @param rank - This datum's place in the reveal order, 0-based.
|
|
14
|
+
* @param spread - 0 (all together) to just under 1 (one after another).
|
|
15
|
+
* @returns This datum's own progress, 0..1.
|
|
16
|
+
*/
|
|
17
|
+
export declare function staggered(progress: number, rank: number, count: number, spread: number): number;
|
|
18
|
+
/** Each value's 0-based place in ascending order: the left-to-right reveal order. Ties keep data order; non-finite values go last. */
|
|
19
|
+
export declare function ranks(values: readonly number[]): number[];
|
|
20
|
+
/** Each key's place in a "random" reveal order: ascending by a hash of the key, so it looks shuffled but is the same every frame and when scrubbed. */
|
|
21
|
+
export declare function hashRanks(keys: readonly BandKey[]): number[];
|
|
22
|
+
/**
|
|
23
|
+
* Each key's place in a stagger by `staggerOrder`: by key hash under
|
|
24
|
+
* `"random"`, else ascending by `position` (non-finite last, ties in key
|
|
25
|
+
* order).
|
|
26
|
+
*
|
|
27
|
+
* @param order - Omitted, `"position"`.
|
|
28
|
+
* @returns `rank[i]` for `keys[i]`.
|
|
29
|
+
*/
|
|
30
|
+
export declare function orderRanks(keys: readonly BandKey[], order: StaggerOrder | undefined, position: (key: BandKey, index: number) => number): number[];
|
|
31
|
+
/** Which axes run backwards on screen (a range given end first, or `reverse`), for {@link readingRanks}. */
|
|
32
|
+
export declare function reversedAxes(xRange: Readonly<Range>, yRange: Readonly<Range>): {
|
|
33
|
+
x: boolean;
|
|
34
|
+
y: boolean;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Each cell's place in screen reading order: top row first, each row left to
|
|
38
|
+
* right. Cells sharing a `y` are one row; ties keep data order.
|
|
39
|
+
*
|
|
40
|
+
* @param cells - One position per cell that is the same across a row, in data units.
|
|
41
|
+
* @param reversed - Axes that run backwards on screen ({@link reversedAxes}).
|
|
42
|
+
* @returns `rank[i]` for cell `i`.
|
|
43
|
+
*/
|
|
44
|
+
export declare function readingRanks(cells: readonly {
|
|
45
|
+
readonly x: number;
|
|
46
|
+
readonly y: number;
|
|
47
|
+
}[], reversed?: {
|
|
48
|
+
readonly x?: boolean;
|
|
49
|
+
readonly y?: boolean;
|
|
50
|
+
}): number[];
|
|
51
|
+
/** Above this many cells a grid fades in as one, unstaggered. */
|
|
52
|
+
export declare const GRID_STAGGER_LIMIT = 2000;
|
|
53
|
+
/** A gridded layer's stagger: the one given, else 0.5, dropped to 0 above {@link GRID_STAGGER_LIMIT} cells. */
|
|
54
|
+
export declare function gridStagger(stagger: number | undefined, count: number): number;
|
|
55
|
+
//# sourceMappingURL=stagger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stagger.d.ts","sourceRoot":"","sources":["../src/stagger.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CACxB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,MAAM,E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
|
|
4
|
+
* The preset reads each group's sample and name (`groups.ts`), lays the
|
|
5
|
+
* groups out on a band x axis and fits a value y axis, and draws its boxes
|
|
6
|
+
* through an inner layer. Each box is whiskers with caps, a box over the
|
|
7
|
+
* quartiles, a median line and outlier dots. The layer draws every box,
|
|
8
|
+
* whisker and median as **one path batch** (each box's outlines differ, and
|
|
9
|
+
* one batch keeps the paint order within a box: whiskers, box, median),
|
|
10
|
+
* and the outliers as **one instances node** of circles keyed by box and
|
|
11
|
+
* outlier. Hover resolves per item (`event.item`).
|
|
12
|
+
*
|
|
13
|
+
* Reveals and keyed transitions are geometry: a box opens
|
|
14
|
+
* out of its median (its edges `opened` of the way to the quartiles), then
|
|
15
|
+
* its whiskers reach out (each part drawn whole once begun), then each
|
|
16
|
+
* outlier traces its outline as its fill comes up (its item's `progress`).
|
|
17
|
+
*/
|
|
18
|
+
import type { SceneNode } from "@sophistry/core";
|
|
19
|
+
import type { ColorInput } from "@sophistry/core/color";
|
|
20
|
+
import type { BandKey, Point, Range } from "@sophistry/core/geometry";
|
|
21
|
+
import type { Channel, ColorChannel } from "../data/channels";
|
|
22
|
+
import type { ChartYAxisOptions } from "../frame/types";
|
|
23
|
+
import type { RevealProps, TransitionProps } from "../props";
|
|
24
|
+
/**
|
|
25
|
+
* Props of {@link boxPlot}. `values` is required unless `data` is
|
|
26
|
+
* `number[][]`.
|
|
27
|
+
*
|
|
28
|
+
* @category Charts
|
|
29
|
+
*/
|
|
30
|
+
export interface BoxPlotProps<T = unknown> extends TransitionProps<T>, RevealProps {
|
|
31
|
+
/** One box per datum, each holding (or yielding via `values`) one group's raw sample. */
|
|
32
|
+
data: readonly T[];
|
|
33
|
+
/**
|
|
34
|
+
* The group's raw sample, in data units. Defaults to the datum when `data` is `number[][]`;
|
|
35
|
+
* required otherwise. Non-finite entries are dropped.
|
|
36
|
+
*/
|
|
37
|
+
values?: Channel<T, readonly number[]>;
|
|
38
|
+
/** The name drawn under each box. With a `series`, boxes sharing a name share its slot. */
|
|
39
|
+
label?: Channel<T, string>;
|
|
40
|
+
/**
|
|
41
|
+
* The series each box belongs to: colours boxes through the chart's colour scale and legend;
|
|
42
|
+
* with a `label`, boxes sharing a name stand side by side in its slot. `color` wins.
|
|
43
|
+
*/
|
|
44
|
+
series?: Channel<T, BandKey>;
|
|
45
|
+
/**
|
|
46
|
+
* The legend for `series`: `"right"`, `"top"`, or `false`. As `chart`'s `legend`. Defaults to
|
|
47
|
+
* `"right"` with a series.
|
|
48
|
+
*/
|
|
49
|
+
legend?: boolean | "right" | "top";
|
|
50
|
+
/** `[min, max, step?]` in data units. Omitted, fitted to every group's data (including 0). */
|
|
51
|
+
yRange?: Range;
|
|
52
|
+
/** Width of the plotting area. */
|
|
53
|
+
width: number;
|
|
54
|
+
/** Height of the plotting area. */
|
|
55
|
+
height: number;
|
|
56
|
+
/** Centre of the plotting area. Defaults to the origin. */
|
|
57
|
+
center?: Point;
|
|
58
|
+
/**
|
|
59
|
+
* Box width as a fraction of the slot pitch.
|
|
60
|
+
* @default 0.6
|
|
61
|
+
*/
|
|
62
|
+
boxWidth?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Tukey fence multiplier: how many IQRs past the box a whisker may reach before a point is an
|
|
65
|
+
* outlier.
|
|
66
|
+
* @default 1.5
|
|
67
|
+
*/
|
|
68
|
+
whiskerScale?: number;
|
|
69
|
+
/**
|
|
70
|
+
* One colour for every box, or `(d, i) => colour`. Wins over `colors` and `series` (whose
|
|
71
|
+
* legend then goes).
|
|
72
|
+
*/
|
|
73
|
+
color?: ColorChannel<T>;
|
|
74
|
+
/**
|
|
75
|
+
* Colours cycled across the boxes by index, or across the `series` categories. Defaults to the
|
|
76
|
+
* theme's categorical colours.
|
|
77
|
+
*/
|
|
78
|
+
colors?: readonly ColorInput[];
|
|
79
|
+
/**
|
|
80
|
+
* Fill opacity, 0..1.
|
|
81
|
+
* @default 0.75
|
|
82
|
+
*/
|
|
83
|
+
fillOpacity?: number;
|
|
84
|
+
/**
|
|
85
|
+
* The value axis: `false` hides it; an object styles it and sets its ticks.
|
|
86
|
+
* @default true
|
|
87
|
+
*/
|
|
88
|
+
yAxis?: boolean | ChartYAxisOptions;
|
|
89
|
+
/**
|
|
90
|
+
* Whether to draw the line the boxes stand on.
|
|
91
|
+
* @default true
|
|
92
|
+
*/
|
|
93
|
+
baseline?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Font size of the box labels.
|
|
96
|
+
* @default 0.28
|
|
97
|
+
*/
|
|
98
|
+
labelFontSize?: number;
|
|
99
|
+
/**
|
|
100
|
+
* Reveal, 0..1: the frame first, then each box opens out of its median, its whiskers reach out,
|
|
101
|
+
* and its outliers fade in.
|
|
102
|
+
* @default 1
|
|
103
|
+
* @see https://sophistry.dev/guides/chart-animation/#reveals
|
|
104
|
+
*/
|
|
105
|
+
progress?: number;
|
|
106
|
+
/**
|
|
107
|
+
* Fraction of the boxes' reveal spent staggering box after box, left to right, 0..0.95.
|
|
108
|
+
* @default 0
|
|
109
|
+
*/
|
|
110
|
+
stagger?: number;
|
|
111
|
+
/**
|
|
112
|
+
* The data to transition to, groups matched by `label` and `series` (else by place): statistics
|
|
113
|
+
* move to their new values, outliers move with the box, new groups open from their median and
|
|
114
|
+
* removed ones close. See {@link TransitionProps}.
|
|
115
|
+
* @see https://sophistry.dev/guides/chart-animation/#data-transitions
|
|
116
|
+
*/
|
|
117
|
+
to?: readonly T[];
|
|
118
|
+
/** Paint order; higher draws later. */
|
|
119
|
+
zIndex?: number;
|
|
120
|
+
visible?: boolean;
|
|
121
|
+
/** Drawn inside the chart's coordinate context. */
|
|
122
|
+
children?: readonly SceneNode[];
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* A box-and-whisker plot: one box per group over the quartiles with the
|
|
126
|
+
* median marked, whiskers to the furthest points within `whiskerScale` IQRs,
|
|
127
|
+
* and outliers as dots. It is its own plot, sized by `width`/`height`; don't
|
|
128
|
+
* put it inside an `axes` or `chart`. Boxes, whiskers and medians draw as one
|
|
129
|
+
* path batch, outliers as one instances node. See {@link boxplotStats} for
|
|
130
|
+
* the statistics alone.
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* ```ts
|
|
134
|
+
* import { boxPlot } from "@sophistry/charts";
|
|
135
|
+
*
|
|
136
|
+
* boxPlot.create({
|
|
137
|
+
* data: [
|
|
138
|
+
* { arm: "control", scores: [3, 4, 4, 5, 6, 7, 12] },
|
|
139
|
+
* { arm: "treated", scores: [5, 6, 7, 7, 8, 9, 10] },
|
|
140
|
+
* ],
|
|
141
|
+
* values: "scores",
|
|
142
|
+
* label: "arm",
|
|
143
|
+
* width: 6,
|
|
144
|
+
* height: 4,
|
|
145
|
+
* });
|
|
146
|
+
* ```
|
|
147
|
+
*
|
|
148
|
+
* @see https://sophistry.dev/reference/chart-catalogue/#box-and-violin-plots
|
|
149
|
+
* @category Charts
|
|
150
|
+
*/
|
|
151
|
+
export declare const boxPlot: import("@sophistry/core").Definition<BoxPlotProps<any>, import("@sophistry/core/internal").CompositeNode<BoxPlotProps<any>>, keyof BoxPlotProps<any>>;
|
|
152
|
+
//# sourceMappingURL=box-plot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"box-plot.d.ts","sourceRoot":"","sources":["../../src/statistics/box-plot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAKX,SAAS,EACT,MAAM,iBAAiB,CAAC;AAOzB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAOtE,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAG9D,OAAO,KAAK,EAAc,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAcpE,OAAO,KAAK,EAAY,WAAW,EAAE,eAAe,EAAE,MAA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AAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,EAAE,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC;IAClB,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,SAAS,SAAS,EAAE,CAAC;CAChC;AA0kBD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,OAAO,uJA8ClB,CAAC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `errorBar`: a marker per datum with capped vertical and horizontal error
|
|
3
|
+
* bars, drawn as two instances nodes.
|
|
4
|
+
*
|
|
5
|
+
* Follows `points/scatter.ts` step for step. Every bar and cap of every
|
|
6
|
+
* point is one item of a `line` instances node (keyed by the datum's key and
|
|
7
|
+
* the part: `y`, `y0`, `y1`, `x`, `x0`, `x1`), every marker one item of a
|
|
8
|
+
* `circle` instances node (keyed by the datum's key). The bars draw first
|
|
9
|
+
* and the markers over them.
|
|
10
|
+
*
|
|
11
|
+
* The reveal is geometry: each bar grows out of its marker
|
|
12
|
+
* (its ends `shown` of the way out) and its caps widen with it, so a bar is
|
|
13
|
+
* drawn whole once it has begun; the marker traces its outline as its fill
|
|
14
|
+
* comes up (its item's `progress`).
|
|
15
|
+
* Under the mark's `transition`, an entering bar draws out of its marker
|
|
16
|
+
* and a leaving one draws back into it; markers grow and shrink.
|
|
17
|
+
*/
|
|
18
|
+
import type { BandKey } from "@sophistry/core/geometry";
|
|
19
|
+
import type { MarkTransition } from "../batch";
|
|
20
|
+
import type { Channel, ColorChannel, PositionValue } from "../data/channels";
|
|
21
|
+
import type { KeyedTransitionProps, RevealProps, StaggerOrder } from "../props";
|
|
22
|
+
/**
|
|
23
|
+
* An error magnitude: a symmetric `±e`, or an asymmetric `[lower, upper]` pair.
|
|
24
|
+
*
|
|
25
|
+
* @category Charts
|
|
26
|
+
*/
|
|
27
|
+
export type ErrorMagnitude = number | readonly [lower: number, upper: number];
|
|
28
|
+
/**
|
|
29
|
+
* Props of {@link errorBar}. `x` and `y` are required unless `data` is
|
|
30
|
+
* `number[]` (x = index, y = value).
|
|
31
|
+
*
|
|
32
|
+
* @category Charts
|
|
33
|
+
*/
|
|
34
|
+
export interface ErrorBarProps<T = unknown> extends KeyedTransitionProps<T>, RevealProps {
|
|
35
|
+
/** One marker (with optional bars) per datum; data with a non-finite `x` or `y` are skipped. */
|
|
36
|
+
data: readonly T[];
|
|
37
|
+
/**
|
|
38
|
+
* X position, in data units (a `Date` reads as epoch ms). Defaults to the index when `data` is
|
|
39
|
+
* `number[]`; required otherwise.
|
|
40
|
+
*/
|
|
41
|
+
x?: Channel<T, PositionValue>;
|
|
42
|
+
/**
|
|
43
|
+
* Y position, in data units (a `Date` reads as epoch ms). Defaults to the datum when `data` is
|
|
44
|
+
* `number[]`; required otherwise.
|
|
45
|
+
*/
|
|
46
|
+
y?: Channel<T, PositionValue>;
|
|
47
|
+
/**
|
|
48
|
+
* Vertical error, in data units: a symmetric `±e` or an asymmetric `[lower, upper]`. A datum
|
|
49
|
+
* without a finite magnitude gets no bar.
|
|
50
|
+
*/
|
|
51
|
+
yError?: Channel<T, ErrorMagnitude>;
|
|
52
|
+
/** Horizontal error, in data units; same forms as `yError`. */
|
|
53
|
+
xError?: Channel<T, ErrorMagnitude>;
|
|
54
|
+
/**
|
|
55
|
+
* The series each point belongs to: colours markers and bars through the chart's shared colour
|
|
56
|
+
* scale and legend. `color` and `stroke` win.
|
|
57
|
+
*/
|
|
58
|
+
series?: Channel<T, BandKey>;
|
|
59
|
+
/**
|
|
60
|
+
* Each point's identity across data changes and transitions. See {@link KeyedTransitionProps}.
|
|
61
|
+
* Defaults to the datum's place within its `series`, else its index.
|
|
62
|
+
*/
|
|
63
|
+
key?: Channel<T, BandKey>;
|
|
64
|
+
/**
|
|
65
|
+
* Colour of the marker and both bars, constant or `(d, i) => colour`. Defaults to `stroke`,
|
|
66
|
+
* else the `series` colour, else the theme's first series colour.
|
|
67
|
+
*/
|
|
68
|
+
color?: ColorChannel<T>;
|
|
69
|
+
/**
|
|
70
|
+
* Marker radius.
|
|
71
|
+
* @default 0.09
|
|
72
|
+
*/
|
|
73
|
+
markerRadius?: number;
|
|
74
|
+
/**
|
|
75
|
+
* Width of the caps at each end of a bar.
|
|
76
|
+
* @default 0.15
|
|
77
|
+
*/
|
|
78
|
+
capSize?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Fraction of the reveal spent staggering point after point, left to right, 0..0.95.
|
|
81
|
+
* @default 0
|
|
82
|
+
*/
|
|
83
|
+
stagger?: number;
|
|
84
|
+
/**
|
|
85
|
+
* The order `stagger` and `enterStagger` take. See {@link StaggerOrder}.
|
|
86
|
+
* @default "position"
|
|
87
|
+
*/
|
|
88
|
+
staggerOrder?: StaggerOrder;
|
|
89
|
+
/**
|
|
90
|
+
* Fraction of a transition's enter stage spent staggering entering points, in `staggerOrder`.
|
|
91
|
+
* See {@link TransitionProps}.
|
|
92
|
+
* @default 0
|
|
93
|
+
*/
|
|
94
|
+
enterStagger?: number;
|
|
95
|
+
/**
|
|
96
|
+
* The data to transition to, matched to `data` by `key`: markers and bar ends move to their new
|
|
97
|
+
* places; new points fade in with bars drawing outward, removed ones draw back in. See {@link
|
|
98
|
+
* KeyedTransitionProps}.
|
|
99
|
+
* @see https://sophistry.dev/guides/chart-animation/#data-transitions
|
|
100
|
+
*/
|
|
101
|
+
to?: readonly T[];
|
|
102
|
+
/**
|
|
103
|
+
* How points move when `data` changes (outside a `to` blend): a tween or
|
|
104
|
+
* a spring in the nodes' tween banks; new bars draw out of their markers,
|
|
105
|
+
* removed ones draw back in. Omitted, data changes are instant.
|
|
106
|
+
*/
|
|
107
|
+
transition?: MarkTransition;
|
|
108
|
+
/** Colour of marker and bars when neither `color` nor `series` gives one (a colour; batched items take no gradients). */
|
|
109
|
+
stroke?: string;
|
|
110
|
+
/** Bar thickness. Defaults to the theme's stroke width. */
|
|
111
|
+
strokeWidth?: number;
|
|
112
|
+
/** Opacity 0..1. @default 1 */
|
|
113
|
+
opacity?: number;
|
|
114
|
+
/** Reveal 0..1: each bar grows out of its marker, which draws in. @default 1 */
|
|
115
|
+
progress?: number;
|
|
116
|
+
/** Paint order. */
|
|
117
|
+
zIndex?: number;
|
|
118
|
+
/** Set to false to hide the points. */
|
|
119
|
+
visible?: boolean;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* A marker at each `(x, y)` with optional capped vertical (`yError`) and
|
|
123
|
+
* horizontal (`xError`) error bars. Bar lengths are in data units; caps and
|
|
124
|
+
* markers in scene units. `progress` draws each bar outward from its marker.
|
|
125
|
+
* Inside a `chart` or `axes`. Bars draw as one `line` instances node and
|
|
126
|
+
* markers as one `circle` instances node. See {@link errorBarPoints} for the
|
|
127
|
+
* endpoints alone.
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```ts
|
|
131
|
+
* import { chart, errorBar } from "@sophistry/charts";
|
|
132
|
+
*
|
|
133
|
+
* const trials = [
|
|
134
|
+
* { dose: 1, mean: 2.1, sd: 0.4 },
|
|
135
|
+
* { dose: 2, mean: 3.4, sd: 0.6 },
|
|
136
|
+
* { dose: 4, mean: 4.0, sd: 0.5 },
|
|
137
|
+
* ];
|
|
138
|
+
* chart.create({
|
|
139
|
+
* width: 8,
|
|
140
|
+
* height: 4,
|
|
141
|
+
* children: [errorBar.create({ data: trials, x: "dose", y: "mean", yError: "sd" })],
|
|
142
|
+
* });
|
|
143
|
+
* ```
|
|
144
|
+
*
|
|
145
|
+
* @see https://sophistry.dev/reference/chart-catalogue/#lines-scatter-and-error-bars
|
|
146
|
+
* @category Charts
|
|
147
|
+
*/
|
|
148
|
+
export declare const errorBar: import("@sophistry/core").Definition<ErrorBarProps<any>, import("@sophistry/core/internal").CompositeNode<ErrorBarProps<any>>, keyof ErrorBarProps<any>>;
|
|
149
|
+
//# sourceMappingURL=error-bar.d.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AAE,YAAY,CAAC,CAAC,CAAC,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,EAAE,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,yHAAyH;IACzH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gFAAgF;IAChF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AA+aD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,QAAQ,0JA6EnB,CAAC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the box and violin presets share: reading each group's sample and
|
|
3
|
+
* name (and, with `to`, the far end's), laying the groups out in band slots
|
|
4
|
+
* (one per group, or one per name with a `series`), each group's identity
|
|
5
|
+
* across a keyed transition, and the props of the `chart` the preset draws
|
|
6
|
+
* in. Internal.
|
|
7
|
+
*/
|
|
8
|
+
import type { SceneNode } from "@sophistry/core";
|
|
9
|
+
import type { ColorInput } from "@sophistry/core/color";
|
|
10
|
+
import type { BandKey, Point, Range } from "@sophistry/core/geometry";
|
|
11
|
+
import type { Channel } from "../data/channels";
|
|
12
|
+
import type { ChartProps, ChartYAxisOptions } from "../frame/types";
|
|
13
|
+
import type { JoinStaging } from "../math/join";
|
|
14
|
+
/** Gap between dodged boxes or violins, as a fraction of each one's sub-slot. */
|
|
15
|
+
export declare const DODGE_GAP = 0.1;
|
|
16
|
+
/** The band-axis categories of a box or violin plot, and each datum's. */
|
|
17
|
+
export interface SlotKeys {
|
|
18
|
+
categories: BandKey[];
|
|
19
|
+
/** The categories are the names (so the axis writes the key); else indices. */
|
|
20
|
+
named: boolean;
|
|
21
|
+
of: (index: number) => BandKey;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The band-axis categories of a box or violin plot, and each datum's: one per datum, or with a
|
|
25
|
+
* `series` and names, one per distinct name.
|
|
26
|
+
*
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare function slotKeys(series: unknown, labels: readonly (string | undefined)[] | undefined, data: readonly unknown[]): SlotKeys;
|
|
30
|
+
/** Both ends' slots of a box or violin plot under a keyed transition. @internal */
|
|
31
|
+
export interface TransitionSlots {
|
|
32
|
+
from: {
|
|
33
|
+
categories: BandKey[];
|
|
34
|
+
of: (index: number) => BandKey;
|
|
35
|
+
};
|
|
36
|
+
to: {
|
|
37
|
+
categories: BandKey[];
|
|
38
|
+
of: (index: number) => BandKey;
|
|
39
|
+
};
|
|
40
|
+
/** The categories are the names (so the axis writes the key); else indices. */
|
|
41
|
+
named: boolean;
|
|
42
|
+
/** Groups sharing a slot stand side by side, one sub-slot per series. */
|
|
43
|
+
dodge: boolean;
|
|
44
|
+
}
|
|
45
|
+
/** What a box or violin layer needs to transition to `to`. @internal */
|
|
46
|
+
export interface GroupTransition<T> {
|
|
47
|
+
to: readonly T[];
|
|
48
|
+
/** Each `to` datum's sample. */
|
|
49
|
+
groups: readonly (readonly number[])[];
|
|
50
|
+
slots: TransitionSlots;
|
|
51
|
+
/** Each group's identity (see `groupKey`), or undefined to key by series, else index. */
|
|
52
|
+
key: Channel<T, BandKey> | undefined;
|
|
53
|
+
}
|
|
54
|
+
/** What a box or violin preset reads from its props on one update. */
|
|
55
|
+
export interface GroupData<T> {
|
|
56
|
+
/** Each datum's sample. */
|
|
57
|
+
groups: (readonly number[])[];
|
|
58
|
+
/** Each datum's name, with a `label`. */
|
|
59
|
+
labels: (string | undefined)[] | undefined;
|
|
60
|
+
/** One slot per group (by index), or with a series and names, one per name. */
|
|
61
|
+
slots: SlotKeys;
|
|
62
|
+
/** With `to`: both ends' slots. */
|
|
63
|
+
ends: TransitionSlots | undefined;
|
|
64
|
+
/** Every group's values fitted to a range (zero included), read once per data change. */
|
|
65
|
+
fitted(): Range;
|
|
66
|
+
/** With `to`: a band category's name on the axis. */
|
|
67
|
+
nameOf(key: BandKey): string;
|
|
68
|
+
/** With `to`: what the inner layer needs of the far end (the same object while unchanged). */
|
|
69
|
+
transition: GroupTransition<T> | undefined;
|
|
70
|
+
}
|
|
71
|
+
/** The props {@link createGroupData}'s function reads. */
|
|
72
|
+
export interface GroupDataProps<T> {
|
|
73
|
+
data: readonly T[];
|
|
74
|
+
to?: readonly T[];
|
|
75
|
+
blend?: number;
|
|
76
|
+
values?: Channel<T, readonly number[]>;
|
|
77
|
+
label?: Channel<T, string>;
|
|
78
|
+
series?: Channel<T, BandKey>;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Reads a box or violin preset's groups, names and (with `to`) the far end's, and lays out both
|
|
82
|
+
* ends' slots. Call once, in `setup`; call the result in each `update`. Each read is cached by
|
|
83
|
+
* the data and channels it depends on, so a frame of a `blend` or `progress` reads nothing again.
|
|
84
|
+
*
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
export declare function createGroupData<T>(): (props: GroupDataProps<T>) => GroupData<T>;
|
|
88
|
+
/** The preset props the frame of a box or violin plot reads. */
|
|
89
|
+
export interface PresetFrameProps {
|
|
90
|
+
width: number;
|
|
91
|
+
height: number;
|
|
92
|
+
center?: Point;
|
|
93
|
+
yRange?: Range;
|
|
94
|
+
legend?: boolean | "right" | "top";
|
|
95
|
+
series?: unknown;
|
|
96
|
+
colors?: readonly ColorInput[];
|
|
97
|
+
yAxis?: boolean | ChartYAxisOptions;
|
|
98
|
+
progress?: number;
|
|
99
|
+
zIndex?: number;
|
|
100
|
+
visible?: boolean;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* A band category's name on a box or violin plot's x axis: with `to`, the
|
|
104
|
+
* name at the nearer end; with names as slots, the key; else the datum's
|
|
105
|
+
* label.
|
|
106
|
+
*
|
|
107
|
+
* @internal
|
|
108
|
+
*/
|
|
109
|
+
export declare function categoryName(read: GroupData<unknown>, key: BandKey, index: number): string;
|
|
110
|
+
/**
|
|
111
|
+
* The props of the `chart` a box or violin preset draws in: a band x axis
|
|
112
|
+
* over the slots (named by the labels), a value y axis fitted to every
|
|
113
|
+
* sample (both ends' under a transition, through the layer's report).
|
|
114
|
+
*
|
|
115
|
+
* @param band - The band axis options the preset adds (padding, font size,
|
|
116
|
+
* line), and its `categoryLabel` (keep it one function for the preset's
|
|
117
|
+
* life, reading the latest groups, so the axis options compare equal).
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
120
|
+
export declare function presetChartProps(props: PresetFrameProps, read: GroupData<unknown>, band: {
|
|
121
|
+
padding?: number;
|
|
122
|
+
numberFontSize: number;
|
|
123
|
+
numberGap?: number;
|
|
124
|
+
line: boolean;
|
|
125
|
+
categoryLabel: (key: BandKey, index: number) => string;
|
|
126
|
+
}): Partial<ChartProps>;
|
|
127
|
+
/**
|
|
128
|
+
* Writes the props of `next` that differ by structure from `last` (functions
|
|
129
|
+
* by identity) to `node`, so a preset's update leaves its chart alone when
|
|
130
|
+
* nothing it passes changed. Returns `next`, the new `last`.
|
|
131
|
+
*
|
|
132
|
+
* @internal
|
|
133
|
+
*/
|
|
134
|
+
export declare function updateChanged<P extends object>(node: SceneNode<P>, next: Partial<P>, last: Partial<P> | undefined, same?: (a: unknown, b: unknown) => boolean): Partial<P>;
|
|
135
|
+
/** The staging props a preset passes through to its layer. */
|
|
136
|
+
export interface PresetTransitionProps {
|
|
137
|
+
blend?: number;
|
|
138
|
+
staging?: JoinStaging;
|
|
139
|
+
enterStagger?: number;
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=groups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../src/statistics/groups.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAIhD,iFAAiF;AACjF,eAAO,MAAM,SAAS,MAAM,CAAC;AAE7B,0EAA0E;AAC1E,MAAM,WAAW,QAAQ;IACxB,UAAU,EAAE,OAAO,EAAE,CAAC;IACtB,+EAA+E;IAC/E,KAAK,EAAE,OAAO,CAAC;IACf,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;CAC/B;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CACvB,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,SAAS,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,GAAG,SAAS,EACnD,IAAI,EAAE,SAAS,OAAO,EAAE,GACtB,QAAQ,CAaV;AAED,mFAAmF;AACnF,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE;QAAE,UAAU,EAAE,OAAO,EAAE,CAAC;QAAC,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAA;KAAE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a,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CACvD,GACC,OAAO,CAAC,UAAU,CAAC,CAgCrB;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAC7C,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,EAClB,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,SAAS,EAC5B,IAAI,GAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,KAAK,OAAmB,GACnD,OAAO,CAAC,CAAC,CAAC,CAUZ;AAED,8DAA8D;AAC9D,MAAM,WAAW,qBAAqB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Family barrel: statistics. Owned by its family; re-exported from the package entry. */
|
|
2
|
+
export type { BoxPlotProps } from "./box-plot";
|
|
3
|
+
export { boxPlot } from "./box-plot";
|
|
4
|
+
export type { ErrorBarProps, ErrorMagnitude } from "./error-bar";
|
|
5
|
+
export { errorBar } from "./error-bar";
|
|
6
|
+
export type { ViolinPlotProps } from "./violin-plot";
|
|
7
|
+
export { violinPlot } from "./violin-plot";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/statistics/index.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAE1F,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|