chartifypdf 0.5.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.
@@ -45,6 +45,7 @@ export interface ZoomConfig {
45
45
  requireModifierKey?: boolean;
46
46
  modifierKey?: "shift" | "ctrl" | "alt";
47
47
  enableClickZoom?: boolean;
48
+ wheelAction?: "zoom" | "pan";
48
49
  }
49
50
  export interface ChartMargin {
50
51
  top: number;
@@ -76,6 +77,15 @@ export interface ContextMenuConfig {
76
77
  textColor?: string;
77
78
  borderColor?: string;
78
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
+ }
79
89
  export interface ExportConfig {
80
90
  enabled?: boolean;
81
91
  buttonPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
@@ -101,4 +111,5 @@ export interface LineChartProps {
101
111
  peaks?: PeakConfig[];
102
112
  contextMenu?: ContextMenuConfig;
103
113
  export?: ExportConfig;
114
+ scrollbar?: ScrollbarConfig;
104
115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chartifypdf",
3
- "version": "0.5.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",