@rfkit/charts 1.2.26 → 1.2.29

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.
@@ -1,7 +1,8 @@
1
1
  import { type Props as SpectrumChartTypeProps } from '../../hooks/useSpectrumChartType';
2
+ import { type OccupancyPortalProps } from '../../modules/OccupancyPortal';
2
3
  import type { ParamsProps } from '../../types';
3
- export interface Props extends SpectrumChartTypeProps, ParamsProps {
4
- occupancyElementID?: string;
4
+ export interface Props extends SpectrumChartTypeProps, ParamsProps, OccupancyPortalProps {
5
+ children?: React.ReactNode;
5
6
  }
6
7
  declare const Chart: React.FC<Props>;
7
8
  export default Chart;
@@ -1,8 +1,11 @@
1
1
  import type React from 'react';
2
2
  import { ChartType } from '../../config';
3
- interface Props {
4
- type: ChartType;
3
+ export interface OccupancyPortalProps {
5
4
  occupancyElementID?: string;
5
+ occupancyAxisYElementID?: string;
6
+ }
7
+ interface Props extends OccupancyPortalProps {
8
+ type: ChartType;
6
9
  }
7
10
  declare const Chart: React.FC<Props>;
8
11
  export default Chart;
package/package.json CHANGED
@@ -5,6 +5,6 @@
5
5
  "types": "index.d.ts",
6
6
  "author": "Hxgh",
7
7
  "license": "MIT",
8
- "version": "1.2.26",
8
+ "version": "1.2.29",
9
9
  "private": false
10
10
  }
@@ -13,7 +13,7 @@ export declare const axisYTypeList: {
13
13
  inside: string;
14
14
  default: string;
15
15
  };
16
- export declare const weakenDefault = 1001;
16
+ export declare const DEFAULT_MAX_POINTS = 1001;
17
17
  export declare const intervalDefault: {
18
18
  start: number;
19
19
  end: number;
package/types/store.d.ts CHANGED
@@ -42,7 +42,7 @@ export interface ToolsBarProps {
42
42
  hiddenTools?: string[];
43
43
  }
44
44
  export interface SeriesProps {
45
- weaken: boolean | number;
45
+ maxPoints?: number;
46
46
  zoomMinSimulateWave: boolean;
47
47
  dataRate: number;
48
48
  forceDisplay: boolean;