@rfkit/charts 1.0.105 → 1.1.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.
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
2
1
  import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE__rfkit_theme_a11ca9cb__ from "@rfkit/theme";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_react_dom_7136dc57__ from "react-dom";
5
5
  import * as __WEBPACK_EXTERNAL_MODULE__rfkit_spectrum_analyzer_159ab12b__ from "@rfkit/spectrum-analyzer";
@@ -3252,19 +3252,26 @@ const defaultConfig = {
3252
3252
  label: "\u5E73\u5747\u503C",
3253
3253
  display: false
3254
3254
  },
3255
- threshold: {
3256
- name: 'threshold',
3255
+ thresholdData: {
3256
+ name: 'thresholdData',
3257
3257
  color: '#FF4C2A',
3258
3258
  thickness: 1,
3259
3259
  label: "\u95E8\u9650\u503C",
3260
3260
  display: false
3261
3261
  },
3262
- template: {
3263
- name: 'template',
3264
- color: '#eb5b5b',
3262
+ templateData: {
3263
+ name: 'templateData',
3264
+ color: '#e38888',
3265
3265
  thickness: 1,
3266
3266
  label: "\u6A21\u677F",
3267
- display: false
3267
+ display: true
3268
+ },
3269
+ backgroundNoiseData: {
3270
+ name: 'backgroundNoiseData',
3271
+ color: '#2bb3cb',
3272
+ thickness: 1,
3273
+ label: "\u80CC\u666F\u566A\u58F0",
3274
+ display: true
3268
3275
  }
3269
3276
  },
3270
3277
  gradient: {
@@ -3366,7 +3373,7 @@ const getGradient = (i = 0)=>{
3366
3373
  return item[void 0 !== index ? index : i];
3367
3374
  };
3368
3375
  const SERIES = getSeriesConfig();
3369
- const constants_SERIES_NAMES = Object.keys(SERIES);
3376
+ const SERIES_NAMES = Object.keys(SERIES);
3370
3377
  const REAL_DATA_NAME = SERIES.realData.name;
3371
3378
  const ZOOM_MIN_RANGE = 10;
3372
3379
  const POPOVER_MARGIN = 16;
@@ -3473,10 +3480,146 @@ var constants_SeriesType = /*#__PURE__*/ function(SeriesType) {
3473
3480
  SeriesType["MaxData"] = "maxData";
3474
3481
  SeriesType["MinData"] = "minData";
3475
3482
  SeriesType["AvgData"] = "avgData";
3476
- SeriesType["ThresholdData"] = "threshold";
3477
- SeriesType["TemplateData"] = "template";
3483
+ SeriesType["ThresholdData"] = "thresholdData";
3484
+ SeriesType["TemplateData"] = "templateData";
3485
+ SeriesType["BackgroundNoiseData"] = "backgroundNoiseData";
3478
3486
  return SeriesType;
3479
3487
  }({});
3488
+ function useSafePublish() {
3489
+ const chartRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
3490
+ const [isReady, setIsReady] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
3491
+ const readyCallbacksRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)([]);
3492
+ const cleanupFunctionsRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)([]);
3493
+ const actualPublishRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
3494
+ const safePublish = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((data)=>{
3495
+ if (actualPublishRef.current) actualPublishRef.current(data);
3496
+ }, []);
3497
+ const onReady = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((callback)=>{
3498
+ if (isReady && chartRef.current) {
3499
+ const result = callback();
3500
+ if ('function' == typeof result) {
3501
+ cleanupFunctionsRef.current.push(result);
3502
+ return result;
3503
+ }
3504
+ } else {
3505
+ const callbackWrapper = {
3506
+ callback,
3507
+ cleanup: void 0
3508
+ };
3509
+ readyCallbacksRef.current.push(callbackWrapper);
3510
+ return ()=>{
3511
+ const index = readyCallbacksRef.current.indexOf(callbackWrapper);
3512
+ if (index > -1) readyCallbacksRef.current.splice(index, 1);
3513
+ if (callbackWrapper.cleanup) callbackWrapper.cleanup();
3514
+ };
3515
+ }
3516
+ }, [
3517
+ isReady
3518
+ ]);
3519
+ const getSourceData = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
3520
+ if (actualPublishRef.current?.getSourceData) return actualPublishRef.current.getSourceData();
3521
+ return {};
3522
+ }, []);
3523
+ const checkIsReady = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>isReady, [
3524
+ isReady
3525
+ ]);
3526
+ const enhancedPublish = Object.assign(safePublish, {
3527
+ getSourceData,
3528
+ isReady: checkIsReady,
3529
+ onReady
3530
+ });
3531
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
3532
+ const checkReady = ()=>{
3533
+ if (chartRef.current && 'function' == typeof chartRef.current && !isReady) {
3534
+ actualPublishRef.current = chartRef.current;
3535
+ setIsReady(true);
3536
+ readyCallbacksRef.current.forEach((item)=>{
3537
+ const result = item.callback();
3538
+ if ('function' == typeof result) {
3539
+ item.cleanup = result;
3540
+ cleanupFunctionsRef.current.push(result);
3541
+ }
3542
+ });
3543
+ readyCallbacksRef.current = [];
3544
+ }
3545
+ };
3546
+ checkReady();
3547
+ const timer = setInterval(()=>{
3548
+ if (isReady) clearInterval(timer);
3549
+ else checkReady();
3550
+ }, 10);
3551
+ return ()=>clearInterval(timer);
3552
+ }, [
3553
+ isReady
3554
+ ]);
3555
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
3556
+ if (!chartRef.current || !chartRef.current.onReady) chartRef.current = enhancedPublish;
3557
+ }, [
3558
+ enhancedPublish
3559
+ ]);
3560
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>()=>{
3561
+ cleanupFunctionsRef.current.forEach((cleanup)=>cleanup());
3562
+ cleanupFunctionsRef.current = [];
3563
+ }, []);
3564
+ return {
3565
+ publish: safePublish,
3566
+ chartRef
3567
+ };
3568
+ }
3569
+ function withChartPublisher(ChartComponent, componentName) {
3570
+ const ChartWrapper = (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)((props, ref)=>{
3571
+ const innerChartRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
3572
+ const [publishReady, setPublishReady] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
3573
+ const pendingCallbacks = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)([]);
3574
+ const actualPublish = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
3575
+ const safePublish = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((data)=>{
3576
+ if (actualPublish.current) actualPublish.current(data);
3577
+ }, []);
3578
+ const getSourceData = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
3579
+ if (actualPublish.current?.getSourceData) return actualPublish.current.getSourceData();
3580
+ return {};
3581
+ }, []);
3582
+ const isReady = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>publishReady, [
3583
+ publishReady
3584
+ ]);
3585
+ const onReady = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((callback)=>{
3586
+ if (publishReady && actualPublish.current) {
3587
+ const result = callback();
3588
+ if ('function' == typeof result) return result;
3589
+ } else pendingCallbacks.current.push(()=>{
3590
+ const result = callback();
3591
+ if ('function' == typeof result) return result;
3592
+ });
3593
+ }, [
3594
+ publishReady
3595
+ ]);
3596
+ const handleInternalPublish = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((publish)=>{
3597
+ actualPublish.current = publish;
3598
+ if (!publishReady) {
3599
+ setPublishReady(true);
3600
+ pendingCallbacks.current.forEach((callback)=>callback());
3601
+ pendingCallbacks.current = [];
3602
+ }
3603
+ }, [
3604
+ publishReady
3605
+ ]);
3606
+ const enhancedPublish = Object.assign(safePublish, {
3607
+ getSourceData,
3608
+ isReady,
3609
+ onReady
3610
+ });
3611
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useImperativeHandle)(ref, ()=>enhancedPublish, [
3612
+ enhancedPublish
3613
+ ]);
3614
+ return __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(ChartComponent, {
3615
+ ...props,
3616
+ publish: handleInternalPublish,
3617
+ ref: innerChartRef
3618
+ });
3619
+ });
3620
+ ChartWrapper.displayName = `withChartPublisher(${componentName})`;
3621
+ return ChartWrapper;
3622
+ }
3480
3623
  const createGUID = ()=>((1 + Math.random()) * 0x10000 | 0).toString(16).substring(1);
3481
3624
  const getDateTime = (t = Date.now(), sep1 = '-', sep2 = ':', time = false)=>{
3482
3625
  if (!t) return '';
@@ -4513,9 +4656,11 @@ function defaultState_createParams() {
4513
4656
  zoomMinSimulateWave: false,
4514
4657
  dataRate: dataRateDefault,
4515
4658
  data: new Map(),
4659
+ forceDisplay: false,
4516
4660
  legendExternal: [
4517
4661
  constants_SeriesType.ThresholdData,
4518
- constants_SeriesType.TemplateData
4662
+ constants_SeriesType.TemplateData,
4663
+ constants_SeriesType.BackgroundNoiseData
4519
4664
  ],
4520
4665
  enableMetrics: void 0,
4521
4666
  enableWaterfall: void 0
@@ -4679,6 +4824,7 @@ const getDefaultData = ()=>({
4679
4824
  minData: new Float32Array(),
4680
4825
  avgData: new Float32Array(),
4681
4826
  templateData: new Float32Array(),
4827
+ backgroundNoiseData: new Float32Array(),
4682
4828
  waterfallData: []
4683
4829
  })
4684
4830
  });
@@ -4933,7 +5079,7 @@ const Background_Background = ({ children })=>{
4933
5079
  };
4934
5080
  const Background = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Background_Background);
4935
5081
  const PUB_SUB = (globalID, func)=>subscription_createSubscriptionManager(`PUB_SUB-${globalID}`, '0', func);
4936
- const usePublish = ({ publish = ()=>{}, subscribe = ()=>{} })=>{
5082
+ const usePublish = ({ publish, subscribe = ()=>{} })=>{
4937
5083
  const { state: { globalID }, dispatch } = useStore_useStore();
4938
5084
  const getSourceData = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>withDatabase(globalID), [
4939
5085
  globalID
@@ -5082,7 +5228,7 @@ useChart_styles_module_options.domAPI = styleDomAPI_default();
5082
5228
  useChart_styles_module_options.insertStyleElement = insertStyleElement_default();
5083
5229
  injectStylesIntoStyleTag_default()(useChart_styles_module.Z, useChart_styles_module_options);
5084
5230
  const hooks_useChart_styles_module = useChart_styles_module.Z && useChart_styles_module.Z.locals ? useChart_styles_module.Z.locals : void 0;
5085
- const useChart_useChart = (props)=>{
5231
+ const useChart = (props)=>{
5086
5232
  const { state: { globalID } } = useStore_useStore();
5087
5233
  const { Render, params, onIDChange } = props;
5088
5234
  const id = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>createGUID(), []);
@@ -5129,7 +5275,7 @@ const useChart_useChart = (props)=>{
5129
5275
  Chart
5130
5276
  };
5131
5277
  };
5132
- const useChart = useChart_useChart;
5278
+ const hooks_useChart = useChart;
5133
5279
  const tools = (globalID, name, func)=>subscription_createSubscriptionManager(`passThrough-${globalID}-${name}`, '0', func);
5134
5280
  class engine_Engine {
5135
5281
  state = {
@@ -5549,7 +5695,7 @@ Mask_styles_module_options.domAPI = styleDomAPI_default();
5549
5695
  Mask_styles_module_options.insertStyleElement = insertStyleElement_default();
5550
5696
  injectStylesIntoStyleTag_default()(Mask_styles_module.Z, Mask_styles_module_options);
5551
5697
  const components_Mask_styles_module = Mask_styles_module.Z && Mask_styles_module.Z.locals ? Mask_styles_module.Z.locals : void 0;
5552
- const Mask = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ children, className, style }, ref)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
5698
+ const Mask_Mask = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({ children, className, style }, ref)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
5553
5699
  className: `${components_Mask_styles_module.Mask} ${className}`,
5554
5700
  style: style,
5555
5701
  ref: ref,
@@ -5563,7 +5709,7 @@ const Mask = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(({
5563
5709
  })
5564
5710
  ]
5565
5711
  }));
5566
- const components_Mask = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Mask);
5712
+ const Mask = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Mask_Mask);
5567
5713
  var Tooltip_styles_module = __webpack_require__("../../../node_modules/.pnpm/@rsbuild+core@1.3.18/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[11].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[11].use[2]!../../../node_modules/.pnpm/@rsbuild+plugin-less@1.3.1_@rsbuild+core@1.4.11/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/Tooltip/styles.module.less");
5568
5714
  var Tooltip_styles_module_options = {};
5569
5715
  Tooltip_styles_module_options.styleTagTransform = styleTagTransform_default();
@@ -5695,7 +5841,7 @@ const Tooltip_Tooltip = ({ children, content, delay = 200, duration = 3000, offs
5695
5841
  onMouseEnter: handleMouseEnter,
5696
5842
  onMouseLeave: handleMouseLeave
5697
5843
  }),
5698
- visible && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_dom_7136dc57__.createPortal)(/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Mask, {
5844
+ visible && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_dom_7136dc57__.createPortal)(/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Mask, {
5699
5845
  ref: tooltipRef,
5700
5846
  className: components_Tooltip_styles_module.tooltip,
5701
5847
  style: {
@@ -6451,7 +6597,7 @@ class IQStream {
6451
6597
  }
6452
6598
  const Dial_Dial = ()=>{
6453
6599
  const { state: { globalID } } = useStore_useStore();
6454
- const { chart, Chart } = useChart({
6600
+ const { chart, Chart } = hooks_useChart({
6455
6601
  Render: IQStream
6456
6602
  });
6457
6603
  (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
@@ -6496,7 +6642,7 @@ const Chart_Chart = (props)=>{
6496
6642
  });
6497
6643
  };
6498
6644
  const Dial_Chart = Chart_Chart;
6499
- const lib_Dial_Dial = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
6645
+ const DialChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
6500
6646
  ...props,
6501
6647
  system: {
6502
6648
  padding: false,
@@ -6506,6 +6652,7 @@ const lib_Dial_Dial = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react
6506
6652
  ...props
6507
6653
  })
6508
6654
  });
6655
+ const lib_Dial_Dial = withChartPublisher(DialChart, 'Dial');
6509
6656
  const lib_Dial = lib_Dial_Dial;
6510
6657
  var GuageBox_styles_module = __webpack_require__("../../../node_modules/.pnpm/@rsbuild+core@1.3.18/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[11].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[11].use[2]!../../../node_modules/.pnpm/@rsbuild+plugin-less@1.3.1_@rsbuild+core@1.4.11/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/GuageBox/styles.module.less");
6511
6658
  var GuageBox_styles_module_options = {};
@@ -6632,7 +6779,7 @@ const Gauge_padding = 20;
6632
6779
  const Gauge_step = 2;
6633
6780
  const Gauge_Gauge = ({ onChange })=>{
6634
6781
  const { state: { globalID, axisY: { range } } } = useStore_useStore();
6635
- const { chart, Chart } = useChart({
6782
+ const { chart, Chart } = hooks_useChart({
6636
6783
  Render: render_IQStream,
6637
6784
  params: {
6638
6785
  padding: Gauge_padding,
@@ -6660,7 +6807,7 @@ const Gauge_Gauge = ({ onChange })=>{
6660
6807
  ]);
6661
6808
  const [limit, setLimit] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(0);
6662
6809
  (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
6663
- tools(globalID, 'Gauge')({
6810
+ tools(globalID, constants_ModuleType.Gauge)({
6664
6811
  limit
6665
6812
  });
6666
6813
  }, [
@@ -6700,7 +6847,7 @@ const Gauge_Chart_Chart = (props)=>{
6700
6847
  });
6701
6848
  };
6702
6849
  const Gauge_Chart = Gauge_Chart_Chart;
6703
- const lib_Gauge_Gauge = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
6850
+ const GaugeChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
6704
6851
  ...props,
6705
6852
  system: {
6706
6853
  padding: false,
@@ -6710,6 +6857,7 @@ const lib_Gauge_Gauge = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_rea
6710
6857
  ...props
6711
6858
  })
6712
6859
  });
6860
+ const lib_Gauge_Gauge = withChartPublisher(GaugeChart, 'Gauge');
6713
6861
  const lib_Gauge = lib_Gauge_Gauge;
6714
6862
  const useAxisYWidth_width = 40;
6715
6863
  function useAxisYWidth() {
@@ -6829,7 +6977,7 @@ Default_styles_module_options.domAPI = styleDomAPI_default();
6829
6977
  Default_styles_module_options.insertStyleElement = insertStyleElement_default();
6830
6978
  injectStylesIntoStyleTag_default()(Default_styles_module.Z, Default_styles_module_options);
6831
6979
  const type_Default_styles_module = Default_styles_module.Z && Default_styles_module.Z.locals ? Default_styles_module.Z.locals : void 0;
6832
- const Default_Default = (props)=>{
6980
+ const Default = (props)=>{
6833
6981
  const { state: { axisY: { heatmapFullTicks } } } = useStore_useStore();
6834
6982
  const { axisYWidth, marginLeft } = useAxisYWidth();
6835
6983
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
@@ -6845,7 +6993,7 @@ const Default_Default = (props)=>{
6845
6993
  })
6846
6994
  });
6847
6995
  };
6848
- const Default = Default_Default;
6996
+ const type_Default = Default;
6849
6997
  var Default_GradientRibbon_styles_module = __webpack_require__("../../../../../../../node_modules/.pnpm/@rsbuild+core@1.3.18/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[11].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[11].use[2]!../../../../../../../node_modules/.pnpm/@rsbuild+plugin-less@1.3.1_@rsbuild+core@1.4.11/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/AxisY/heatmap/type/Default/GradientRibbon/styles.module.less");
6850
6998
  var Default_GradientRibbon_styles_module_options = {};
6851
6999
  Default_GradientRibbon_styles_module_options.styleTagTransform = styleTagTransform_default();
@@ -6866,7 +7014,7 @@ const AxisYHeatmap = (props)=>{
6866
7014
  renderRange
6867
7015
  ]);
6868
7016
  if (false === show) return null;
6869
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Default, {
7017
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(type_Default, {
6870
7018
  ...props
6871
7019
  });
6872
7020
  };
@@ -7084,13 +7232,6 @@ const components_FrequencyDataBoard_styles_module = FrequencyDataBoard_styles_mo
7084
7232
  const FrequencyDataBoard = ({ left, updateKey, onChange })=>{
7085
7233
  const { state: { axisY, axisX: { frequencyFormat, unit }, series: { data: seriesData, legendExternal }, globalID, stationInfo } } = useStore_useStore();
7086
7234
  const index = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(Number.NaN);
7087
- const SERIES_NAMES = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>[
7088
- SERIES.realData.name,
7089
- SERIES.minData.name,
7090
- SERIES.maxData.name,
7091
- SERIES.avgData.name,
7092
- SERIES.threshold.name
7093
- ], []);
7094
7235
  const calculateIndex = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((data, n, series)=>{
7095
7236
  const values = data[n] || [];
7096
7237
  if (0 === values.length) return null;
@@ -7183,7 +7324,7 @@ const FrequencyDataBoard = ({ left, updateKey, onChange })=>{
7183
7324
  stationInfo
7184
7325
  ]);
7185
7326
  if (!frequency || left < 0) return null;
7186
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(components_Mask, {
7327
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(Mask, {
7187
7328
  children: [
7188
7329
  frequency && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
7189
7330
  className: components_FrequencyDataBoard_styles_module.frequency,
@@ -7260,7 +7401,7 @@ const HeatmapPopover = ({ id })=>{
7260
7401
  const attr = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>seriesData.get(REAL_DATA_NAME), [
7261
7402
  seriesData
7262
7403
  ]);
7263
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(components_Mask, {
7404
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(Mask, {
7264
7405
  children: [
7265
7406
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyDisplay, {
7266
7407
  frequency: frequency,
@@ -7319,7 +7460,7 @@ const OccupancyPopover = ()=>{
7319
7460
  left,
7320
7461
  frequencyFormat
7321
7462
  ]);
7322
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(components_Mask, {
7463
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(Mask, {
7323
7464
  children: [
7324
7465
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyDisplay, {
7325
7466
  frequency: frequency,
@@ -7486,7 +7627,7 @@ function useKeyEvent(globalID, EID) {
7486
7627
  EID
7487
7628
  ]);
7488
7629
  }
7489
- const EventBus = ({ id })=>{
7630
+ const EventBus_EventBus = ({ id })=>{
7490
7631
  const { state: { globalID } } = useStore_useStore();
7491
7632
  const EID = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>getEID(id), [
7492
7633
  id
@@ -7608,7 +7749,7 @@ const EventBus = ({ id })=>{
7608
7749
  })
7609
7750
  });
7610
7751
  };
7611
- const components_EventBus = EventBus;
7752
+ const EventBus = EventBus_EventBus;
7612
7753
  var FlexBox_styles_module = __webpack_require__("../../../node_modules/.pnpm/@rsbuild+core@1.3.18/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[11].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[11].use[2]!../../../node_modules/.pnpm/@rsbuild+plugin-less@1.3.1_@rsbuild+core@1.4.11/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/FlexBox/styles.module.less");
7613
7754
  var FlexBox_styles_module_options = {};
7614
7755
  FlexBox_styles_module_options.styleTagTransform = styleTagTransform_default();
@@ -7788,7 +7929,7 @@ const Area = (props)=>{
7788
7929
  children: [
7789
7930
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
7790
7931
  className: HeatmapCapture_Area_styles_module.value,
7791
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(components_Mask, {
7932
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(Mask, {
7792
7933
  children: [
7793
7934
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
7794
7935
  className: HeatmapCapture_Area_styles_module.item,
@@ -8258,7 +8399,7 @@ const Slider = ({ id })=>{
8258
8399
  });
8259
8400
  };
8260
8401
  const HeatmapCapture_Slider = Slider;
8261
- const HeatmapCapture = (props)=>{
8402
+ const HeatmapCapture_HeatmapCapture = (props)=>{
8262
8403
  const { state: { heatmapCapture } } = useStore_useStore();
8263
8404
  const { show, type } = heatmapCapture;
8264
8405
  if (!show) return null;
@@ -8270,7 +8411,7 @@ const HeatmapCapture = (props)=>{
8270
8411
  ...props
8271
8412
  });
8272
8413
  };
8273
- const components_HeatmapCapture = HeatmapCapture;
8414
+ const HeatmapCapture = HeatmapCapture_HeatmapCapture;
8274
8415
  var Board_styles_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.3.18/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[11].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[11].use[2]!../../../../node_modules/.pnpm/@rsbuild+plugin-less@1.3.1_@rsbuild+core@1.4.11/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/Markers/Board/styles.module.less");
8275
8416
  var Board_styles_module_options = {};
8276
8417
  Board_styles_module_options.styleTagTransform = styleTagTransform_default();
@@ -9409,63 +9550,61 @@ const components_Ticks_Ticks = ({ ranging })=>{
9409
9550
  ranging,
9410
9551
  globalID
9411
9552
  ]);
9412
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
9413
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
9414
- ref: containerRef,
9415
- className: AxisY_spectrum_components_Ticks_styles_module.ticks,
9416
- style: {
9417
- cursor: isDragging ? 'ns-resize' : 'auto',
9418
- pointerEvents: autoranging ? 'none' : 'auto'
9419
- },
9420
- onMouseDown: handleMouseDown,
9421
- onMouseUp: handleMouseUp,
9422
- onMouseLeave: handleMouseUp,
9423
- onMouseMove: handleMouseMove,
9424
- onDoubleClick: ()=>{
9425
- ranging.setAxisY?.({
9426
- realRange: RANGE_DEFAULT
9427
- });
9428
- ranging.onChange?.();
9429
- },
9430
- children: [
9431
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Tooltip, {
9432
- content: "\u6ED1\u52A8\u9F20\u6807\u6EDA\u8F6E\u4EE5\u6539\u53D8\u8FB9\u754C\u8303\u56F4",
9433
- duration: 1500,
9434
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
9435
- className: AxisY_spectrum_components_Ticks_styles_module.wheelContainerTop,
9436
- style: {
9437
- pointerEvents: isDragging ? 'none' : 'auto'
9438
- },
9439
- onWheel: (e)=>handleWheelWithBorder(e, true)
9440
- })
9441
- }),
9442
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Tooltip, {
9443
- content: "\u6ED1\u52A8\u9F20\u6807\u6EDA\u8F6E\u4EE5\u6539\u53D8\u8FB9\u754C\u8303\u56F4",
9444
- duration: 1500,
9445
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
9446
- className: AxisY_spectrum_components_Ticks_styles_module.wheelContainerBottom,
9447
- style: {
9448
- pointerEvents: isDragging ? 'none' : 'auto'
9449
- },
9450
- onWheel: (e)=>handleWheelWithBorder(e, false)
9451
- })
9452
- }),
9453
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
9454
- className: AxisY_spectrum_components_Ticks_styles_module.ticksContainer,
9455
- style: ticksStyle,
9456
- title: `${autoranging ? "\u8303\u56F4\u63A7\u5236\u5DF2\u5168\u81EA\u52A8" : "\u6309\u4F4F\u9F20\u6807\u5DE6\u952E\u4E0A\u4E0B\u62D6\u52A8\n\u5728\u8FB9\u754C\u6EDA\u52A8\u9F20\u6807\u6EDA\u8F6E\u4EE5\u6539\u53D8\u89C6\u89C9\u8303\u56F4"}
9457
- \u{53CC}\u{51FB}\u{56DE}\u{5230}\u{9ED8}\u{8BA4}\u{8303}\u{56F4}${RANGE_DEFAULT}`,
9458
- children: [
9459
- ticks,
9460
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_RulerTicks, {
9461
- orientation: "vertical",
9462
- length: 2 * len,
9463
- split: 2
9464
- })
9465
- ]
9553
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
9554
+ ref: containerRef,
9555
+ className: AxisY_spectrum_components_Ticks_styles_module.ticks,
9556
+ style: {
9557
+ cursor: isDragging ? 'ns-resize' : 'auto',
9558
+ pointerEvents: autoranging ? 'none' : 'auto'
9559
+ },
9560
+ onMouseDown: handleMouseDown,
9561
+ onMouseUp: handleMouseUp,
9562
+ onMouseLeave: handleMouseUp,
9563
+ onMouseMove: handleMouseMove,
9564
+ onDoubleClick: ()=>{
9565
+ ranging.setAxisY?.({
9566
+ realRange: RANGE_DEFAULT
9567
+ });
9568
+ ranging.onChange?.();
9569
+ },
9570
+ children: [
9571
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Tooltip, {
9572
+ content: "\u6ED1\u52A8\u9F20\u6807\u6EDA\u8F6E\u4EE5\u6539\u53D8\u8FB9\u754C\u8303\u56F4",
9573
+ duration: 1500,
9574
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
9575
+ className: AxisY_spectrum_components_Ticks_styles_module.wheelContainerTop,
9576
+ style: {
9577
+ pointerEvents: isDragging ? 'none' : 'auto'
9578
+ },
9579
+ onWheel: (e)=>handleWheelWithBorder(e, true)
9466
9580
  })
9467
- ]
9468
- })
9581
+ }),
9582
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Tooltip, {
9583
+ content: "\u6ED1\u52A8\u9F20\u6807\u6EDA\u8F6E\u4EE5\u6539\u53D8\u8FB9\u754C\u8303\u56F4",
9584
+ duration: 1500,
9585
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
9586
+ className: AxisY_spectrum_components_Ticks_styles_module.wheelContainerBottom,
9587
+ style: {
9588
+ pointerEvents: isDragging ? 'none' : 'auto'
9589
+ },
9590
+ onWheel: (e)=>handleWheelWithBorder(e, false)
9591
+ })
9592
+ }),
9593
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
9594
+ className: AxisY_spectrum_components_Ticks_styles_module.ticksContainer,
9595
+ style: ticksStyle,
9596
+ title: `${autoranging ? "\u8303\u56F4\u63A7\u5236\u5DF2\u5168\u81EA\u52A8" : "\u6309\u4F4F\u9F20\u6807\u5DE6\u952E\u4E0A\u4E0B\u62D6\u52A8\n\u5728\u8FB9\u754C\u6EDA\u52A8\u9F20\u6807\u6EDA\u8F6E\u4EE5\u6539\u53D8\u89C6\u89C9\u8303\u56F4"}
9597
+ \u{53CC}\u{51FB}\u{56DE}\u{5230}\u{9ED8}\u{8BA4}\u{8303}\u{56F4}${RANGE_DEFAULT}`,
9598
+ children: [
9599
+ ticks,
9600
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_RulerTicks, {
9601
+ orientation: "vertical",
9602
+ length: 2 * len,
9603
+ split: 2
9604
+ })
9605
+ ]
9606
+ })
9607
+ ]
9469
9608
  });
9470
9609
  };
9471
9610
  const spectrum_components_Ticks = components_Ticks_Ticks;
@@ -9645,9 +9784,8 @@ class Spectrum {
9645
9784
  return config;
9646
9785
  });
9647
9786
  this.setSeries({
9648
- ...SERIES.template,
9649
- type: type_GraphicType.Area,
9650
- display: true
9787
+ ...SERIES.templateData,
9788
+ type: type_GraphicType.Area
9651
9789
  });
9652
9790
  this.useRangeAutoFocus = ()=>{
9653
9791
  useRangeAutoFocus(this.state.globalID)();
@@ -9660,7 +9798,7 @@ class Spectrum {
9660
9798
  for(let i = 0; i < s.length; i += 1){
9661
9799
  const [name] = s[i];
9662
9800
  const data = d[name];
9663
- if (data && (constants_SERIES_NAMES.includes(name) || 'template' === name)) {
9801
+ if (data && (SERIES_NAMES.includes(name) || name === SERIES.templateData.name)) {
9664
9802
  chart.render({
9665
9803
  name,
9666
9804
  data
@@ -9685,7 +9823,7 @@ class Spectrum {
9685
9823
  this.state.interval = len;
9686
9824
  chart.setIntervel(len);
9687
9825
  }
9688
- const n = new Date().getTime();
9826
+ const n = Date.now();
9689
9827
  if (autoranging && n - prevAutoRangeTime > 1000) {
9690
9828
  this.state.prevAutoRangeTime = n;
9691
9829
  this.useRangeAutoFocus();
@@ -10316,7 +10454,7 @@ class render_Heatmap {
10316
10454
  const Heatmap_Heatmap = (props)=>{
10317
10455
  const { selecter, heatmapDefaultData } = props;
10318
10456
  const { state: { axisY: { realRange }, globalID } } = useStore_useStore();
10319
- const { id, chart, Chart } = useChart({
10457
+ const { id, chart, Chart } = hooks_useChart({
10320
10458
  Render: render_Heatmap,
10321
10459
  params: {
10322
10460
  realRange,
@@ -10368,7 +10506,7 @@ const Heatmap_Heatmap = (props)=>{
10368
10506
  children: [
10369
10507
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Boundary, {}),
10370
10508
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Chart, {}),
10371
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_EventBus, {
10509
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(EventBus, {
10372
10510
  id: id
10373
10511
  }),
10374
10512
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Markers, {
@@ -10376,7 +10514,7 @@ const Heatmap_Heatmap = (props)=>{
10376
10514
  heatmapMode: true,
10377
10515
  selecter: selecter
10378
10516
  }),
10379
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_HeatmapCapture, {
10517
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(HeatmapCapture, {
10380
10518
  id: id
10381
10519
  }),
10382
10520
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Cursor, {
@@ -10430,12 +10568,13 @@ const Heatmap_Chart_Chart = ({ publish, heatmapDefaultData })=>{
10430
10568
  });
10431
10569
  };
10432
10570
  const Heatmap_Chart = Heatmap_Chart_Chart;
10433
- const lib_Heatmap_Heatmap = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
10571
+ const HeatmapChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
10434
10572
  ...props,
10435
10573
  children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Heatmap_Chart, {
10436
10574
  ...props
10437
10575
  })
10438
10576
  });
10577
+ const lib_Heatmap_Heatmap = withChartPublisher(HeatmapChart, 'Heatmap');
10439
10578
  const lib_Heatmap = lib_Heatmap_Heatmap;
10440
10579
  class IQPlanisphere {
10441
10580
  state;
@@ -10473,7 +10612,7 @@ class IQPlanisphere {
10473
10612
  }
10474
10613
  function IQEye_IQPlanisphere() {
10475
10614
  const { state: { globalID } } = useStore_useStore();
10476
- const { chart, Chart } = useChart({
10615
+ const { chart, Chart } = hooks_useChart({
10477
10616
  Render: IQPlanisphere
10478
10617
  });
10479
10618
  (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
@@ -10635,7 +10774,7 @@ const GridLines = ()=>{
10635
10774
  const components_GridLines = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(GridLines);
10636
10775
  const IQLine = ()=>{
10637
10776
  const { state: { axisY: { autoranging }, globalID } } = useStore_useStore();
10638
- const { chart, Chart } = useChart({
10777
+ const { chart, Chart } = hooks_useChart({
10639
10778
  Render: Spectrum,
10640
10779
  params: {
10641
10780
  autoranging
@@ -10739,7 +10878,7 @@ class render_IQPlanisphere {
10739
10878
  }
10740
10879
  function IQPlanisphere_IQPlanisphere() {
10741
10880
  const { state: { globalID } } = useStore_useStore();
10742
- const { chart, Chart } = useChart({
10881
+ const { chart, Chart } = hooks_useChart({
10743
10882
  Render: render_IQPlanisphere
10744
10883
  });
10745
10884
  (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
@@ -10800,7 +10939,7 @@ class IQStream_render_IQStream {
10800
10939
  }
10801
10940
  const IQStream_IQStream = ()=>{
10802
10941
  const { state: { globalID } } = useStore_useStore();
10803
- const { chart, Chart } = useChart({
10942
+ const { chart, Chart } = hooks_useChart({
10804
10943
  Render: IQStream_render_IQStream
10805
10944
  });
10806
10945
  (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
@@ -10886,7 +11025,7 @@ const IQ_Chart_Chart = (props)=>{
10886
11025
  });
10887
11026
  };
10888
11027
  const IQ_Chart = IQ_Chart_Chart;
10889
- const IQ_IQ = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
11028
+ const IQChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
10890
11029
  system: {
10891
11030
  padding: false,
10892
11031
  border: false
@@ -10896,6 +11035,7 @@ const IQ_IQ = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_run
10896
11035
  ...props
10897
11036
  })
10898
11037
  });
11038
+ const IQ_IQ = withChartPublisher(IQChart, 'IQ');
10899
11039
  const lib_IQ = IQ_IQ;
10900
11040
  function uselevelStreamAnalyzer() {
10901
11041
  const { state: { globalID, axisY: { range }, levelStream: { cacheTime, granularity } } } = useStore_useStore();
@@ -11031,7 +11171,7 @@ class Occupancy {
11031
11171
  const Level_Level = (props)=>{
11032
11172
  const { state: { axisY, globalID } } = useStore_useStore();
11033
11173
  const { opacity } = props;
11034
- const { chart, Chart } = useChart({
11174
+ const { chart, Chart } = hooks_useChart({
11035
11175
  Render: Occupancy,
11036
11176
  params: {
11037
11177
  orientation: type_OrientationType.Horizontal
@@ -12324,7 +12464,7 @@ function usePoints() {
12324
12464
  const Spectrum_Spectrum = (props)=>{
12325
12465
  const { selecter, children } = props;
12326
12466
  const { state: { axisY: { autoranging }, series: { weaken }, globalID } } = useStore_useStore();
12327
- const { id, chart, Chart } = useChart({
12467
+ const { id, chart, Chart } = hooks_useChart({
12328
12468
  Render: Spectrum,
12329
12469
  params: {
12330
12470
  autoranging,
@@ -12412,7 +12552,7 @@ const Spectrum_Spectrum = (props)=>{
12412
12552
  heatmapMode: false,
12413
12553
  selecter: selecter
12414
12554
  }),
12415
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_EventBus, {
12555
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(EventBus, {
12416
12556
  id: id
12417
12557
  }),
12418
12558
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Limit, {
@@ -12468,7 +12608,7 @@ const LevelStream_Chart_Chart = (props)=>{
12468
12608
  });
12469
12609
  };
12470
12610
  const LevelStream_Chart = LevelStream_Chart_Chart;
12471
- const LevelStream_LevelStream = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
12611
+ const LevelStreamChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
12472
12612
  ...props,
12473
12613
  cursor: {
12474
12614
  show: false
@@ -12483,6 +12623,7 @@ const LevelStream_LevelStream = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MO
12483
12623
  ...props
12484
12624
  })
12485
12625
  });
12626
+ const LevelStream_LevelStream = withChartPublisher(LevelStreamChart, 'LevelStream');
12486
12627
  const LevelStream = LevelStream_LevelStream;
12487
12628
  var occupancy_components_Ticks_styles_module = __webpack_require__("../../../../../../node_modules/.pnpm/@rsbuild+core@1.3.18/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[11].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[11].use[2]!../../../../../../node_modules/.pnpm/@rsbuild+plugin-less@1.3.1_@rsbuild+core@1.4.11/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/AxisY/occupancy/components/Ticks/styles.module.less");
12488
12629
  var occupancy_components_Ticks_styles_module_options = {};
@@ -12522,7 +12663,7 @@ type_Default_styles_module_options.domAPI = styleDomAPI_default();
12522
12663
  type_Default_styles_module_options.insertStyleElement = insertStyleElement_default();
12523
12664
  injectStylesIntoStyleTag_default()(occupancy_type_Default_styles_module.Z, type_Default_styles_module_options);
12524
12665
  const AxisY_occupancy_type_Default_styles_module = occupancy_type_Default_styles_module.Z && occupancy_type_Default_styles_module.Z.locals ? occupancy_type_Default_styles_module.Z.locals : void 0;
12525
- const type_Default_Default = ()=>{
12666
+ const Default_Default = ()=>{
12526
12667
  const { axisYWidth, marginLeft } = useAxisYWidth();
12527
12668
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
12528
12669
  className: AxisY_occupancy_type_Default_styles_module.axisyoccupancydefault,
@@ -12533,13 +12674,13 @@ const type_Default_Default = ()=>{
12533
12674
  children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(occupancy_components_Ticks, {})
12534
12675
  });
12535
12676
  };
12536
- const type_Default = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(type_Default_Default);
12677
+ const occupancy_type_Default = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Default_Default);
12537
12678
  const AxisYOccupancy = (props)=>{
12538
12679
  const { disabled } = props;
12539
12680
  const { state: { axisY } } = useStore_useStore();
12540
12681
  const { show } = axisY;
12541
12682
  if (false === show || disabled) return null;
12542
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(type_Default, {});
12683
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(occupancy_type_Default, {});
12543
12684
  };
12544
12685
  const AxisY_occupancy = AxisYOccupancy;
12545
12686
  var Occdahsed_styles_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.3.18/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[11].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[11].use[2]!../../../../node_modules/.pnpm/@rsbuild+plugin-less@1.3.1_@rsbuild+core@1.4.11/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/GridLines/Occdahsed/styles.module.less");
@@ -12604,7 +12745,7 @@ const TotalLine = TotalLine_TotalLine;
12604
12745
  const Occupancy_Occupancy = (props)=>{
12605
12746
  const { occupancyAxisYDisabled } = props;
12606
12747
  const { state: { globalID } } = useStore_useStore();
12607
- const { id, chart, Chart } = useChart({
12748
+ const { id, chart, Chart } = hooks_useChart({
12608
12749
  Render: Occupancy
12609
12750
  });
12610
12751
  const [value, setValue] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(0);
@@ -12640,7 +12781,7 @@ const Occupancy_Occupancy = (props)=>{
12640
12781
  children: [
12641
12782
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occdahsed, {}),
12642
12783
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Chart, {}),
12643
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_EventBus, {
12784
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(EventBus, {
12644
12785
  id: id
12645
12786
  }),
12646
12787
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(TotalLine, {
@@ -12675,12 +12816,13 @@ const Occupancy_Chart_Chart = (props)=>{
12675
12816
  });
12676
12817
  };
12677
12818
  const Occupancy_Chart = Occupancy_Chart_Chart;
12678
- const lib_Occupancy_Occupancy = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
12819
+ const OccupancyChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
12679
12820
  ...props,
12680
12821
  children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occupancy_Chart, {
12681
12822
  ...props
12682
12823
  })
12683
12824
  });
12825
+ const lib_Occupancy_Occupancy = withChartPublisher(OccupancyChart, 'Occupancy');
12684
12826
  const lib_Occupancy = lib_Occupancy_Occupancy;
12685
12827
  var AxisX_styles_module = __webpack_require__("../../../node_modules/.pnpm/@rsbuild+core@1.3.18/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[11].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[11].use[2]!../../../node_modules/.pnpm/@rsbuild+plugin-less@1.3.1_@rsbuild+core@1.4.11/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/AxisX/styles.module.less");
12686
12828
  var AxisX_styles_module_options = {};
@@ -12836,7 +12978,7 @@ const AxisXTicks = ({ type })=>{
12836
12978
  });
12837
12979
  };
12838
12980
  const AxisX_Ticks = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(AxisXTicks);
12839
- const AxisX_AxisX = ({ type })=>{
12981
+ const AxisX = ({ type })=>{
12840
12982
  const { state: { axisX } } = useStore_useStore();
12841
12983
  const { children, unit, ticks } = axisX;
12842
12984
  const { width, pluginBoxWidth } = useAxisYWidth();
@@ -12874,7 +13016,7 @@ const AxisX_AxisX = ({ type })=>{
12874
13016
  })
12875
13017
  });
12876
13018
  };
12877
- const AxisX = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(AxisX_AxisX);
13019
+ const components_AxisX = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(AxisX);
12878
13020
  var Blaze_styles_module = __webpack_require__("../../../node_modules/.pnpm/@rsbuild+core@1.3.18/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[11].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[11].use[2]!../../../node_modules/.pnpm/@rsbuild+plugin-less@1.3.1_@rsbuild+core@1.4.11/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/Blaze/styles.module.less");
12879
13021
  var Blaze_styles_module_options = {};
12880
13022
  Blaze_styles_module_options.styleTagTransform = styleTagTransform_default();
@@ -13373,7 +13515,7 @@ const ZoomSwitch = ()=>{
13373
13515
  };
13374
13516
  const Zoom_Switch = ZoomSwitch;
13375
13517
  const modes = Object.values(constants_ModuleType);
13376
- const Reset = ()=>{
13518
+ const Reset_Reset = ()=>{
13377
13519
  const { state: { globalID, publish } } = useStore_useStore();
13378
13520
  const handleReset = ()=>{
13379
13521
  publish({
@@ -13400,7 +13542,7 @@ const Reset = ()=>{
13400
13542
  })
13401
13543
  });
13402
13544
  };
13403
- const ToolsBar_Reset = Reset;
13545
+ const Reset = Reset_Reset;
13404
13546
  var Dropdown_styles_module = __webpack_require__("../../../node_modules/.pnpm/@rsbuild+core@1.3.18/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[11].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[11].use[2]!../../../node_modules/.pnpm/@rsbuild+plugin-less@1.3.1_@rsbuild+core@1.4.11/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/Dropdown/styles.module.less");
13405
13547
  var Dropdown_styles_module_options = {};
13406
13548
  Dropdown_styles_module_options.styleTagTransform = styleTagTransform_default();
@@ -13644,7 +13786,7 @@ function useSpectrumRule({ channel, onChannelChange }) {
13644
13786
  }, []);
13645
13787
  return handleSpectrumRule;
13646
13788
  }
13647
- const SegmentsDisplayControl_SegmentsDisplayControl = ()=>{
13789
+ const SegmentsDisplayControl = ()=>{
13648
13790
  const { state: { segments, globalID } } = useStore_useStore();
13649
13791
  const [display, setDisplay] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)([]);
13650
13792
  const [selectedIndex, setSelectedIndex] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(null);
@@ -13685,7 +13827,7 @@ const SegmentsDisplayControl_SegmentsDisplayControl = ()=>{
13685
13827
  onChange: handleSelect
13686
13828
  });
13687
13829
  };
13688
- const SegmentsDisplayControl = SegmentsDisplayControl_SegmentsDisplayControl;
13830
+ const ToolsBar_SegmentsDisplayControl = SegmentsDisplayControl;
13689
13831
  var SeriesDisplayControl_styles_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.3.18/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[11].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[11].use[2]!../../../../node_modules/.pnpm/@rsbuild+plugin-less@1.3.1_@rsbuild+core@1.4.11/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/ToolsBar/SeriesDisplayControl/styles.module.less");
13690
13832
  var SeriesDisplayControl_styles_module_options = {};
13691
13833
  SeriesDisplayControl_styles_module_options.styleTagTransform = styleTagTransform_default();
@@ -13695,14 +13837,18 @@ SeriesDisplayControl_styles_module_options.domAPI = styleDomAPI_default();
13695
13837
  SeriesDisplayControl_styles_module_options.insertStyleElement = insertStyleElement_default();
13696
13838
  injectStylesIntoStyleTag_default()(SeriesDisplayControl_styles_module.Z, SeriesDisplayControl_styles_module_options);
13697
13839
  const ToolsBar_SeriesDisplayControl_styles_module = SeriesDisplayControl_styles_module.Z && SeriesDisplayControl_styles_module.Z.locals ? SeriesDisplayControl_styles_module.Z.locals : void 0;
13698
- const SeriesDisplayControl = ()=>{
13840
+ const SeriesDisplayControl_SeriesDisplayControl = ()=>{
13699
13841
  const { state: { globalID, series }, dispatch } = useStore_useStore();
13700
- const { data, legendExternal } = series;
13701
- const onClick = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((name)=>{
13842
+ const { data, legendExternal, forceDisplay } = series;
13843
+ const seriesType = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>Array.from(data.keys()).filter((name)=>!legendExternal.includes(name)).filter((name)=>name !== constants_SeriesType.TemplateData), [
13844
+ data,
13845
+ legendExternal
13846
+ ]);
13847
+ const onClick = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((name, isDisplayTrue)=>{
13702
13848
  if (globalID) {
13703
13849
  const item = data.get(name);
13704
13850
  if (item) {
13705
- const newDisplay = !item.display;
13851
+ const newDisplay = isDisplayTrue ? true : !item.display;
13706
13852
  data.set(name, {
13707
13853
  ...item,
13708
13854
  display: newDisplay
@@ -13725,6 +13871,19 @@ const SeriesDisplayControl = ()=>{
13725
13871
  data,
13726
13872
  globalID
13727
13873
  ]);
13874
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
13875
+ if (forceDisplay) [
13876
+ constants_SeriesType.MinData,
13877
+ constants_SeriesType.MaxData
13878
+ ].forEach((s)=>{
13879
+ if (!legendExternal.includes(s)) setTimeout(()=>{
13880
+ onClick(s, true);
13881
+ }, 1);
13882
+ });
13883
+ }, [
13884
+ forceDisplay,
13885
+ seriesType
13886
+ ]);
13728
13887
  const [isCollapsed, setIsCollapsed] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(true);
13729
13888
  const toggleCollapse = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
13730
13889
  setIsCollapsed((prev)=>!prev);
@@ -13772,7 +13931,7 @@ const SeriesDisplayControl = ()=>{
13772
13931
  CollapsedIcon,
13773
13932
  !isCollapsed && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13774
13933
  className: ToolsBar_SeriesDisplayControl_styles_module.itemsContainer,
13775
- children: Array.from(data.keys()).filter((name)=>!legendExternal.includes(name)).filter((name)=>name !== constants_SeriesType.TemplateData).map((name)=>{
13934
+ children: seriesType.map((name)=>{
13776
13935
  const series = data.get(name);
13777
13936
  const dp = series?.display;
13778
13937
  const label = series?.label;
@@ -13795,7 +13954,7 @@ const SeriesDisplayControl = ()=>{
13795
13954
  ]
13796
13955
  });
13797
13956
  };
13798
- const ToolsBar_SeriesDisplayControl = SeriesDisplayControl;
13957
+ const SeriesDisplayControl = SeriesDisplayControl_SeriesDisplayControl;
13799
13958
  const SpacerLine = ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13800
13959
  className: components_ToolsBar_styles_module.spacerLine
13801
13960
  });
@@ -13821,7 +13980,7 @@ const ToolsBar = ({ type })=>{
13821
13980
  type !== constants_ChartType.ScanDF360 && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Unit, {}),
13822
13981
  type === constants_ChartType.Heatmap && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_GradientRibbon, {}),
13823
13982
  type !== constants_ChartType.ScanDF360 && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_SpacerLine, {}),
13824
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_Reset, {}),
13983
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Reset, {}),
13825
13984
  (type === constants_ChartType.SingleFrequency || type === constants_ChartType.Scan || type === constants_ChartType.MScan) && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
13826
13985
  children: [
13827
13986
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyAllocation_Switch, {}),
@@ -13831,7 +13990,7 @@ const ToolsBar = ({ type })=>{
13831
13990
  ]
13832
13991
  }),
13833
13992
  type === constants_ChartType.Scan && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
13834
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(SegmentsDisplayControl, {})
13993
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_SegmentsDisplayControl, {})
13835
13994
  }),
13836
13995
  type === constants_ChartType.Heatmap && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
13837
13996
  children: [
@@ -13839,7 +13998,7 @@ const ToolsBar = ({ type })=>{
13839
13998
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(TimeRange_Switch, {})
13840
13999
  ]
13841
14000
  }),
13842
- (type === constants_ChartType.SingleFrequency || type === constants_ChartType.Scan || type === constants_ChartType.MScan) && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_SeriesDisplayControl, {})
14001
+ (type === constants_ChartType.SingleFrequency || type === constants_ChartType.Scan || type === constants_ChartType.MScan) && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(SeriesDisplayControl, {})
13843
14002
  ]
13844
14003
  })
13845
14004
  });
@@ -13944,7 +14103,7 @@ function useSeries() {
13944
14103
  label: label || existingSeries?.label || name || existingSeries?.name,
13945
14104
  data: data || existingSeries?.data
13946
14105
  };
13947
- if (!constants_SERIES_NAMES.includes(name) && !seriesStore.data.has(name) && void 0 === config.display) newConfig.display = true;
14106
+ if (!SERIES_NAMES.includes(name) && !seriesStore.data.has(name) && void 0 === config.display) newConfig.display = true;
13948
14107
  seriesRef.current.set(name, newConfig);
13949
14108
  seriesStore.data = seriesRef.current;
13950
14109
  dispatch({
@@ -14061,7 +14220,7 @@ function useSpectrumAnalyzer(props) {
14061
14220
  name,
14062
14221
  data
14063
14222
  });
14064
- if (data && !constants_SERIES_NAMES.includes(name) && globalIDRef.current) {
14223
+ if (data && !SERIES_NAMES.includes(name) && globalIDRef.current) {
14065
14224
  extraOutputData.current.set(name, {
14066
14225
  outputData: getExtraData(data),
14067
14226
  originalData: data
@@ -14131,12 +14290,13 @@ function useSpectrumAnalyzer(props) {
14131
14290
  }, []);
14132
14291
  const { updateTemplateOverData } = useTemplateComparison();
14133
14292
  const handleSpectrumUpdate = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((data)=>{
14134
- if (data.realData) updateSpectrum({
14293
+ if (data.realData || data.templateData || data.backgroundNoiseData) updateSpectrum({
14135
14294
  minData: data.minData,
14136
14295
  maxData: data.maxData,
14137
14296
  avgData: data.avgData,
14297
+ backgroundNoiseData: data.backgroundNoiseData,
14138
14298
  realData: data.realData,
14139
- template: data.templateData
14299
+ templateData: data.templateData
14140
14300
  });
14141
14301
  if (data.scanProgress) updateProgress(data.scanProgress);
14142
14302
  if (data.waterfallData) updateWaterfall(data.waterfallData);
@@ -14177,7 +14337,7 @@ function useSpectrumAnalyzer(props) {
14177
14337
  if ((newStart !== oldStart || newEnd !== oldEnd) && analyzer.current) {
14178
14338
  intervalRef.current = interval;
14179
14339
  srcIndexCache.current = analyzer.current.updateSamplingRange(newStart, newEnd + 1) || new Uint32Array();
14180
- for (const [name, item] of series)if (!constants_SERIES_NAMES.includes(name) && item.data) extraOutputData.current?.set(name, {
14340
+ for (const [name, item] of series)if (!SERIES_NAMES.includes(name) && item.data) extraOutputData.current?.set(name, {
14181
14341
  outputData: getExtraData(item.data),
14182
14342
  originalData: item.data
14183
14343
  });
@@ -14230,7 +14390,8 @@ function useSpectrumAnalyzer(props) {
14230
14390
  if (e.maxData) analyzer.current.setMaxData(e.maxData);
14231
14391
  if (e.minData) analyzer.current.setMinData(e.minData);
14232
14392
  if (e.avgData) analyzer.current.setAvgData(e.avgData);
14233
- if (e.template) analyzer.current.setTemplateData(e.template);
14393
+ if (e.templateData) analyzer.current.setTemplateData(e.templateData);
14394
+ if (e.backgroundNoiseData) analyzer.current.setBackgroundNoiseData(e.backgroundNoiseData);
14234
14395
  if (e.extraData) updateExtraData(e.extraData);
14235
14396
  break;
14236
14397
  case constants_PSType.Heatmap:
@@ -14301,6 +14462,7 @@ function useSpectrumChartType({ type, heatmapElementID }) {
14301
14462
  if (type === constants_ChartType.DDC) {
14302
14463
  limit.show = false;
14303
14464
  signal.show = false;
14465
+ marker.display = true;
14304
14466
  }
14305
14467
  if (type === constants_ChartType.Lite) {
14306
14468
  limit.show = false;
@@ -14389,7 +14551,7 @@ const HeatmapPortal_Chart = (props)=>{
14389
14551
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(modules_Heatmap, {
14390
14552
  selecter: selecter
14391
14553
  }),
14392
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(AxisX, {
14554
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_AxisX, {
14393
14555
  type: type
14394
14556
  })
14395
14557
  ]
@@ -14407,7 +14569,7 @@ const OccupancyPortal_Chart = (props)=>{
14407
14569
  type: constants_ChartType.Occupancy
14408
14570
  }),
14409
14571
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(modules_Occupancy, {}),
14410
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(AxisX, {
14572
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_AxisX, {
14411
14573
  type: type
14412
14574
  })
14413
14575
  ]
@@ -14476,18 +14638,19 @@ const Spectrum_Chart_Chart = (props)=>{
14476
14638
  })
14477
14639
  ]
14478
14640
  }),
14479
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(AxisX, {
14641
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_AxisX, {
14480
14642
  type: type
14481
14643
  })
14482
14644
  ]
14483
14645
  });
14484
14646
  };
14485
14647
  const Spectrum_Chart = Spectrum_Chart_Chart;
14486
- const lib_Spectrum_Spectrum = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
14648
+ const SpectrumChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
14487
14649
  ...props,
14488
14650
  children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Spectrum_Chart, {
14489
14651
  ...props
14490
14652
  })
14491
14653
  });
14654
+ const lib_Spectrum_Spectrum = withChartPublisher(SpectrumChart, 'Spectrum');
14492
14655
  const lib_Spectrum = lib_Spectrum_Spectrum;
14493
- export { constants_ChartType as ChartType, lib_Dial as Dial, lib_Gauge as Gauge, lib_Heatmap as Heatmap, store_HeatmapCaptureType as HeatmapCaptureType, lib_IQ as IQ, LevelStream, constants_MarkerEventType as MarkerEventType, lib_Occupancy as Occupancy, constants_OptionKey as OptionKey, constants_PSType as PSType, constants_SegmentsEvent as SegmentsEvent, constants_SeriesType as SeriesType, lib_Spectrum as Spectrum };
14656
+ export { constants_ChartType as ChartType, lib_Dial as Dial, lib_Gauge as Gauge, lib_Heatmap as Heatmap, store_HeatmapCaptureType as HeatmapCaptureType, lib_IQ as IQ, LevelStream, constants_MarkerEventType as MarkerEventType, lib_Occupancy as Occupancy, constants_OptionKey as OptionKey, constants_PSType as PSType, constants_SegmentsEvent as SegmentsEvent, constants_SeriesType as SeriesType, lib_Spectrum as Spectrum, useSafePublish };