@rfkit/charts 1.11.0 → 1.12.1

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.
@@ -3,7 +3,7 @@ interface Props {
3
3
  heatmapDefaultData?: Array<Array<number>>;
4
4
  onSubscriptionReadyChange?: (ready: boolean) => void;
5
5
  overview?: ReactNode;
6
- xyZoom?: boolean;
6
+ zoomMode?: 'disabled' | 'independent-xy' | 'linked-x';
7
7
  }
8
8
  declare const Heatmap: React.FC<Props>;
9
9
  export default Heatmap;
@@ -1,3 +1,4 @@
1
- import type { WaterfallSnapshot } from '@rfkit/spectrum-analyzer';
1
+ import type { TimestampedFloat32Array, WaterfallAnalyzer, WaterfallSnapshot } from '@rfkit/spectrum-analyzer';
2
+ export declare const setHeatmapWaterfallData: (analyzer: WaterfallAnalyzer, frames: readonly TimestampedFloat32Array[]) => Readonly<WaterfallSnapshot>;
2
3
  export declare const getHeatmapWaterfallSnapshot: (globalID: string) => Readonly<WaterfallSnapshot> | null;
3
4
  export declare const resetHeatmapViewport: (globalID: string) => boolean;
@@ -3,6 +3,7 @@ interface Props {
3
3
  id: string;
4
4
  value: number;
5
5
  onChange: (v: number) => void;
6
+ dragging?: boolean;
6
7
  }
7
8
  declare const Item: React.FC<Props>;
8
9
  export default Item;
@@ -4,6 +4,7 @@ interface UseMarkerEventsProps {
4
4
  markers: MarkerType[];
5
5
  display: boolean;
6
6
  fixed: boolean;
7
+ readonly: boolean;
7
8
  onCreateMarker: (e: {
8
9
  left: number;
9
10
  }) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rfkit/charts",
3
- "version": "1.11.0",
3
+ "version": "1.12.1",
4
4
  "type": "module",
5
5
  "description": "Chart components for wireless monitoring web applications",
6
6
  "exports": {
@@ -0,0 +1,36 @@
1
+ export interface RgbaColor {
2
+ r: number;
3
+ g: number;
4
+ b: number;
5
+ a: number;
6
+ }
7
+ type ColorMixTone = 'dark' | 'light';
8
+ interface AlphaMixDefinition {
9
+ name: string;
10
+ base: string;
11
+ weight: number;
12
+ mode: 'alpha';
13
+ }
14
+ interface SolidMixDefinition {
15
+ name: string;
16
+ base: string;
17
+ second: string;
18
+ weight: number;
19
+ mode: 'mix';
20
+ space: 'srgb' | 'oklab';
21
+ fallback?: string;
22
+ }
23
+ export type ColorMixDefinition = AlphaMixDefinition | SolidMixDefinition;
24
+ export declare const COLOR_MIX_DEFINITIONS: ColorMixDefinition[];
25
+ interface ThemeVariableDefinitionLike {
26
+ name: string;
27
+ dark: string;
28
+ light: string;
29
+ }
30
+ export declare const parseThemeColor: (value: string) => RgbaColor | null;
31
+ export declare const mixThemeColors: (foreground: RgbaColor, background: RgbaColor, weight: number) => RgbaColor;
32
+ export declare const mixOklabColors: (foreground: RgbaColor, background: RgbaColor, weight: number) => RgbaColor;
33
+ export declare const toRgbCss: (color: RgbaColor) => string;
34
+ export declare const toRgbaCss: (color: RgbaColor) => string;
35
+ export declare const buildColorMixDeclarations: (configs: ThemeVariableDefinitionLike[], tone: ColorMixTone) => string;
36
+ export {};
@@ -33,6 +33,7 @@ export interface MarkerProps {
33
33
  enabled: boolean;
34
34
  visible: boolean;
35
35
  fixed?: boolean;
36
+ readonly?: boolean;
36
37
  mode: MarkerMode;
37
38
  maxCount: number;
38
39
  onChange: (event: MarkerEventType, markers?: MarkerType[]) => void;
@@ -20,6 +20,7 @@ export interface LimitProps {
20
20
  value: number[];
21
21
  range?: number[];
22
22
  label?: string;
23
+ unified?: boolean;
23
24
  onChange: (l: number[]) => void;
24
25
  }
25
26
  export interface CursorEventSnapshot {