@silverpoint/core 0.6.0 → 0.7.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.
Files changed (46) hide show
  1. package/README.md +14 -0
  2. package/dist/catalog.d.ts +2 -2
  3. package/dist/catalog.js +4 -2
  4. package/dist/catalog.js.map +1 -1
  5. package/dist/{chunk-OLYKR5PS.js → chunk-46QELMCG.js} +8 -213
  6. package/dist/chunk-46QELMCG.js.map +1 -0
  7. package/dist/chunk-5MP3BLZK.js +48 -0
  8. package/dist/chunk-5MP3BLZK.js.map +1 -0
  9. package/dist/chunk-6YFO7OP3.js +84 -0
  10. package/dist/chunk-6YFO7OP3.js.map +1 -0
  11. package/dist/chunk-ANJSW5JX.js +93 -0
  12. package/dist/chunk-ANJSW5JX.js.map +1 -0
  13. package/dist/{chunk-PD4MD7JU.js → chunk-E5CC2NNQ.js} +5 -3
  14. package/dist/chunk-E5CC2NNQ.js.map +1 -0
  15. package/dist/chunk-G7N4X5XD.js +12 -0
  16. package/dist/chunk-G7N4X5XD.js.map +1 -0
  17. package/dist/chunk-NI7B6UEO.js +24 -0
  18. package/dist/chunk-NI7B6UEO.js.map +1 -0
  19. package/dist/chunk-WYFRHI4S.js +179 -0
  20. package/dist/chunk-WYFRHI4S.js.map +1 -0
  21. package/dist/contrast-siWF_R5o.d.ts +30 -0
  22. package/dist/dashboard-demos.d.ts +2 -2
  23. package/dist/index.d.ts +13 -10
  24. package/dist/index.js +20 -9
  25. package/dist/index.js.map +1 -1
  26. package/dist/{model-CLhtoG75.d.ts → model-DVVt59AB.d.ts} +1 -1
  27. package/dist/palettes.d.ts +29 -0
  28. package/dist/palettes.js +79 -0
  29. package/dist/palettes.js.map +1 -0
  30. package/dist/{props-Dq8FC8GG.d.ts → props-BZ9CcrGv.d.ts} +53 -1
  31. package/dist/timeline.d.ts +90 -0
  32. package/dist/timeline.js +125 -0
  33. package/dist/timeline.js.map +1 -0
  34. package/dist/{types-B81k-s9_.d.ts → types-BT3Xm7fP.d.ts} +3 -1
  35. package/dist/types-D5ys35fF.d.ts +576 -0
  36. package/dist/types-DHBJ0PzV.d.ts +57 -0
  37. package/dist/ui-demos.d.ts +14 -3
  38. package/dist/ui-demos.js +163 -1
  39. package/dist/ui-demos.js.map +1 -1
  40. package/dist/ui.d.ts +346 -325
  41. package/dist/ui.js +932 -118
  42. package/dist/ui.js.map +1 -1
  43. package/dist/view-DteS9glE.d.ts +82 -0
  44. package/package.json +13 -1
  45. package/dist/chunk-OLYKR5PS.js.map +0 -1
  46. package/dist/chunk-PD4MD7JU.js.map +0 -1
package/README.md CHANGED
@@ -30,6 +30,20 @@ The recipes of the second catalog — the histogram, the box plot, the sunburst,
30
30
  rest of the 27 charts added in `0.6.0` — are on their own entry, `@silverpoint/core/catalog`, so the main entry
31
31
  stays small; their props types are in the main entry with every other chart's.
32
32
 
33
+ Three more entries hold what only some applications need:
34
+
35
+ | Entry | Holds |
36
+ |---|---|
37
+ | `@silverpoint/core/ui` | The views of the 38 UI components, their catalog and their types |
38
+ | `@silverpoint/core/palettes` | The six palette presets, `checkPalette` and `contrastRatio` |
39
+ | `@silverpoint/core/timeline` | What `SpTimeline` shares across adapters: its surface, its inking of TimelineJS, the types of TimelineJS's JSON |
40
+
41
+ ```ts
42
+ import { checkPalette, sanguine } from '@silverpoint/core/palettes';
43
+
44
+ export const findings = checkPalette({ ...sanguine, ink: '#5A1F14' });
45
+ ```
46
+
33
47
  The geometry of the data is exact: the ground's hand-drawn inking only touches strokes that
34
48
  carry no data, and it is deterministic for a given seed.
35
49
 
package/dist/catalog.d.ts CHANGED
@@ -1,5 +1,5 @@
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';
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-BZ9CcrGv.js';
2
+ import { C as ChartRecipe } from './model-DVVt59AB.js';
3
3
 
4
4
  /** `HistogramChart` recipe (REQ-400): raw observations binned in the core, abutting bins. */
5
5
  declare const histogramChart: ChartRecipe<HistogramChartProps>;
package/dist/catalog.js CHANGED
@@ -1,5 +1,7 @@
1
- import { modelBase, measure, cardLayout, emptyModel, readyModel, isoDate, createPrng, parseIsoDate } from './chunk-PD4MD7JU.js';
2
- import { accessorName, formatNumber, AXIS_BAND, PLOT_INSET, cartesianPlot, horizontalValueAxis, valueAxis, linearScale, rectPath, TICK_CHAR, circlePath, warnValue, numberFormatter, legend, extent, formatValue, read, resolveSeed, fitText, readSeries, checkVolume, formatCategory, seriesValues, categoryAxis, signedChange, categoryLabels, spreadLabels, finite, pillPath, inset, polarFrame, sectorPath, pointAt, sectorLegend, checkSectors, readSectors, ringTones, ringTone, RIM_LABELS, LEGEND_BAND, toneOf, TONE_SCALE, diagnose, polarLabel, bandScale } from './chunk-OLYKR5PS.js';
1
+ import { modelBase, measure, cardLayout, emptyModel, readyModel, isoDate, createPrng, parseIsoDate } from './chunk-E5CC2NNQ.js';
2
+ import { accessorName, formatNumber, AXIS_BAND, PLOT_INSET, cartesianPlot, horizontalValueAxis, valueAxis, linearScale, rectPath, TICK_CHAR, circlePath, warnValue, numberFormatter, legend, extent, formatValue, read, resolveSeed, fitText, readSeries, checkVolume, formatCategory, seriesValues, categoryAxis, signedChange, categoryLabels, spreadLabels, finite, pillPath, inset, polarFrame, sectorPath, pointAt, sectorLegend, checkSectors, readSectors, ringTones, ringTone, RIM_LABELS, LEGEND_BAND, toneOf, TONE_SCALE, polarLabel, bandScale } from './chunk-46QELMCG.js';
3
+ import './chunk-5MP3BLZK.js';
4
+ import { diagnose } from './chunk-WYFRHI4S.js';
3
5
  import { line, curveBumpX, area, curveMonotoneX, curveMonotoneY } from 'd3-shape';
4
6
 
5
7
  // src/charts/shared/contracts.ts