@lilt-ui/charts 0.7.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 +6 -0
- package/dist/finance.js +132 -132
- package/dist/index.js +2064 -2080
- package/dist/{skeleton-block-C110l-2a.js → skeleton-block-DvtzSsgP.js} +295 -272
- package/dist/use-chart-width.d.ts +10 -0
- package/package.json +1 -1
|
@@ -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>;
|