@rfkit/charts 1.14.2 → 1.15.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rfkit/charts",
3
- "version": "1.14.2",
3
+ "version": "1.15.0",
4
4
  "type": "module",
5
5
  "description": "Chart components for wireless monitoring web applications",
6
6
  "exports": {
package/store/Params.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type React from 'react';
2
2
  import type { AxisYProps, ParamsProps, StoreState } from '../types/index.js';
3
+ export declare const initializeAxisYProps: (axisY?: Partial<AxisYProps>) => Partial<AxisYProps> | undefined;
3
4
  export declare function mergeParameter<K extends keyof StoreState>(key: K, params: StoreState[K] | Partial<StoreState[K]> | null | undefined, state?: StoreState): StoreState[K];
4
5
  export declare function normalizeAxisYProps(axisY?: Partial<AxisYProps>): Partial<AxisYProps> | undefined;
5
6
  declare const Params: React.FC<ParamsProps>;
@@ -5,6 +5,7 @@ export interface AxisYProps {
5
5
  placement?: AxisPlacement;
6
6
  disabled?: boolean;
7
7
  gradientRibbon?: boolean;
8
+ defaultRange?: AxisYRange;
8
9
  realRange?: number[];
9
10
  range?: AxisYRange;
10
11
  renderRange?: AxisYRange;
@@ -40,6 +40,7 @@ export interface CursorEventSnapshot {
40
40
  export interface CursorProps {
41
41
  show: boolean;
42
42
  active: boolean;
43
+ crosshair?: boolean;
43
44
  event: CursorEventSnapshot | null;
44
45
  coord: TopRightBottomLeft;
45
46
  timeout: number;
@@ -17,7 +17,10 @@ interface ReactLikeEvent {
17
17
  clientY?: number;
18
18
  buttons?: number;
19
19
  }
20
- export declare function throttleRequestAnimationFrame<T = unknown>(func?: (e?: T | EventSnapshot) => void): (e?: T | ReactLikeEvent) => void;
20
+ export declare function throttleRequestAnimationFrame<T = unknown>(func?: (e?: T | EventSnapshot) => void): ((e?: T | ReactLikeEvent) => void) & {
21
+ flush: () => void;
22
+ cancel: () => void;
23
+ };
21
24
  export declare function throttleTimer<T = unknown>(func?: (e?: T) => void, wait?: number): (e?: T) => void;
22
25
  export declare const debounce: <T extends (...args: unknown[]) => unknown>(fn: T, delay?: number) => ((...args: Parameters<T>) => void) & {
23
26
  cancel: () => void;