@lilt-ui/charts 0.12.2 → 0.13.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.
Files changed (72) hide show
  1. package/CHANGELOG.md +288 -270
  2. package/README.md +21 -59
  3. package/dist/cards/arc-bridges-card.d.ts +17 -0
  4. package/dist/cards/area-chart-card.d.ts +1 -10
  5. package/dist/cards/block-city-card.d.ts +21 -0
  6. package/dist/cards/calendar-heatmap-card.d.ts +31 -1
  7. package/dist/cards/cartesian-card.d.ts +9 -27
  8. package/dist/cards/chart-card.d.ts +1 -12
  9. package/dist/cards/chord-loom-card.d.ts +17 -0
  10. package/dist/cards/circle-archipelago-card.d.ts +9 -0
  11. package/dist/cards/cluster-constellation-card.d.ts +16 -0
  12. package/dist/cards/comparison-forms.d.ts +30 -0
  13. package/dist/cards/composition-forms.d.ts +10 -0
  14. package/dist/cards/contour-islands-card.d.ts +25 -0
  15. package/dist/cards/density-contours.d.ts +3 -0
  16. package/dist/cards/distribution-forms.d.ts +37 -0
  17. package/dist/cards/event-helix-card.d.ts +26 -0
  18. package/dist/cards/helix-ribbons-card.d.ts +14 -0
  19. package/dist/cards/hex-city-card.d.ts +25 -0
  20. package/dist/cards/hierarchy-layouts.d.ts +21 -0
  21. package/dist/cards/horizon-folds-card.d.ts +10 -0
  22. package/dist/cards/horizontal-bar-chart-card.d.ts +1 -1
  23. package/dist/cards/intersection-towers-card.d.ts +9 -0
  24. package/dist/cards/line-chart-card.d.ts +4 -11
  25. package/dist/cards/link-readings.d.ts +26 -0
  26. package/dist/cards/marimekko-blocks-card.d.ts +10 -0
  27. package/dist/cards/observations-card.d.ts +45 -2
  28. package/dist/cards/parallel-ribbons-card.d.ts +27 -0
  29. package/dist/cards/prism-grid.d.ts +58 -0
  30. package/dist/cards/prism.d.ts +42 -0
  31. package/dist/cards/progress-forms.d.ts +21 -0
  32. package/dist/cards/rank-ribbons-card.d.ts +22 -0
  33. package/dist/cards/ridgeline-card.d.ts +24 -0
  34. package/dist/cards/scatter-chart-card.d.ts +19 -1
  35. package/dist/cards/sculpted-geometry.d.ts +18 -0
  36. package/dist/cards/skyline-card.d.ts +12 -0
  37. package/dist/cards/spatial-composition-layouts.d.ts +14 -0
  38. package/dist/cards/spatial-geometry.d.ts +34 -0
  39. package/dist/cards/spatial-hierarchy.d.ts +10 -0
  40. package/dist/cards/spatial-point-layouts.d.ts +16 -0
  41. package/dist/cards/spatial-series-layouts.d.ts +12 -0
  42. package/dist/cards/spiral-year-card.d.ts +17 -0
  43. package/dist/cards/sunburst-terraces-card.d.ts +10 -0
  44. package/dist/cards/ternary-prism-card.d.ts +13 -0
  45. package/dist/cards/terrain-card.d.ts +21 -0
  46. package/dist/cards/treemap-chart-card.d.ts +3 -1
  47. package/dist/cards/trend-forms.d.ts +11 -0
  48. package/dist/cards/voxel-cloud-card.d.ts +16 -0
  49. package/dist/cards/voxel-waffle-card.d.ts +18 -0
  50. package/dist/cards/wind-rose-card.d.ts +11 -0
  51. package/dist/engine/domains.d.ts +0 -1
  52. package/dist/finance.js +310 -311
  53. package/dist/index.d.ts +39 -4
  54. package/dist/index.js +8919 -2948
  55. package/dist/{skeleton-block-DIgcA9t6.js → skeleton-block-BPoUJvcR.js} +3596 -2971
  56. package/dist/styles.css +1 -1
  57. package/package.json +79 -85
  58. package/dist/report-context-CIUa6iiD.js +0 -1101
  59. package/dist/watch/board/board-state.d.ts +0 -72
  60. package/dist/watch/board/board-toast.d.ts +0 -19
  61. package/dist/watch/board/chart-board.d.ts +0 -93
  62. package/dist/watch/board/report-context.d.ts +0 -3
  63. package/dist/watch/engine/describe.d.ts +0 -9
  64. package/dist/watch/engine/explain.d.ts +0 -48
  65. package/dist/watch/engine/normal.d.ts +0 -114
  66. package/dist/watch/engine/robust.d.ts +0 -7
  67. package/dist/watch/engine/rules.d.ts +0 -22
  68. package/dist/watch/engine/status.d.ts +0 -39
  69. package/dist/watch/index.d.ts +0 -14
  70. package/dist/watch/normal-layer.d.ts +0 -18
  71. package/dist/watch.d.ts +0 -2
  72. package/dist/watch.js +0 -636
@@ -0,0 +1,18 @@
1
+ import { NumericKey, TextKey } from './keys';
2
+ import { ObservationsCardProps, ObservationScene } from './observations-card';
3
+ export interface VoxelWaffleCardProps<Row, Key extends NumericKey<Row>> extends Omit<ObservationsCardProps<Row>, 'legendSwatch'> {
4
+ category: TextKey<Row>;
5
+ value: Key;
6
+ /** How many cubes make the whole, default 100. */
7
+ units?: number;
8
+ /** Cubes along each side of a layer, default 5. */
9
+ footprint?: number;
10
+ }
11
+ /** Whole cubes per category that add up to exactly `units`, by largest remainder. */
12
+ export declare function allocateUnits(values: readonly number[], units: number): number[];
13
+ /**
14
+ * Shares of a whole as a block of cubes: each category fills its share of `units` cubes, layer by
15
+ * layer from the floor up, so the block reads like a stacked waffle you can count.
16
+ */
17
+ export declare function voxelLayout<Row>(data: readonly Row[], category: string, value: string, width: number, height: number, options?: Pick<VoxelWaffleCardProps<Row, NumericKey<Row>>, 'units' | 'footprint' | 'color'>): ObservationScene<Row>;
18
+ export declare function VoxelWaffleCard<Row, const Key extends NumericKey<Row>>({ category, value, units, footprint, color, height, ...props }: VoxelWaffleCardProps<Row, Key>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { NumericKey, TextKey } from './keys';
2
+ import { ObservationsCardProps } from './observations-card';
3
+ export { windRoseLayout } from './spatial-composition-layouts';
4
+ export interface WindRoseCardProps<Row, Key extends NumericKey<Row>> extends ObservationsCardProps<Row> {
5
+ direction: NumericKey<Row>;
6
+ band: TextKey<Row>;
7
+ value: Key;
8
+ sectors?: number;
9
+ tilt?: number;
10
+ }
11
+ export declare function WindRoseCard<Row, const Key extends NumericKey<Row>>({ direction, band, value, sectors, tilt, color, height, depth, ...props }: WindRoseCardProps<Row, Key>): import("react/jsx-runtime").JSX.Element;
@@ -3,7 +3,6 @@ import { NormalizedData } from './normalize';
3
3
  /** A row's finite companion values for one series; fields share the series' unit. */
4
4
  export declare function fieldValues(fields: Readonly<Record<string, number | null>> | undefined): number[];
5
5
  export declare function computeYDomain<T>(data: NormalizedData<T>, series: readonly ChartSeries<T>[], config?: ChartYConfig): readonly [number, number];
6
- export declare function interpolateDomain(from: readonly [number, number], to: readonly [number, number], progress: number): readonly [number, number];
7
6
  /** The smallest of 1, 2, 2.5, 5 × 10ⁿ at or above `value`. */
8
7
  export declare function niceCeil(value: number): number;
9
8
  /**