chartifypdf 0.4.0 → 0.6.0
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/README.md +6 -5
- package/dist/components/Scrollbar.d.ts +18 -0
- package/dist/hooks/useZoom.d.ts +4 -1
- package/dist/index.d.ts +18 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types/chart.types.d.ts +13 -1
- package/package.json +1 -1
|
@@ -42,8 +42,10 @@ export interface ZoomConfig {
|
|
|
42
42
|
controlsPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
43
43
|
enableWheel?: boolean;
|
|
44
44
|
enablePan?: boolean;
|
|
45
|
-
|
|
45
|
+
requireModifierKey?: boolean;
|
|
46
|
+
modifierKey?: "shift" | "ctrl" | "alt";
|
|
46
47
|
enableClickZoom?: boolean;
|
|
48
|
+
wheelAction?: "zoom" | "pan";
|
|
47
49
|
}
|
|
48
50
|
export interface ChartMargin {
|
|
49
51
|
top: number;
|
|
@@ -75,6 +77,15 @@ export interface ContextMenuConfig {
|
|
|
75
77
|
textColor?: string;
|
|
76
78
|
borderColor?: string;
|
|
77
79
|
}
|
|
80
|
+
export interface ScrollbarConfig {
|
|
81
|
+
enabled?: boolean;
|
|
82
|
+
height?: number;
|
|
83
|
+
showMiniChart?: boolean;
|
|
84
|
+
thumbColor?: string;
|
|
85
|
+
gripColor?: string;
|
|
86
|
+
overlayColor?: string;
|
|
87
|
+
trackColor?: string;
|
|
88
|
+
}
|
|
78
89
|
export interface ExportConfig {
|
|
79
90
|
enabled?: boolean;
|
|
80
91
|
buttonPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
@@ -100,4 +111,5 @@ export interface LineChartProps {
|
|
|
100
111
|
peaks?: PeakConfig[];
|
|
101
112
|
contextMenu?: ContextMenuConfig;
|
|
102
113
|
export?: ExportConfig;
|
|
114
|
+
scrollbar?: ScrollbarConfig;
|
|
103
115
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chartifypdf",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "A zero-dependency React line chart component using pure SVG. Supports zoom, tooltip, responsive sizing, and customizable styling.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|