@rfkit/charts 1.3.4 → 1.3.7

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/index.js CHANGED
@@ -16181,6 +16181,15 @@ const Spectrum_Chart_Chart = (props)=>{
16181
16181
  handlePublish(e);
16182
16182
  handleMarkerPublish(e);
16183
16183
  handleSpectrumRule(e);
16184
+ if (e.pstype === constants_PSType.Heatmap) {
16185
+ const { data, timestamps } = e;
16186
+ const waterfallData = convertToTimestampedArrays(data, timestamps);
16187
+ const db = withDatabase(globalID);
16188
+ db.getAllRawData = ()=>({
16189
+ ...getDefaultData().getAllRawData(),
16190
+ waterfallData
16191
+ });
16192
+ }
16184
16193
  tools(globalID, constants_ModuleType.Spectrum)(e);
16185
16194
  tools(globalID, constants_ModuleType.Heatmap)(e);
16186
16195
  tools(globalID, constants_ModuleType.Occupancy)(e);
@@ -4,7 +4,7 @@
4
4
  import { Fluorescence as Chart } from '@rfkit/renderer';
5
5
  import { GradientRenderer, type GradientRenderState } from '../base';
6
6
  interface FluorescenceData {
7
- fluorescenceData: Map<number, number>[];
7
+ fluorescenceData: Uint32Array;
8
8
  fluorescenceMaxCount: number;
9
9
  }
10
10
  interface FluorescenceRenderProps {
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.4",
8
+ "version": "1.3.7",
9
9
  "private": false
10
10
  }
@@ -69,7 +69,7 @@ export interface PublishHeatmap {
69
69
  export interface PublishFluorescence {
70
70
  pstype: PSType.Fluorescence;
71
71
  data: {
72
- fluorescenceData: Map<number, number>[];
72
+ fluorescenceData: Uint32Array;
73
73
  fluorescenceMaxCount: number;
74
74
  };
75
75
  }