@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/CHANGELOG.md +22 -0
- package/dist/cards/cartesian-card.d.ts +7 -1
- package/dist/chart-context.d.ts +8 -1
- package/dist/chart.d.ts +1 -1
- package/dist/engine/decimate.d.ts +25 -0
- package/dist/finance.js +209 -208
- package/dist/index.js +2048 -2064
- package/dist/primitives/runoff.d.ts +6 -7
- package/dist/{report-context-Cz0AYdV2.js → report-context-CkzH-r8B.js} +130 -129
- package/dist/{skeleton-block-Uf1lywJi.js → skeleton-block-DvtzSsgP.js} +1835 -1670
- package/dist/types.d.ts +6 -0
- package/dist/use-chart-width.d.ts +10 -0
- package/dist/watch.js +1 -1
- package/package.json +1 -1
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-
|
|
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";
|