@lilt-ui/charts 0.6.0 → 0.7.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/dist/types.d.ts CHANGED
@@ -299,6 +299,12 @@ interface ChartPlotCommonProps {
299
299
  * up with a bar or candle pane synced beside it. Ignores `axisInset`.
300
300
  */
301
301
  slots?: boolean;
302
+ /**
303
+ * When a line or area has more observations than the plot has pixels, draw only each pixel
304
+ * column's first, last, lowest and highest. The ink is the same and stays fast; hover, values
305
+ * and exports still read every observation. Defaults to true.
306
+ */
307
+ decimate?: boolean;
302
308
  /** Use 'fill' to size the plot from its flex container; otherwise use a pixel height. */
303
309
  height?: number | 'fill';
304
310
  compactHeight?: number;
@@ -1,3 +1,13 @@
1
+ /**
2
+ * An element's laid-out size, ignoring CSS transforms, so a chart drawn into a scaled-down frame
3
+ * (a thumbnail, a zoomed preview) still lays out at its own size instead of a squashed one. The
4
+ * bounding box is exact but includes transforms; offset sizes ignore them but round, so they are
5
+ * used only when a transform has changed the box.
6
+ */
7
+ export declare function layoutSize(element: HTMLElement): {
8
+ width: number;
9
+ height: number;
10
+ };
1
11
  /** Measured width keeps SVG text at a readable CSS-pixel size in compact cards. */
2
12
  export declare function useChartWidth<T extends HTMLElement>(): {
3
13
  ref: import('react').RefObject<T | null>;
package/dist/watch.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { S as e, a as t, i as n, l as r, n as i, o as a, r as o, s, t as c, y as l } from "./report-context-Cz0AYdV2.js";
2
+ import { S as e, a as t, i as n, l as r, n as i, o as a, r as o, s, t as c, y as l } from "./report-context-CkzH-r8B.js";
3
3
  import { Children as u, createContext as d, isValidElement as f, useCallback as p, useContext as m, useEffect as h, useMemo as g, useReducer as ee, useRef as _, useState as v } from "react";
4
4
  import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
5
5
  import { AnimatePresence as S, motion as te } from "motion/react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lilt-ui/charts",
3
- "version": "0.6.0",
3
+ "version": "0.7.1",
4
4
  "description": "Beautiful, key-typed React chart cards with linked hover, targets, forecasts, finance charts, and calm motion.",
5
5
  "keywords": [
6
6
  "react",