@rfkit/charts 1.0.105 → 1.1.0
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/README.md +7 -2
- package/components/Band/index.d.ts +1 -1
- package/components/Markers/index.d.ts +2 -2
- package/config/constants.d.ts +6 -4
- package/config/setting.d.ts +3 -2
- package/hooks/useChartComponent.d.ts +17 -0
- package/hooks/usePublish.d.ts +2 -1
- package/hooks/useSafePublish.d.ts +13 -0
- package/hooks/useSpectrumAnalyzer/useTemplateComparison.d.ts +1 -1
- package/index.d.ts +3 -2
- package/index.js +300 -144
- package/lib/Dial/Chart.d.ts +1 -2
- package/lib/Dial/index.d.ts +2 -1
- package/lib/Gauge/Chart.d.ts +1 -2
- package/lib/Gauge/index.d.ts +2 -1
- package/lib/Heatmap/Chart.d.ts +1 -2
- package/lib/Heatmap/index.d.ts +2 -1
- package/lib/IQ/Chart.d.ts +1 -2
- package/lib/IQ/index.d.ts +2 -1
- package/lib/LevelStream/Chart.d.ts +1 -2
- package/lib/LevelStream/index.d.ts +1 -1
- package/lib/Occupancy/Chart.d.ts +1 -2
- package/lib/Occupancy/index.d.ts +1 -1
- package/lib/SpatialSpectrum/Chart.d.ts +1 -2
- package/lib/SpatialSpectrum/index.d.ts +2 -2
- package/lib/Spectrum/Chart.d.ts +1 -2
- package/lib/Spectrum/index.d.ts +1 -1
- package/modules/Spectrum/render.d.ts +1 -0
- package/package.json +1 -1
- package/store/reducer.d.ts +2 -2
- package/types/common.d.ts +4 -1
- package/types/publish.d.ts +8 -4
- package/types/store.d.ts +4 -3
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
|
-
|
|
3256
|
-
name: '
|
|
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
|
-
|
|
3263
|
-
name: '
|
|
3264
|
-
color: '#
|
|
3262
|
+
templateData: {
|
|
3263
|
+
name: 'templateData',
|
|
3264
|
+
color: '#e38888',
|
|
3265
3265
|
thickness: 1,
|
|
3266
3266
|
label: "\u6A21\u677F",
|
|
3267
|
-
display:
|
|
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
|
|
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"] = "
|
|
3477
|
-
SeriesType["TemplateData"] = "
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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)(
|
|
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 } =
|
|
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
|
|
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 } =
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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
|
|
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
|
|
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)(
|
|
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
|
|
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
|
|
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__.
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
|
|
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;
|
|
@@ -9628,6 +9767,7 @@ class Spectrum {
|
|
|
9628
9767
|
interval: 1,
|
|
9629
9768
|
series: {},
|
|
9630
9769
|
globalID: '',
|
|
9770
|
+
forceDisplay: false,
|
|
9631
9771
|
...props
|
|
9632
9772
|
};
|
|
9633
9773
|
this.firstRenderAutoFocus = false;
|
|
@@ -9645,9 +9785,8 @@ class Spectrum {
|
|
|
9645
9785
|
return config;
|
|
9646
9786
|
});
|
|
9647
9787
|
this.setSeries({
|
|
9648
|
-
...SERIES.
|
|
9649
|
-
type: type_GraphicType.Area
|
|
9650
|
-
display: true
|
|
9788
|
+
...SERIES.templateData,
|
|
9789
|
+
type: type_GraphicType.Area
|
|
9651
9790
|
});
|
|
9652
9791
|
this.useRangeAutoFocus = ()=>{
|
|
9653
9792
|
useRangeAutoFocus(this.state.globalID)();
|
|
@@ -9660,7 +9799,7 @@ class Spectrum {
|
|
|
9660
9799
|
for(let i = 0; i < s.length; i += 1){
|
|
9661
9800
|
const [name] = s[i];
|
|
9662
9801
|
const data = d[name];
|
|
9663
|
-
if (data && (
|
|
9802
|
+
if (data && (SERIES_NAMES.includes(name) || name === SERIES.templateData.name)) {
|
|
9664
9803
|
chart.render({
|
|
9665
9804
|
name,
|
|
9666
9805
|
data
|
|
@@ -9685,7 +9824,7 @@ class Spectrum {
|
|
|
9685
9824
|
this.state.interval = len;
|
|
9686
9825
|
chart.setIntervel(len);
|
|
9687
9826
|
}
|
|
9688
|
-
const n =
|
|
9827
|
+
const n = Date.now();
|
|
9689
9828
|
if (autoranging && n - prevAutoRangeTime > 1000) {
|
|
9690
9829
|
this.state.prevAutoRangeTime = n;
|
|
9691
9830
|
this.useRangeAutoFocus();
|
|
@@ -9699,7 +9838,7 @@ class Spectrum {
|
|
|
9699
9838
|
};
|
|
9700
9839
|
}
|
|
9701
9840
|
setSeries(config) {
|
|
9702
|
-
const { chart, series, globalID } = this.state;
|
|
9841
|
+
const { chart, series, globalID, forceDisplay } = this.state;
|
|
9703
9842
|
const { name } = config;
|
|
9704
9843
|
if (!chart || !name || !config) return;
|
|
9705
9844
|
const { type = type_GraphicType.Stepline, color = SERIES[name]?.color, thickness = 1, display = false } = {
|
|
@@ -9713,6 +9852,7 @@ class Spectrum {
|
|
|
9713
9852
|
thickness,
|
|
9714
9853
|
display
|
|
9715
9854
|
};
|
|
9855
|
+
if (forceDisplay) c.display = true;
|
|
9716
9856
|
series[name] = c;
|
|
9717
9857
|
chart.setSeries(c);
|
|
9718
9858
|
passThroughSeries(globalID, series);
|
|
@@ -10316,7 +10456,7 @@ class render_Heatmap {
|
|
|
10316
10456
|
const Heatmap_Heatmap = (props)=>{
|
|
10317
10457
|
const { selecter, heatmapDefaultData } = props;
|
|
10318
10458
|
const { state: { axisY: { realRange }, globalID } } = useStore_useStore();
|
|
10319
|
-
const { id, chart, Chart } =
|
|
10459
|
+
const { id, chart, Chart } = hooks_useChart({
|
|
10320
10460
|
Render: render_Heatmap,
|
|
10321
10461
|
params: {
|
|
10322
10462
|
realRange,
|
|
@@ -10368,7 +10508,7 @@ const Heatmap_Heatmap = (props)=>{
|
|
|
10368
10508
|
children: [
|
|
10369
10509
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Boundary, {}),
|
|
10370
10510
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Chart, {}),
|
|
10371
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
10511
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(EventBus, {
|
|
10372
10512
|
id: id
|
|
10373
10513
|
}),
|
|
10374
10514
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Markers, {
|
|
@@ -10376,7 +10516,7 @@ const Heatmap_Heatmap = (props)=>{
|
|
|
10376
10516
|
heatmapMode: true,
|
|
10377
10517
|
selecter: selecter
|
|
10378
10518
|
}),
|
|
10379
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
10519
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(HeatmapCapture, {
|
|
10380
10520
|
id: id
|
|
10381
10521
|
}),
|
|
10382
10522
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Cursor, {
|
|
@@ -10430,12 +10570,13 @@ const Heatmap_Chart_Chart = ({ publish, heatmapDefaultData })=>{
|
|
|
10430
10570
|
});
|
|
10431
10571
|
};
|
|
10432
10572
|
const Heatmap_Chart = Heatmap_Chart_Chart;
|
|
10433
|
-
const
|
|
10573
|
+
const HeatmapChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
|
|
10434
10574
|
...props,
|
|
10435
10575
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Heatmap_Chart, {
|
|
10436
10576
|
...props
|
|
10437
10577
|
})
|
|
10438
10578
|
});
|
|
10579
|
+
const lib_Heatmap_Heatmap = withChartPublisher(HeatmapChart, 'Heatmap');
|
|
10439
10580
|
const lib_Heatmap = lib_Heatmap_Heatmap;
|
|
10440
10581
|
class IQPlanisphere {
|
|
10441
10582
|
state;
|
|
@@ -10473,7 +10614,7 @@ class IQPlanisphere {
|
|
|
10473
10614
|
}
|
|
10474
10615
|
function IQEye_IQPlanisphere() {
|
|
10475
10616
|
const { state: { globalID } } = useStore_useStore();
|
|
10476
|
-
const { chart, Chart } =
|
|
10617
|
+
const { chart, Chart } = hooks_useChart({
|
|
10477
10618
|
Render: IQPlanisphere
|
|
10478
10619
|
});
|
|
10479
10620
|
(0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
|
|
@@ -10635,7 +10776,7 @@ const GridLines = ()=>{
|
|
|
10635
10776
|
const components_GridLines = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(GridLines);
|
|
10636
10777
|
const IQLine = ()=>{
|
|
10637
10778
|
const { state: { axisY: { autoranging }, globalID } } = useStore_useStore();
|
|
10638
|
-
const { chart, Chart } =
|
|
10779
|
+
const { chart, Chart } = hooks_useChart({
|
|
10639
10780
|
Render: Spectrum,
|
|
10640
10781
|
params: {
|
|
10641
10782
|
autoranging
|
|
@@ -10739,7 +10880,7 @@ class render_IQPlanisphere {
|
|
|
10739
10880
|
}
|
|
10740
10881
|
function IQPlanisphere_IQPlanisphere() {
|
|
10741
10882
|
const { state: { globalID } } = useStore_useStore();
|
|
10742
|
-
const { chart, Chart } =
|
|
10883
|
+
const { chart, Chart } = hooks_useChart({
|
|
10743
10884
|
Render: render_IQPlanisphere
|
|
10744
10885
|
});
|
|
10745
10886
|
(0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
|
|
@@ -10800,7 +10941,7 @@ class IQStream_render_IQStream {
|
|
|
10800
10941
|
}
|
|
10801
10942
|
const IQStream_IQStream = ()=>{
|
|
10802
10943
|
const { state: { globalID } } = useStore_useStore();
|
|
10803
|
-
const { chart, Chart } =
|
|
10944
|
+
const { chart, Chart } = hooks_useChart({
|
|
10804
10945
|
Render: IQStream_render_IQStream
|
|
10805
10946
|
});
|
|
10806
10947
|
(0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
|
|
@@ -10886,7 +11027,7 @@ const IQ_Chart_Chart = (props)=>{
|
|
|
10886
11027
|
});
|
|
10887
11028
|
};
|
|
10888
11029
|
const IQ_Chart = IQ_Chart_Chart;
|
|
10889
|
-
const
|
|
11030
|
+
const IQChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
|
|
10890
11031
|
system: {
|
|
10891
11032
|
padding: false,
|
|
10892
11033
|
border: false
|
|
@@ -10896,6 +11037,7 @@ const IQ_IQ = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_run
|
|
|
10896
11037
|
...props
|
|
10897
11038
|
})
|
|
10898
11039
|
});
|
|
11040
|
+
const IQ_IQ = withChartPublisher(IQChart, 'IQ');
|
|
10899
11041
|
const lib_IQ = IQ_IQ;
|
|
10900
11042
|
function uselevelStreamAnalyzer() {
|
|
10901
11043
|
const { state: { globalID, axisY: { range }, levelStream: { cacheTime, granularity } } } = useStore_useStore();
|
|
@@ -11031,7 +11173,7 @@ class Occupancy {
|
|
|
11031
11173
|
const Level_Level = (props)=>{
|
|
11032
11174
|
const { state: { axisY, globalID } } = useStore_useStore();
|
|
11033
11175
|
const { opacity } = props;
|
|
11034
|
-
const { chart, Chart } =
|
|
11176
|
+
const { chart, Chart } = hooks_useChart({
|
|
11035
11177
|
Render: Occupancy,
|
|
11036
11178
|
params: {
|
|
11037
11179
|
orientation: type_OrientationType.Horizontal
|
|
@@ -12323,12 +12465,20 @@ function usePoints() {
|
|
|
12323
12465
|
}
|
|
12324
12466
|
const Spectrum_Spectrum = (props)=>{
|
|
12325
12467
|
const { selecter, children } = props;
|
|
12326
|
-
const { state: { axisY: { autoranging }, series: { weaken }, globalID } } = useStore_useStore();
|
|
12327
|
-
|
|
12468
|
+
const { state: { axisY: { autoranging }, series: { weaken, forceDisplay }, globalID } } = useStore_useStore();
|
|
12469
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
|
|
12470
|
+
chart?.updateProps({
|
|
12471
|
+
forceDisplay
|
|
12472
|
+
});
|
|
12473
|
+
}, [
|
|
12474
|
+
forceDisplay
|
|
12475
|
+
]);
|
|
12476
|
+
const { id, chart, Chart } = hooks_useChart({
|
|
12328
12477
|
Render: Spectrum,
|
|
12329
12478
|
params: {
|
|
12330
12479
|
autoranging,
|
|
12331
|
-
weaken
|
|
12480
|
+
weaken,
|
|
12481
|
+
forceDisplay
|
|
12332
12482
|
}
|
|
12333
12483
|
});
|
|
12334
12484
|
useZoomEvent(id, constants_ModuleType.Spectrum);
|
|
@@ -12412,7 +12562,7 @@ const Spectrum_Spectrum = (props)=>{
|
|
|
12412
12562
|
heatmapMode: false,
|
|
12413
12563
|
selecter: selecter
|
|
12414
12564
|
}),
|
|
12415
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
12565
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(EventBus, {
|
|
12416
12566
|
id: id
|
|
12417
12567
|
}),
|
|
12418
12568
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Limit, {
|
|
@@ -12468,7 +12618,7 @@ const LevelStream_Chart_Chart = (props)=>{
|
|
|
12468
12618
|
});
|
|
12469
12619
|
};
|
|
12470
12620
|
const LevelStream_Chart = LevelStream_Chart_Chart;
|
|
12471
|
-
const
|
|
12621
|
+
const LevelStreamChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
|
|
12472
12622
|
...props,
|
|
12473
12623
|
cursor: {
|
|
12474
12624
|
show: false
|
|
@@ -12483,6 +12633,7 @@ const LevelStream_LevelStream = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MO
|
|
|
12483
12633
|
...props
|
|
12484
12634
|
})
|
|
12485
12635
|
});
|
|
12636
|
+
const LevelStream_LevelStream = withChartPublisher(LevelStreamChart, 'LevelStream');
|
|
12486
12637
|
const LevelStream = LevelStream_LevelStream;
|
|
12487
12638
|
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
12639
|
var occupancy_components_Ticks_styles_module_options = {};
|
|
@@ -12522,7 +12673,7 @@ type_Default_styles_module_options.domAPI = styleDomAPI_default();
|
|
|
12522
12673
|
type_Default_styles_module_options.insertStyleElement = insertStyleElement_default();
|
|
12523
12674
|
injectStylesIntoStyleTag_default()(occupancy_type_Default_styles_module.Z, type_Default_styles_module_options);
|
|
12524
12675
|
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
|
|
12676
|
+
const Default_Default = ()=>{
|
|
12526
12677
|
const { axisYWidth, marginLeft } = useAxisYWidth();
|
|
12527
12678
|
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
12528
12679
|
className: AxisY_occupancy_type_Default_styles_module.axisyoccupancydefault,
|
|
@@ -12533,13 +12684,13 @@ const type_Default_Default = ()=>{
|
|
|
12533
12684
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(occupancy_components_Ticks, {})
|
|
12534
12685
|
});
|
|
12535
12686
|
};
|
|
12536
|
-
const
|
|
12687
|
+
const occupancy_type_Default = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Default_Default);
|
|
12537
12688
|
const AxisYOccupancy = (props)=>{
|
|
12538
12689
|
const { disabled } = props;
|
|
12539
12690
|
const { state: { axisY } } = useStore_useStore();
|
|
12540
12691
|
const { show } = axisY;
|
|
12541
12692
|
if (false === show || disabled) return null;
|
|
12542
|
-
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
12693
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(occupancy_type_Default, {});
|
|
12543
12694
|
};
|
|
12544
12695
|
const AxisY_occupancy = AxisYOccupancy;
|
|
12545
12696
|
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 +12755,7 @@ const TotalLine = TotalLine_TotalLine;
|
|
|
12604
12755
|
const Occupancy_Occupancy = (props)=>{
|
|
12605
12756
|
const { occupancyAxisYDisabled } = props;
|
|
12606
12757
|
const { state: { globalID } } = useStore_useStore();
|
|
12607
|
-
const { id, chart, Chart } =
|
|
12758
|
+
const { id, chart, Chart } = hooks_useChart({
|
|
12608
12759
|
Render: Occupancy
|
|
12609
12760
|
});
|
|
12610
12761
|
const [value, setValue] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(0);
|
|
@@ -12640,7 +12791,7 @@ const Occupancy_Occupancy = (props)=>{
|
|
|
12640
12791
|
children: [
|
|
12641
12792
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occdahsed, {}),
|
|
12642
12793
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Chart, {}),
|
|
12643
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
12794
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(EventBus, {
|
|
12644
12795
|
id: id
|
|
12645
12796
|
}),
|
|
12646
12797
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(TotalLine, {
|
|
@@ -12675,12 +12826,13 @@ const Occupancy_Chart_Chart = (props)=>{
|
|
|
12675
12826
|
});
|
|
12676
12827
|
};
|
|
12677
12828
|
const Occupancy_Chart = Occupancy_Chart_Chart;
|
|
12678
|
-
const
|
|
12829
|
+
const OccupancyChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
|
|
12679
12830
|
...props,
|
|
12680
12831
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occupancy_Chart, {
|
|
12681
12832
|
...props
|
|
12682
12833
|
})
|
|
12683
12834
|
});
|
|
12835
|
+
const lib_Occupancy_Occupancy = withChartPublisher(OccupancyChart, 'Occupancy');
|
|
12684
12836
|
const lib_Occupancy = lib_Occupancy_Occupancy;
|
|
12685
12837
|
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
12838
|
var AxisX_styles_module_options = {};
|
|
@@ -12836,7 +12988,7 @@ const AxisXTicks = ({ type })=>{
|
|
|
12836
12988
|
});
|
|
12837
12989
|
};
|
|
12838
12990
|
const AxisX_Ticks = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(AxisXTicks);
|
|
12839
|
-
const
|
|
12991
|
+
const AxisX = ({ type })=>{
|
|
12840
12992
|
const { state: { axisX } } = useStore_useStore();
|
|
12841
12993
|
const { children, unit, ticks } = axisX;
|
|
12842
12994
|
const { width, pluginBoxWidth } = useAxisYWidth();
|
|
@@ -12874,7 +13026,7 @@ const AxisX_AxisX = ({ type })=>{
|
|
|
12874
13026
|
})
|
|
12875
13027
|
});
|
|
12876
13028
|
};
|
|
12877
|
-
const
|
|
13029
|
+
const components_AxisX = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(AxisX);
|
|
12878
13030
|
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
13031
|
var Blaze_styles_module_options = {};
|
|
12880
13032
|
Blaze_styles_module_options.styleTagTransform = styleTagTransform_default();
|
|
@@ -13373,7 +13525,7 @@ const ZoomSwitch = ()=>{
|
|
|
13373
13525
|
};
|
|
13374
13526
|
const Zoom_Switch = ZoomSwitch;
|
|
13375
13527
|
const modes = Object.values(constants_ModuleType);
|
|
13376
|
-
const
|
|
13528
|
+
const Reset_Reset = ()=>{
|
|
13377
13529
|
const { state: { globalID, publish } } = useStore_useStore();
|
|
13378
13530
|
const handleReset = ()=>{
|
|
13379
13531
|
publish({
|
|
@@ -13400,7 +13552,7 @@ const Reset = ()=>{
|
|
|
13400
13552
|
})
|
|
13401
13553
|
});
|
|
13402
13554
|
};
|
|
13403
|
-
const
|
|
13555
|
+
const Reset = Reset_Reset;
|
|
13404
13556
|
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
13557
|
var Dropdown_styles_module_options = {};
|
|
13406
13558
|
Dropdown_styles_module_options.styleTagTransform = styleTagTransform_default();
|
|
@@ -13644,7 +13796,7 @@ function useSpectrumRule({ channel, onChannelChange }) {
|
|
|
13644
13796
|
}, []);
|
|
13645
13797
|
return handleSpectrumRule;
|
|
13646
13798
|
}
|
|
13647
|
-
const
|
|
13799
|
+
const SegmentsDisplayControl = ()=>{
|
|
13648
13800
|
const { state: { segments, globalID } } = useStore_useStore();
|
|
13649
13801
|
const [display, setDisplay] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)([]);
|
|
13650
13802
|
const [selectedIndex, setSelectedIndex] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(null);
|
|
@@ -13685,7 +13837,7 @@ const SegmentsDisplayControl_SegmentsDisplayControl = ()=>{
|
|
|
13685
13837
|
onChange: handleSelect
|
|
13686
13838
|
});
|
|
13687
13839
|
};
|
|
13688
|
-
const
|
|
13840
|
+
const ToolsBar_SegmentsDisplayControl = SegmentsDisplayControl;
|
|
13689
13841
|
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
13842
|
var SeriesDisplayControl_styles_module_options = {};
|
|
13691
13843
|
SeriesDisplayControl_styles_module_options.styleTagTransform = styleTagTransform_default();
|
|
@@ -13697,7 +13849,7 @@ injectStylesIntoStyleTag_default()(SeriesDisplayControl_styles_module.Z, SeriesD
|
|
|
13697
13849
|
const ToolsBar_SeriesDisplayControl_styles_module = SeriesDisplayControl_styles_module.Z && SeriesDisplayControl_styles_module.Z.locals ? SeriesDisplayControl_styles_module.Z.locals : void 0;
|
|
13698
13850
|
const SeriesDisplayControl = ()=>{
|
|
13699
13851
|
const { state: { globalID, series }, dispatch } = useStore_useStore();
|
|
13700
|
-
const { data, legendExternal } = series;
|
|
13852
|
+
const { data, legendExternal, forceDisplay } = series;
|
|
13701
13853
|
const onClick = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((name)=>{
|
|
13702
13854
|
if (globalID) {
|
|
13703
13855
|
const item = data.get(name);
|
|
@@ -13774,7 +13926,7 @@ const SeriesDisplayControl = ()=>{
|
|
|
13774
13926
|
className: ToolsBar_SeriesDisplayControl_styles_module.itemsContainer,
|
|
13775
13927
|
children: Array.from(data.keys()).filter((name)=>!legendExternal.includes(name)).filter((name)=>name !== constants_SeriesType.TemplateData).map((name)=>{
|
|
13776
13928
|
const series = data.get(name);
|
|
13777
|
-
const dp = series?.display;
|
|
13929
|
+
const dp = forceDisplay ?? series?.display;
|
|
13778
13930
|
const label = series?.label;
|
|
13779
13931
|
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Tooltip, {
|
|
13780
13932
|
content: `${label} \u{5DF2}${dp ? "\u663E\u793A" : "\u9690\u85CF"}`,
|
|
@@ -13821,7 +13973,7 @@ const ToolsBar = ({ type })=>{
|
|
|
13821
13973
|
type !== constants_ChartType.ScanDF360 && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Unit, {}),
|
|
13822
13974
|
type === constants_ChartType.Heatmap && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_GradientRibbon, {}),
|
|
13823
13975
|
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)(
|
|
13976
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Reset, {}),
|
|
13825
13977
|
(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
13978
|
children: [
|
|
13827
13979
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyAllocation_Switch, {}),
|
|
@@ -13831,7 +13983,7 @@ const ToolsBar = ({ type })=>{
|
|
|
13831
13983
|
]
|
|
13832
13984
|
}),
|
|
13833
13985
|
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)(
|
|
13986
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_SegmentsDisplayControl, {})
|
|
13835
13987
|
}),
|
|
13836
13988
|
type === constants_ChartType.Heatmap && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
|
|
13837
13989
|
children: [
|
|
@@ -13944,7 +14096,7 @@ function useSeries() {
|
|
|
13944
14096
|
label: label || existingSeries?.label || name || existingSeries?.name,
|
|
13945
14097
|
data: data || existingSeries?.data
|
|
13946
14098
|
};
|
|
13947
|
-
if (!
|
|
14099
|
+
if (!SERIES_NAMES.includes(name) && !seriesStore.data.has(name) && void 0 === config.display) newConfig.display = true;
|
|
13948
14100
|
seriesRef.current.set(name, newConfig);
|
|
13949
14101
|
seriesStore.data = seriesRef.current;
|
|
13950
14102
|
dispatch({
|
|
@@ -14061,7 +14213,7 @@ function useSpectrumAnalyzer(props) {
|
|
|
14061
14213
|
name,
|
|
14062
14214
|
data
|
|
14063
14215
|
});
|
|
14064
|
-
if (data && !
|
|
14216
|
+
if (data && !SERIES_NAMES.includes(name) && globalIDRef.current) {
|
|
14065
14217
|
extraOutputData.current.set(name, {
|
|
14066
14218
|
outputData: getExtraData(data),
|
|
14067
14219
|
originalData: data
|
|
@@ -14131,12 +14283,13 @@ function useSpectrumAnalyzer(props) {
|
|
|
14131
14283
|
}, []);
|
|
14132
14284
|
const { updateTemplateOverData } = useTemplateComparison();
|
|
14133
14285
|
const handleSpectrumUpdate = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((data)=>{
|
|
14134
|
-
if (data.realData) updateSpectrum({
|
|
14286
|
+
if (data.realData || data.templateData || data.backgroundNoiseData) updateSpectrum({
|
|
14135
14287
|
minData: data.minData,
|
|
14136
14288
|
maxData: data.maxData,
|
|
14137
14289
|
avgData: data.avgData,
|
|
14290
|
+
backgroundNoiseData: data.backgroundNoiseData,
|
|
14138
14291
|
realData: data.realData,
|
|
14139
|
-
|
|
14292
|
+
templateData: data.templateData
|
|
14140
14293
|
});
|
|
14141
14294
|
if (data.scanProgress) updateProgress(data.scanProgress);
|
|
14142
14295
|
if (data.waterfallData) updateWaterfall(data.waterfallData);
|
|
@@ -14177,7 +14330,7 @@ function useSpectrumAnalyzer(props) {
|
|
|
14177
14330
|
if ((newStart !== oldStart || newEnd !== oldEnd) && analyzer.current) {
|
|
14178
14331
|
intervalRef.current = interval;
|
|
14179
14332
|
srcIndexCache.current = analyzer.current.updateSamplingRange(newStart, newEnd + 1) || new Uint32Array();
|
|
14180
|
-
for (const [name, item] of series)if (!
|
|
14333
|
+
for (const [name, item] of series)if (!SERIES_NAMES.includes(name) && item.data) extraOutputData.current?.set(name, {
|
|
14181
14334
|
outputData: getExtraData(item.data),
|
|
14182
14335
|
originalData: item.data
|
|
14183
14336
|
});
|
|
@@ -14230,7 +14383,8 @@ function useSpectrumAnalyzer(props) {
|
|
|
14230
14383
|
if (e.maxData) analyzer.current.setMaxData(e.maxData);
|
|
14231
14384
|
if (e.minData) analyzer.current.setMinData(e.minData);
|
|
14232
14385
|
if (e.avgData) analyzer.current.setAvgData(e.avgData);
|
|
14233
|
-
if (e.
|
|
14386
|
+
if (e.templateData) analyzer.current.setTemplateData(e.templateData);
|
|
14387
|
+
if (e.backgroundNoiseData) analyzer.current.setBackgroundNoiseData(e.backgroundNoiseData);
|
|
14234
14388
|
if (e.extraData) updateExtraData(e.extraData);
|
|
14235
14389
|
break;
|
|
14236
14390
|
case constants_PSType.Heatmap:
|
|
@@ -14301,6 +14455,7 @@ function useSpectrumChartType({ type, heatmapElementID }) {
|
|
|
14301
14455
|
if (type === constants_ChartType.DDC) {
|
|
14302
14456
|
limit.show = false;
|
|
14303
14457
|
signal.show = false;
|
|
14458
|
+
marker.display = true;
|
|
14304
14459
|
}
|
|
14305
14460
|
if (type === constants_ChartType.Lite) {
|
|
14306
14461
|
limit.show = false;
|
|
@@ -14389,7 +14544,7 @@ const HeatmapPortal_Chart = (props)=>{
|
|
|
14389
14544
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(modules_Heatmap, {
|
|
14390
14545
|
selecter: selecter
|
|
14391
14546
|
}),
|
|
14392
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
14547
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_AxisX, {
|
|
14393
14548
|
type: type
|
|
14394
14549
|
})
|
|
14395
14550
|
]
|
|
@@ -14407,7 +14562,7 @@ const OccupancyPortal_Chart = (props)=>{
|
|
|
14407
14562
|
type: constants_ChartType.Occupancy
|
|
14408
14563
|
}),
|
|
14409
14564
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(modules_Occupancy, {}),
|
|
14410
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
14565
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_AxisX, {
|
|
14411
14566
|
type: type
|
|
14412
14567
|
})
|
|
14413
14568
|
]
|
|
@@ -14476,18 +14631,19 @@ const Spectrum_Chart_Chart = (props)=>{
|
|
|
14476
14631
|
})
|
|
14477
14632
|
]
|
|
14478
14633
|
}),
|
|
14479
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
14634
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_AxisX, {
|
|
14480
14635
|
type: type
|
|
14481
14636
|
})
|
|
14482
14637
|
]
|
|
14483
14638
|
});
|
|
14484
14639
|
};
|
|
14485
14640
|
const Spectrum_Chart = Spectrum_Chart_Chart;
|
|
14486
|
-
const
|
|
14641
|
+
const SpectrumChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
|
|
14487
14642
|
...props,
|
|
14488
14643
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Spectrum_Chart, {
|
|
14489
14644
|
...props
|
|
14490
14645
|
})
|
|
14491
14646
|
});
|
|
14647
|
+
const lib_Spectrum_Spectrum = withChartPublisher(SpectrumChart, 'Spectrum');
|
|
14492
14648
|
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 };
|
|
14649
|
+
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 };
|