@rfkit/charts 1.1.1 → 1.1.3

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.
@@ -5,4 +5,4 @@
5
5
  * @returns {T} 下一个值
6
6
  */
7
7
  export declare const nextItem: <T extends string | number>(v: T, list: T[]) => T;
8
- export declare function findNeighbors(currentValue: any, arr: any[], deltaY: number): any;
8
+ export declare function findNeighbors(currentValue: number, arr: number[], deltaY: number): number;
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
+ import type { MarkerType } from '../../../types';
2
3
  interface Props {
3
4
  heatmapMode: boolean;
4
- markers: Array<any>;
5
+ markers: Array<MarkerType>;
5
6
  onChange: (e: {
6
7
  id: string;
7
8
  peak?: boolean;
@@ -4,7 +4,7 @@ export default class FreeMarkers extends Markers {
4
4
  /**
5
5
  * 格式化marker
6
6
  */
7
- formatMarker(e: MarkerType): MarkerType | {
7
+ formatMarker(e: MarkerType): {
8
8
  left: number;
9
9
  top: number;
10
10
  frequency: any;
@@ -10,6 +10,7 @@ export default class LineMarkers extends Markers {
10
10
  frequency: any;
11
11
  level: any;
12
12
  levelFormatted: any;
13
+ timestamp: number;
13
14
  id: string;
14
15
  label: string;
15
16
  name: string;