@texturehq/edges 1.8.0 → 1.8.2
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/components.manifest.json +19 -3
- package/dist/generated/tailwind-tokens-dark.css +36 -0
- package/dist/generated/tailwind-tokens-light.css +36 -0
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/styles.css +101 -5
- package/dist/utilities.manifest.json +2 -2
- package/package.json +5 -1
package/dist/index.d.cts
CHANGED
|
@@ -1402,12 +1402,17 @@ interface LegendItem {
|
|
|
1402
1402
|
interface ChartBottomBarProps {
|
|
1403
1403
|
items: LegendItem[];
|
|
1404
1404
|
onExport: (type: ExportType) => void | Promise<void>;
|
|
1405
|
+
marginLeft?: number;
|
|
1406
|
+
marginRight?: number;
|
|
1407
|
+
isZoomed?: boolean;
|
|
1408
|
+
onResetZoom?: () => void;
|
|
1405
1409
|
}
|
|
1406
1410
|
/**
|
|
1407
1411
|
* ChartBottomBar
|
|
1408
1412
|
*
|
|
1409
1413
|
* Chart footer component with legend and export functionality.
|
|
1410
1414
|
* Displays color-coded legend items and provides export options for CSV, SVG, and PNG formats.
|
|
1415
|
+
* Respects chart margins to align legend with Y-axis and export button with X-axis end.
|
|
1411
1416
|
*/
|
|
1412
1417
|
declare const ChartBottomBar: React__default.FC<ChartBottomBarProps>;
|
|
1413
1418
|
|
|
@@ -1422,6 +1427,14 @@ interface ChartContainerProps {
|
|
|
1422
1427
|
*/
|
|
1423
1428
|
yFormatter?: YFormatType;
|
|
1424
1429
|
isLoading?: boolean;
|
|
1430
|
+
/** Enable scroll-to-zoom and pan on main chart */
|
|
1431
|
+
enableZoom?: boolean;
|
|
1432
|
+
/** Show brush overview chart below */
|
|
1433
|
+
enableBrush?: boolean;
|
|
1434
|
+
/** Height of brush chart (default: 60px) */
|
|
1435
|
+
brushHeight?: number;
|
|
1436
|
+
/** Callback when zoom range changes */
|
|
1437
|
+
onZoomChange?: (domain: [Date, Date] | null) => void;
|
|
1425
1438
|
}
|
|
1426
1439
|
/**
|
|
1427
1440
|
* ChartContainer
|
package/dist/index.d.ts
CHANGED
|
@@ -1402,12 +1402,17 @@ interface LegendItem {
|
|
|
1402
1402
|
interface ChartBottomBarProps {
|
|
1403
1403
|
items: LegendItem[];
|
|
1404
1404
|
onExport: (type: ExportType) => void | Promise<void>;
|
|
1405
|
+
marginLeft?: number;
|
|
1406
|
+
marginRight?: number;
|
|
1407
|
+
isZoomed?: boolean;
|
|
1408
|
+
onResetZoom?: () => void;
|
|
1405
1409
|
}
|
|
1406
1410
|
/**
|
|
1407
1411
|
* ChartBottomBar
|
|
1408
1412
|
*
|
|
1409
1413
|
* Chart footer component with legend and export functionality.
|
|
1410
1414
|
* Displays color-coded legend items and provides export options for CSV, SVG, and PNG formats.
|
|
1415
|
+
* Respects chart margins to align legend with Y-axis and export button with X-axis end.
|
|
1411
1416
|
*/
|
|
1412
1417
|
declare const ChartBottomBar: React__default.FC<ChartBottomBarProps>;
|
|
1413
1418
|
|
|
@@ -1422,6 +1427,14 @@ interface ChartContainerProps {
|
|
|
1422
1427
|
*/
|
|
1423
1428
|
yFormatter?: YFormatType;
|
|
1424
1429
|
isLoading?: boolean;
|
|
1430
|
+
/** Enable scroll-to-zoom and pan on main chart */
|
|
1431
|
+
enableZoom?: boolean;
|
|
1432
|
+
/** Show brush overview chart below */
|
|
1433
|
+
enableBrush?: boolean;
|
|
1434
|
+
/** Height of brush chart (default: 60px) */
|
|
1435
|
+
brushHeight?: number;
|
|
1436
|
+
/** Callback when zoom range changes */
|
|
1437
|
+
onZoomChange?: (domain: [Date, Date] | null) => void;
|
|
1425
1438
|
}
|
|
1426
1439
|
/**
|
|
1427
1440
|
* ChartContainer
|