@rfkit/charts 1.3.10 → 1.3.12

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,8 +1,10 @@
1
+ import type { ProcessingOptions } from '@rfkit/spectrum-analyzer';
1
2
  import { type UseSpectrumChartTypeProps as SpectrumChartTypeProps } from '../../hooks/spectrum';
2
3
  import { type OccupancyPortalProps } from '../../modules/OccupancyPortal';
3
4
  import type { ParamsProps } from '../../types';
4
5
  export interface Props extends SpectrumChartTypeProps, ParamsProps, OccupancyPortalProps {
5
6
  children?: React.ReactNode;
7
+ processing?: Partial<ProcessingOptions>;
6
8
  }
7
9
  declare const Chart: React.FC<Props>;
8
10
  export default Chart;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Fluorescence 渲染器
3
3
  */
4
- import { Fluorescence as Chart } from '@rfkit/renderer';
4
+ import { Fluorescence as Chart, type FluorescenceRenderMode } from '@rfkit/renderer';
5
5
  import { GradientRenderer, type GradientRenderState } from '../base';
6
6
  interface FluorescenceData {
7
7
  fluorescenceData: Uint32Array;
@@ -10,12 +10,16 @@ interface FluorescenceData {
10
10
  interface FluorescenceRenderProps {
11
11
  id: string;
12
12
  globalID: string;
13
+ renderMode?: FluorescenceRenderMode;
13
14
  }
14
- type FluorescenceRenderState = GradientRenderState<Chart>;
15
+ type FluorescenceRenderState = GradientRenderState<Chart> & {
16
+ renderMode?: FluorescenceRenderMode;
17
+ };
15
18
  export default class FluorescenceRender extends GradientRenderer<Chart, FluorescenceRenderState, FluorescenceData> {
16
19
  constructor(props: FluorescenceRenderProps);
17
20
  protected init(): void;
18
21
  updateProps(props: Record<string, unknown>): void;
19
22
  updateSeries(data: FluorescenceData): void;
23
+ setRenderMode(mode: FluorescenceRenderMode): void;
20
24
  }
21
25
  export {};
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.3.10",
8
+ "version": "1.3.12",
9
9
  "private": false
10
10
  }
@@ -1,3 +1,4 @@
1
+ import type { FluorescenceRenderMode } from '@rfkit/renderer';
1
2
  import type { ModuleType } from '../../config';
2
3
  import type { AxisXRange, RecursiveObject, TopRightBottomLeft } from '..';
3
4
  export interface SystemConfig {
@@ -77,6 +78,7 @@ export interface BlazeProps {
77
78
  export interface FluorescenceProps {
78
79
  show: boolean;
79
80
  display: boolean;
81
+ renderMode?: FluorescenceRenderMode;
80
82
  }
81
83
  export interface DeltaMeasurementProps {
82
84
  show: boolean;