react-candlesticks 0.0.9 → 0.0.10

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.
@@ -24,6 +24,8 @@ interface ChartPropsBase extends Omit<HTMLAttributes<HTMLDivElement>, 'onScroll'
24
24
  initialScrollToLatest?: boolean;
25
25
  onScroll?: (newScrollOffset: number) => void;
26
26
  onZoom?: (newIntervalWidthPx: number) => void;
27
+ enableScroll?: boolean;
28
+ enableZoom?: boolean;
27
29
  }
28
30
  interface PanelsAsPropChartProps extends ChartPropsBase {
29
31
  panels?: readonly [PanelConfig, ...PanelConfig[]];
@@ -35,5 +37,5 @@ interface PanelsAsChildrenChartProps extends ChartPropsBase {
35
37
  }
36
38
  type PanelsProps = PanelsAsPropChartProps | PanelsAsChildrenChartProps;
37
39
  export type ChartProps = ChartPropsBase & PanelsProps;
38
- declare const _default: import('react').MemoExoticComponent<({ width, height, intervalWidthPx, granularity, backgroundColor, xAxis, grid, crosshairs, borders, theme, panels, data, scrollToLatestMargin, initialScrollToLatest, onScroll, onZoom, children, ...props }: ChartProps) => JSX.Element>;
40
+ declare const _default: import('react').MemoExoticComponent<({ width, height, intervalWidthPx, granularity, backgroundColor, xAxis, grid, crosshairs, borders, theme, panels, data, scrollToLatestMargin, initialScrollToLatest, onScroll, onZoom, enableScroll, enableZoom, children, ...props }: ChartProps) => JSX.Element>;
39
41
  export default _default;
@@ -16,6 +16,8 @@ declare const chartPropTypes: {
16
16
  initialScrollToLatest: PropTypes.Requireable<boolean>;
17
17
  onScroll: PropTypes.Requireable<(...args: any[]) => any>;
18
18
  onZoom: PropTypes.Requireable<(...args: any[]) => any>;
19
+ enableScroll: PropTypes.Requireable<boolean>;
20
+ enableZoom: PropTypes.Requireable<boolean>;
19
21
  panels: InternalPropTypeValidator;
20
22
  children: InternalPropTypeValidator;
21
23
  };
@@ -8,6 +8,8 @@ export interface InteractiveAreaProps {
8
8
  onScroll: (deltaX: number, deltaY: number, wheel?: boolean) => void;
9
9
  onMouseMove: (clientX: number, clientY: number, isOverButton?: boolean) => void;
10
10
  onZoom: (delta: number) => void;
11
+ enableScroll: boolean;
12
+ enableZoom: boolean;
11
13
  }
12
- declare const _default: import('react').MemoExoticComponent<({ onScroll, onMouseMove, onZoom, }: InteractiveAreaProps) => import("react/jsx-runtime").JSX.Element>;
14
+ declare const _default: import('react').MemoExoticComponent<({ onScroll, onMouseMove, onZoom, enableScroll, enableZoom, }: InteractiveAreaProps) => import("react/jsx-runtime").JSX.Element>;
13
15
  export default _default;
@@ -22,6 +22,8 @@ export interface StatefulChartProps {
22
22
  initialScrollToLatest: boolean;
23
23
  onScroll?: (newScrollOffset: number) => void;
24
24
  onZoom?: (newIntervalSize: number) => void;
25
+ enableScroll: boolean;
26
+ enableZoom: boolean;
25
27
  }
26
- declare const _default: import('react').MemoExoticComponent<({ chartWidth, chartHeight, intervalSize, granularity, config, panels, layout, indexProvider, dataMap, initialLayersData, maxLookback, maxLookForward, scrollToLatestMargin, initialScrollToLatest, onScroll, onZoom, }: StatefulChartProps) => import("react/jsx-runtime").JSX.Element>;
28
+ declare const _default: import('react').MemoExoticComponent<({ chartWidth, chartHeight, intervalSize, granularity, config, panels, layout, indexProvider, dataMap, initialLayersData, maxLookback, maxLookForward, scrollToLatestMargin, initialScrollToLatest, onScroll, onZoom, enableScroll, enableZoom, }: StatefulChartProps) => import("react/jsx-runtime").JSX.Element>;
27
29
  export default _default;