@rfkit/charts 1.1.9 → 1.1.10

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.
Files changed (2) hide show
  1. package/index.js +1041 -1160
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -13122,960 +13122,435 @@ const Spectrum_Spectrum = (props)=>{
13122
13122
  });
13123
13123
  };
13124
13124
  const modules_Spectrum = Spectrum_Spectrum;
13125
- const LevelStream_Chart_Chart = (props)=>{
13126
- const { publish } = props;
13127
- const { analyzer } = uselevelStreamAnalyzer();
13128
- hooks_usePublish({
13129
- publish,
13130
- subscribe: (e)=>{
13131
- const { pstype } = e;
13132
- if (pstype === constants_PSType.Reset) analyzer?.reset();
13133
- if (pstype === constants_PSType.LevelStream) analyzer?.process(e.data);
13134
- }
13135
- });
13136
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Container, {
13137
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_FlexBox, {
13138
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(modules_Spectrum, {
13139
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(PluginBox, {
13140
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Level, {
13141
- opacity: 0.5
13142
- })
13143
- })
13144
- })
13145
- })
13146
- });
13147
- };
13148
- const LevelStream_Chart = LevelStream_Chart_Chart;
13149
- const LevelStreamChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
13150
- ...props,
13151
- cursor: {
13152
- show: false
13153
- },
13154
- zoom: {
13155
- show: false
13125
+ const Autoranging_Autoranging = ()=>{
13126
+ const { state: { axisY, globalID }, dispatch } = useStore_useStore();
13127
+ const { autoranging, onChange } = axisY;
13128
+ const handleAuto = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
13129
+ const newAutoranging = !autoranging;
13130
+ onChange?.({
13131
+ autoranging: newAutoranging
13132
+ });
13133
+ dispatch({
13134
+ payload: {
13135
+ axisY: {
13136
+ ...axisY,
13137
+ autoranging: newAutoranging
13138
+ }
13139
+ }
13140
+ });
13141
+ }, [
13142
+ axisY,
13143
+ autoranging,
13144
+ onChange
13145
+ ]);
13146
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13147
+ title: "\u81EA\u52A8\u8303\u56F4",
13148
+ onClick: ()=>{
13149
+ useRangeAutoFocus(globalID)();
13156
13150
  },
13157
- signal: {
13158
- show: false
13151
+ onDoubleClick: ()=>{
13152
+ handleAuto();
13159
13153
  },
13160
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(LevelStream_Chart, {
13161
- ...props
13154
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
13155
+ style: {
13156
+ color: autoranging ? 'var(--theme-color-primary)' : 'var(--theme-color-base)'
13157
+ },
13158
+ children: "A"
13162
13159
  })
13163
13160
  });
13164
- const LevelStream_LevelStream = withChartPublisher(LevelStreamChart, 'LevelStream');
13165
- const LevelStream = LevelStream_LevelStream;
13166
- 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.12/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");
13167
- var occupancy_components_Ticks_styles_module_options = {};
13168
- occupancy_components_Ticks_styles_module_options.styleTagTransform = styleTagTransform_default();
13169
- occupancy_components_Ticks_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
13170
- occupancy_components_Ticks_styles_module_options.insert = insertBySelector_default().bind(null, "head");
13171
- occupancy_components_Ticks_styles_module_options.domAPI = styleDomAPI_default();
13172
- occupancy_components_Ticks_styles_module_options.insertStyleElement = insertStyleElement_default();
13173
- injectStylesIntoStyleTag_default()(occupancy_components_Ticks_styles_module.Z, occupancy_components_Ticks_styles_module_options);
13174
- const AxisY_occupancy_components_Ticks_styles_module = occupancy_components_Ticks_styles_module.Z && occupancy_components_Ticks_styles_module.Z.locals ? occupancy_components_Ticks_styles_module.Z.locals : void 0;
13175
- const Ticks_ticks = [
13176
- '100%',
13177
- '75%',
13178
- '50%',
13179
- '25%',
13180
- '0%'
13181
- ];
13182
- const occupancy_components_Ticks_Ticks = (props)=>{
13183
- const { inside = false } = props;
13184
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13185
- className: AxisY_occupancy_components_Ticks_styles_module.ticks,
13186
- style: {
13187
- alignItems: inside ? 'flex-start' : 'flex-end'
13188
- },
13189
- children: Ticks_ticks.map((i)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13190
- children: i
13191
- }, i))
13192
- });
13193
- };
13194
- const occupancy_components_Ticks = occupancy_components_Ticks_Ticks;
13195
- var occupancy_type_Default_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.12/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/AxisY/occupancy/type/Default/styles.module.less");
13196
- var type_Default_styles_module_options = {};
13197
- type_Default_styles_module_options.styleTagTransform = styleTagTransform_default();
13198
- type_Default_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
13199
- type_Default_styles_module_options.insert = insertBySelector_default().bind(null, "head");
13200
- type_Default_styles_module_options.domAPI = styleDomAPI_default();
13201
- type_Default_styles_module_options.insertStyleElement = insertStyleElement_default();
13202
- injectStylesIntoStyleTag_default()(occupancy_type_Default_styles_module.Z, type_Default_styles_module_options);
13203
- 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;
13204
- const Default_Default = ()=>{
13205
- const { axisYWidth, marginLeft } = useAxisYWidth();
13206
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13207
- className: AxisY_occupancy_type_Default_styles_module.axisyoccupancydefault,
13208
- style: {
13209
- width: axisYWidth,
13210
- marginLeft
13211
- },
13212
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(occupancy_components_Ticks, {})
13213
- });
13214
- };
13215
- const occupancy_type_Default = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Default_Default);
13216
- const AxisYOccupancy = (props)=>{
13217
- const { disabled } = props;
13218
- const { state: { axisY } } = useStore_useStore();
13219
- const { show } = axisY;
13220
- if (false === show || disabled) return null;
13221
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(occupancy_type_Default, {});
13222
13161
  };
13223
- const AxisY_occupancy = AxisYOccupancy;
13224
- 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.12/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/GridLines/Occdahsed/styles.module.less");
13225
- var Occdahsed_styles_module_options = {};
13226
- Occdahsed_styles_module_options.styleTagTransform = styleTagTransform_default();
13227
- Occdahsed_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
13228
- Occdahsed_styles_module_options.insert = insertBySelector_default().bind(null, "head");
13229
- Occdahsed_styles_module_options.domAPI = styleDomAPI_default();
13230
- Occdahsed_styles_module_options.insertStyleElement = insertStyleElement_default();
13231
- injectStylesIntoStyleTag_default()(Occdahsed_styles_module.Z, Occdahsed_styles_module_options);
13232
- const GridLines_Occdahsed_styles_module = Occdahsed_styles_module.Z && Occdahsed_styles_module.Z.locals ? Occdahsed_styles_module.Z.locals : void 0;
13233
- const Occdahsed_Dashed = ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13234
- className: GridLines_Occdahsed_styles_module.item
13235
- });
13236
- const Occdahsed_Occdahsed = ()=>{
13237
- const { state: { gridLines } } = useStore_useStore();
13238
- return gridLines && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
13239
- className: GridLines_Occdahsed_styles_module.Occdahsed,
13240
- children: [
13241
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occdahsed_Dashed, {}),
13242
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occdahsed_Dashed, {}),
13243
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occdahsed_Dashed, {}),
13244
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occdahsed_Dashed, {})
13245
- ]
13246
- });
13162
+ const Autoranging = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Autoranging_Autoranging);
13163
+ const nextItem = (v, list)=>{
13164
+ if (void 0 === v || void 0 === list || 0 === list.length) return v;
13165
+ let r = v;
13166
+ const index = list.findIndex((i)=>i === r);
13167
+ if (-1 === index || index === list.length - 1) [r] = list;
13168
+ else r = list[index + 1];
13169
+ return r;
13247
13170
  };
13248
- const Occdahsed = Occdahsed_Occdahsed;
13249
- var TotalLine_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.12/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/modules/Occupancy/TotalLine/styles.module.less");
13250
- var TotalLine_styles_module_options = {};
13251
- TotalLine_styles_module_options.styleTagTransform = styleTagTransform_default();
13252
- TotalLine_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
13253
- TotalLine_styles_module_options.insert = insertBySelector_default().bind(null, "head");
13254
- TotalLine_styles_module_options.domAPI = styleDomAPI_default();
13255
- TotalLine_styles_module_options.insertStyleElement = insertStyleElement_default();
13256
- injectStylesIntoStyleTag_default()(TotalLine_styles_module.Z, TotalLine_styles_module_options);
13257
- const Occupancy_TotalLine_styles_module = TotalLine_styles_module.Z && TotalLine_styles_module.Z.locals ? TotalLine_styles_module.Z.locals : void 0;
13258
- const TotalLine_TotalLine = (props)=>{
13259
- const { value } = props;
13260
- const style = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
13261
- bottom: `${value || -200}%`
13262
- }), [
13263
- value
13171
+ const Unit = ()=>{
13172
+ const { state: { axisY, globalID }, dispatch } = useStore_useStore();
13173
+ const { unit, unitList, autoranging, onChange } = axisY;
13174
+ const updateUnit = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
13175
+ if (autoranging) return;
13176
+ const newUnit = nextItem(unit, unitList);
13177
+ onChange?.({
13178
+ unit: newUnit
13179
+ });
13180
+ dispatch({
13181
+ payload: {
13182
+ axisY: {
13183
+ ...axisY,
13184
+ unit: newUnit
13185
+ }
13186
+ }
13187
+ });
13188
+ }, [
13189
+ axisY,
13190
+ unit,
13191
+ autoranging,
13192
+ unitList,
13193
+ onChange
13264
13194
  ]);
13265
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13266
- className: Occupancy_TotalLine_styles_module.TotalLine,
13267
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
13268
- className: Occupancy_TotalLine_styles_module.item,
13269
- style: style,
13270
- children: [
13271
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13272
- className: Occupancy_TotalLine_styles_module.line
13273
- }),
13274
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13275
- className: Occupancy_TotalLine_styles_module.value,
13276
- children: value
13277
- })
13278
- ]
13279
- })
13280
- });
13281
- };
13282
- const TotalLine = TotalLine_TotalLine;
13283
- const Occupancy_Occupancy = (props)=>{
13284
- const { occupancyAxisYDisabled } = props;
13285
- const { state: { globalID } } = useStore_useStore();
13286
- const { id, chart, Chart } = useChart({
13287
- Render: Occupancy
13288
- });
13289
- const [value, setValue] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(0);
13290
13195
  (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
13291
- if (chart && globalID) tools(globalID, constants_ModuleType.Occupancy, (d)=>{
13292
- const { pstype } = d;
13293
- switch(pstype){
13294
- case constants_PSType.Render:
13295
- {
13296
- const { data, totalOccupancy } = d;
13297
- if (data) chart.updateSeries(data);
13298
- if (void 0 !== totalOccupancy) setValue(totalOccupancy);
13299
- }
13300
- break;
13301
- case constants_PSType.Reset:
13302
- chart.reset();
13303
- setValue(0);
13304
- break;
13305
- default:
13306
- }
13196
+ if (globalID) subscriptionKeyBus(globalID, 'unit', (e)=>{
13197
+ if (e?.code === 'KeyU') updateUnit();
13307
13198
  });
13308
13199
  }, [
13309
- chart,
13200
+ updateUnit,
13310
13201
  globalID
13311
13202
  ]);
13312
- useZoomEvent(id, constants_ModuleType.Occupancy);
13313
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(components_FlexBox, {
13314
- children: [
13315
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(AxisY_occupancy, {
13316
- disabled: occupancyAxisYDisabled
13317
- }),
13318
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(PluginBox, {
13319
- children: [
13320
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occdahsed, {}),
13321
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Chart, {}),
13322
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(EventBus, {
13323
- id: id
13324
- }),
13325
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(TotalLine, {
13326
- value: value
13327
- }),
13328
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Cursor, {
13329
- id: id,
13330
- type: constants_ModuleType.Occupancy
13331
- })
13332
- ]
13333
- })
13334
- ]
13203
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13204
+ onClick: updateUnit,
13205
+ title: "\u5355\u4F4D",
13206
+ children: unit
13335
13207
  });
13336
13208
  };
13337
- const modules_Occupancy = Occupancy_Occupancy;
13338
- const Occupancy_Chart_Chart = (props)=>{
13339
- const { publish } = props;
13340
- const { state: { globalID } } = useStore_useStore();
13341
- hooks_usePublish({
13342
- publish,
13343
- subscribe: (e)=>{
13344
- if (e.pstype === constants_PSType.Occupancy) tools(globalID, constants_ModuleType.Occupancy)({
13345
- ...e,
13346
- pstype: constants_PSType.Render
13347
- });
13348
- }
13349
- });
13350
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Container, {
13351
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_FlexBox, {
13352
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(modules_Occupancy, {})
13209
+ const components_Unit = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Unit);
13210
+ const FrequencyAllocation_Switch_Switch = ()=>{
13211
+ const { state: { frequencyAllocation }, dispatch } = useStore_useStore();
13212
+ const { display, show } = frequencyAllocation;
13213
+ const setActive = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
13214
+ dispatch({
13215
+ payload: {
13216
+ frequencyAllocation: {
13217
+ ...frequencyAllocation,
13218
+ display: !!e
13219
+ }
13220
+ }
13221
+ });
13222
+ }, [
13223
+ frequencyAllocation
13224
+ ]);
13225
+ if (!show) return null;
13226
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13227
+ onClick: ()=>{
13228
+ setActive(!display);
13229
+ },
13230
+ title: "\u9891\u7387\u5212\u5206",
13231
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
13232
+ viewBox: "0 0 1024 1024",
13233
+ xmlns: "http://www.w3.org/2000/svg",
13234
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13235
+ fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)',
13236
+ opacity: "0.75",
13237
+ d: "M64 192h896v96H64zM64 736h896v96H64zM192 352h192v320H192zM448 352h192v320H448zM704 352h192v320H704z"
13238
+ })
13353
13239
  })
13354
13240
  });
13355
13241
  };
13356
- const Occupancy_Chart = Occupancy_Chart_Chart;
13357
- const OccupancyChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
13358
- ...props,
13359
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occupancy_Chart, {
13360
- ...props
13361
- })
13362
- });
13363
- const lib_Occupancy_Occupancy = withChartPublisher(OccupancyChart, 'Occupancy');
13364
- const lib_Occupancy = lib_Occupancy_Occupancy;
13365
- 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.12/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/AxisX/styles.module.less");
13366
- var AxisX_styles_module_options = {};
13367
- AxisX_styles_module_options.styleTagTransform = styleTagTransform_default();
13368
- AxisX_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
13369
- AxisX_styles_module_options.insert = insertBySelector_default().bind(null, "head");
13370
- AxisX_styles_module_options.domAPI = styleDomAPI_default();
13371
- AxisX_styles_module_options.insertStyleElement = insertStyleElement_default();
13372
- injectStylesIntoStyleTag_default()(AxisX_styles_module.Z, AxisX_styles_module_options);
13373
- const components_AxisX_styles_module = AxisX_styles_module.Z && AxisX_styles_module.Z.locals ? AxisX_styles_module.Z.locals : void 0;
13374
- const ThreeFixedTicks = ()=>{
13375
- const { state: { zoom: { interval: { start: intervalStart, end: intervalEnd } }, axisX: { unit, unitKHz }, segments } } = useStore_useStore();
13376
- const { totalPoints } = segments;
13377
- const endIndex = totalPoints - 1;
13378
- const { start, bandwidth = 0 } = segments[0] ?? {};
13379
- const center = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
13380
- if (!endIndex || !bandwidth || void 0 === start) return 0;
13381
- const midIndex = (0, utils.wF)(intervalStart, intervalEnd);
13382
- const safeIndex = Math.max(0, Math.min(midIndex, endIndex));
13383
- return (0, utils.lj)(start + safeIndex * bandwidth / (1000 * endIndex));
13242
+ const FrequencyAllocation_Switch = FrequencyAllocation_Switch_Switch;
13243
+ const HeatmapCapture_Switch_Switch = ()=>{
13244
+ const { state: { heatmapCapture }, dispatch } = useStore_useStore();
13245
+ const { show, display, type } = heatmapCapture;
13246
+ const { title, svg } = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
13247
+ let title = "\u7011\u5E03\u56FE\u6355\u83B7-\u533A\u57DF\u6D4B\u91CF";
13248
+ let svg = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
13249
+ children: [
13250
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13251
+ d: "M835.4 757.7h-69.9v-51h18.9v-18.8h51zM713.1 757.7h-83.9v-51h83.9v51z m-136.4 0h-83.9v-51h83.9v51z m-136.4 0h-83.9v-51h83.9v51z m-136.4 0H220v-51h83.9v51zM167.5 757.7H97.6v-69.8h51v18.8h18.9zM148.6 637.5h-51V557h51v80.5z m0-130.7h-51v-80.5h51v80.5z m0-130.8h-51v-80.5h51V376zM148.6 245.2h-51v-69.9h69.9v51h-18.9zM713.1 226.3h-83.9v-51h83.9v51z m-136.4 0h-83.9v-51h83.9v51z m-136.4 0h-83.9v-51h83.9v51z m-136.4 0H220v-51h83.9v51zM835.4 245.2h-51v-18.9h-18.9v-51h69.9zM835.4 637.5h-51V557h51v80.5z m0-130.7h-51v-80.5h51v80.5z m0-130.8h-51v-80.5h51V376z",
13252
+ fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)'
13253
+ }),
13254
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13255
+ d: "M784.4 615.7h51v233h-51z",
13256
+ fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)'
13257
+ }),
13258
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13259
+ d: "M693.4 706.7h233v51h-233z",
13260
+ fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)'
13261
+ })
13262
+ ]
13263
+ });
13264
+ if (type === store_HeatmapCaptureType.Slider) {
13265
+ title = "\u7011\u5E03\u56FE\u6355\u83B7-\u6ED1\u5757";
13266
+ svg = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13267
+ d: "M800 124H224c-55 0-100 45-100 100v576c0 55 45 100 100 100h576c55 0 100-45 100-100V224c0-55-45-100-100-100zM224 224h576v576H224V224z M700 324v376H324V324h376z",
13268
+ fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)',
13269
+ stroke: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)',
13270
+ strokeWidth: "2"
13271
+ });
13272
+ }
13273
+ if (type === store_HeatmapCaptureType.RowIndex) {
13274
+ title = "\u7011\u5E03\u56FE\u6355\u83B7-\u884C\u9009\u4E2D";
13275
+ svg = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
13276
+ children: [
13277
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13278
+ d: "M800 124H224c-55 0-100 45-100 100v576c0 55 45 100 100 100h576c55 0 100-45 100-100V224c0-55-45-100-100-100zM224 224h576v576H224V224z",
13279
+ fill: "none",
13280
+ stroke: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)',
13281
+ strokeWidth: "30"
13282
+ }),
13283
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13284
+ d: "M224 512h576",
13285
+ stroke: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)',
13286
+ strokeWidth: "30"
13287
+ })
13288
+ ]
13289
+ });
13290
+ }
13291
+ return {
13292
+ title,
13293
+ svg
13294
+ };
13384
13295
  }, [
13385
- intervalStart,
13386
- intervalEnd,
13387
- start,
13388
- endIndex,
13389
- bandwidth
13296
+ type,
13297
+ display
13390
13298
  ]);
13391
- const bandwidthDiff = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
13392
- if (!totalPoints || !bandwidth) return 0;
13393
- const intervalWidth = intervalEnd - intervalStart + 1;
13394
- return (0, utils.lj)(intervalWidth * bandwidth / (2 * totalPoints));
13299
+ const setActive = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
13300
+ dispatch({
13301
+ payload: {
13302
+ heatmapCapture: {
13303
+ ...heatmapCapture,
13304
+ display: !!e
13305
+ }
13306
+ }
13307
+ });
13395
13308
  }, [
13396
- intervalStart,
13397
- intervalEnd,
13398
- totalPoints,
13399
- bandwidth
13309
+ heatmapCapture
13400
13310
  ]);
13401
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
13402
- className: components_AxisX_styles_module.con,
13403
- children: [
13404
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyLabel, {
13405
- value: bandwidthDiff,
13406
- unit: unitKHz,
13407
- prefix: "-"
13408
- }),
13409
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyLabel, {
13410
- value: center,
13411
- unit: unit
13412
- }),
13413
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyLabel, {
13414
- value: bandwidthDiff,
13415
- unit: unitKHz,
13416
- prefix: "+"
13417
- }),
13418
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_RulerTicks, {
13419
- length: 10,
13420
- split: 5
13421
- })
13422
- ]
13423
- });
13424
- };
13425
- const FrequencyLabel = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(({ value, unit, prefix = '' })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
13426
- style: {
13427
- paddingLeft: '5px'
13428
- },
13429
- children: [
13430
- prefix,
13431
- value,
13432
- unit
13433
- ]
13434
- }));
13435
- const FrequencyTick = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(({ value, index, total })=>{
13436
- const leftPercentage = index / total * 100;
13437
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13438
- className: `${components_AxisX_styles_module.frequencyTick} ${0 === index ? components_AxisX_styles_module.first : index === total ? components_AxisX_styles_module.last : ''}`,
13439
- style: {
13440
- left: `${leftPercentage}%`
13311
+ if (!show) return null;
13312
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13313
+ onClick: ()=>{
13314
+ setActive(!display);
13441
13315
  },
13442
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
13443
- children: value
13316
+ title: title,
13317
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
13318
+ viewBox: "0 0 1024 1024",
13319
+ xmlns: "http://www.w3.org/2000/svg",
13320
+ children: svg
13444
13321
  })
13445
13322
  });
13446
- });
13447
- const TICK_COUNT = 5;
13448
- const DataNFixedTicks = ()=>{
13449
- const { state: { segments: { totalPoints }, zoom: { interval: { start: intervalStart, end: intervalEnd } }, axisX: { frequencyFormat } } } = useStore_useStore();
13450
- const getFrequencyByIndex = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((index)=>{
13451
- if (!totalPoints) return 0;
13452
- const percentage = Math.min(100 * index / totalPoints, 100);
13453
- return frequencyFormat(percentage);
13454
- }, [
13455
- totalPoints,
13456
- frequencyFormat
13457
- ]);
13458
- const ticks = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
13459
- const step = (intervalEnd - intervalStart + 1) / TICK_COUNT;
13460
- return Array.from({
13461
- length: TICK_COUNT + 1
13462
- }, (_, i)=>getFrequencyByIndex(intervalStart + step * i));
13323
+ };
13324
+ const HeatmapCapture_Switch = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(HeatmapCapture_Switch_Switch);
13325
+ const Limit_Switch_Switch = ()=>{
13326
+ const { state: { limit }, dispatch } = useStore_useStore();
13327
+ const { show, active } = limit;
13328
+ const setActive = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
13329
+ dispatch({
13330
+ payload: {
13331
+ limit: {
13332
+ ...limit,
13333
+ active: !!e
13334
+ }
13335
+ }
13336
+ });
13463
13337
  }, [
13464
- intervalStart,
13465
- intervalEnd,
13466
- getFrequencyByIndex
13338
+ limit
13467
13339
  ]);
13468
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
13469
- className: components_AxisX_styles_module.con,
13470
- children: [
13471
- ticks.map((tick, index)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyTick, {
13472
- value: tick,
13473
- index: index,
13474
- total: ticks.length - 1
13475
- }, `tick-${index}`)),
13476
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_RulerTicks, {
13477
- length: 10,
13478
- split: 2
13479
- })
13480
- ]
13481
- });
13482
- };
13483
- const MScanTicks = ()=>{
13484
- const { state: { segments } } = useStore_useStore();
13485
- const style = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
13486
- display: 'flex',
13487
- flex: 1,
13488
- justifyContent: 'center',
13489
- alignItems: 'center'
13490
- }), []);
13491
- const t = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>segments.map((item)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13492
- style: style,
13493
- children: item.label
13494
- }, item.index)), [
13495
- segments
13496
- ]);
13497
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
13498
- className: components_AxisX_styles_module.con,
13499
- children: [
13500
- t,
13501
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_RulerTicks, {
13502
- length: 2 * segments.length,
13503
- split: 2
13340
+ if (!show && !active) return null;
13341
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13342
+ onClick: ()=>{
13343
+ setActive(!active);
13344
+ },
13345
+ title: "\u95E8\u9650",
13346
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
13347
+ viewBox: "0 0 1024 1024",
13348
+ xmlns: "http://www.w3.org/2000/svg",
13349
+ style: {
13350
+ transform: 'scaleX(-1) scale(1, 0.75)'
13351
+ },
13352
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13353
+ d: "M256 384l0-384 768 0 0 384-64 0 0-320-640 0 0 320zM1024 576l0 448-768 0 0-448 64 0 0 384 640 0 0-384zM512 448l128 0 0 64-128 0zM320 448l128 0 0 64-128 0zM704 448l128 0 0 64-128 0zM896 448l128 0 0 64-128 0zM0 288l192 192-192 192z",
13354
+ fillOpacity: ".65",
13355
+ fill: active ? 'var(--theme-color-primary)' : 'var(--theme-color-base)'
13504
13356
  })
13505
- ]
13506
- });
13507
- };
13508
- const AxisXTicks = ({ type })=>{
13509
- const { state: { axisX: { show } } } = useStore_useStore();
13510
- if (!show) return null;
13511
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13512
- className: components_AxisX_styles_module.AxisXTicks,
13513
- children: type === constants_ChartType.Scan || type === constants_ChartType.ScanDF360 ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(DataNFixedTicks, {}) : type === constants_ChartType.MScan ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Zoom_ZoomOffsetContainer, {
13514
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(MScanTicks, {})
13515
- }) : /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ThreeFixedTicks, {})
13516
- });
13517
- };
13518
- const AxisX_Ticks = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(AxisXTicks);
13519
- const AxisX_AxisX = ({ type })=>{
13520
- const { state: { axisX } } = useStore_useStore();
13521
- const { children, unit, ticks } = axisX;
13522
- const { width, pluginBoxWidth } = useAxisYWidth();
13523
- const ref = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
13524
- const axisStyle = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
13525
- marginLeft: width,
13526
- width: pluginBoxWidth
13527
- }), [
13528
- width,
13529
- pluginBoxWidth
13530
- ]);
13531
- if (!axisX) return null;
13532
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Tooltip, {
13533
- content: `\u{5355}\u{4F4D}${unit}`,
13534
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
13535
- ref: ref,
13536
- className: components_AxisX_styles_module.axisx,
13537
- style: axisStyle,
13538
- children: [
13539
- ticks && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
13540
- children: [
13541
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13542
- className: components_AxisX_styles_module.unit,
13543
- children: unit
13544
- }),
13545
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(AxisX_Ticks, {
13546
- type: type
13547
- })
13548
- ]
13549
- }),
13550
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13551
- children: children
13552
- })
13553
- ]
13554
13357
  })
13555
13358
  });
13556
13359
  };
13557
- const AxisX = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(AxisX_AxisX);
13558
- 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.12/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/Blaze/styles.module.less");
13559
- var Blaze_styles_module_options = {};
13560
- Blaze_styles_module_options.styleTagTransform = styleTagTransform_default();
13561
- Blaze_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
13562
- Blaze_styles_module_options.insert = insertBySelector_default().bind(null, "head");
13563
- Blaze_styles_module_options.domAPI = styleDomAPI_default();
13564
- Blaze_styles_module_options.insertStyleElement = insertStyleElement_default();
13565
- injectStylesIntoStyleTag_default()(Blaze_styles_module.Z, Blaze_styles_module_options);
13566
- const components_Blaze_styles_module = Blaze_styles_module.Z && Blaze_styles_module.Z.locals ? Blaze_styles_module.Z.locals : void 0;
13567
- const BLAZE_PROGRESS = (globalID, func)=>subscription_createSubscriptionManager(`BLAZE_PROGRESS-${globalID}`, '0', func);
13568
- const Blaze = ()=>{
13569
- const { state: { blaze: { show }, segments, globalID } } = useStore_useStore();
13570
- const [left, setLeft] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)('');
13571
- const excludePercent = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
13572
- const exclude = [];
13573
- for(let i = 0; i < segments.length; i++){
13574
- const segment = segments[i];
13575
- if (segment.progress) exclude.push(...segment.progress);
13576
- }
13577
- return exclude;
13578
- }, [
13579
- segments
13580
- ]);
13581
- (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
13582
- if (show && globalID) BLAZE_PROGRESS(globalID, (progress)=>{
13583
- setLeft(excludePercent.includes(progress) ? void 0 : `${100 * progress}%`);
13360
+ const Limit_Switch = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Limit_Switch_Switch);
13361
+ const Markers_Switch_Switch = ()=>{
13362
+ const { state: { globalID, marker }, dispatch } = useStore_useStore();
13363
+ const { display, show } = marker;
13364
+ const setActive = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
13365
+ marker.display = !!e;
13366
+ dispatch({
13367
+ payload: {
13368
+ marker
13369
+ }
13584
13370
  });
13371
+ if (false === !!e) MARKER_UPDATE_RESET(globalID)();
13585
13372
  }, [
13586
- show,
13373
+ marker,
13587
13374
  globalID
13588
13375
  ]);
13589
- if (!show) return null;
13590
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Zoom_ZoomOffsetContainer, {
13591
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
13592
- className: components_Blaze_styles_module.blaze,
13376
+ const MarkerIcon = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("svg", {
13377
+ viewBox: "0 0 1024 1024",
13378
+ xmlns: "http://www.w3.org/2000/svg",
13379
+ width: "24",
13380
+ height: "24",
13593
13381
  style: {
13594
- left
13382
+ transform: 'scale(1.2)',
13383
+ transition: 'transform 0.2s ease'
13595
13384
  },
13596
13385
  children: [
13597
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13598
- className: components_Blaze_styles_module.line
13386
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13387
+ d: "M643.657143 241.956571L913.700571 512 643.657143 782.043429 373.613714 512z",
13388
+ fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)',
13389
+ opacity: "0.5"
13599
13390
  }),
13600
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13601
- className: components_Blaze_styles_module.shadow
13391
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13392
+ d: "M380.342857 241.956571L650.386286 512 380.342857 782.043429 110.299429 512z",
13393
+ fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)'
13602
13394
  })
13603
13395
  ]
13604
- })
13605
- });
13606
- };
13607
- const components_Blaze = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Blaze);
13608
- var Legend_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.12/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/Legend/styles.module.less");
13609
- var Legend_styles_module_options = {};
13610
- Legend_styles_module_options.styleTagTransform = styleTagTransform_default();
13611
- Legend_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
13612
- Legend_styles_module_options.insert = insertBySelector_default().bind(null, "head");
13613
- Legend_styles_module_options.domAPI = styleDomAPI_default();
13614
- Legend_styles_module_options.insertStyleElement = insertStyleElement_default();
13615
- injectStylesIntoStyleTag_default()(Legend_styles_module.Z, Legend_styles_module_options);
13616
- const components_Legend_styles_module = Legend_styles_module.Z && Legend_styles_module.Z.locals ? Legend_styles_module.Z.locals : void 0;
13617
- const Legend = ()=>{
13618
- const { state: { legend: { children } } } = useStore_useStore();
13619
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13620
- className: components_Legend_styles_module.legend,
13621
- children: children
13622
- });
13623
- };
13624
- const components_Legend = Legend;
13625
- var SegmentsZebra_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.12/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/SegmentsZebra/styles.module.less");
13626
- var SegmentsZebra_styles_module_options = {};
13627
- SegmentsZebra_styles_module_options.styleTagTransform = styleTagTransform_default();
13628
- SegmentsZebra_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
13629
- SegmentsZebra_styles_module_options.insert = insertBySelector_default().bind(null, "head");
13630
- SegmentsZebra_styles_module_options.domAPI = styleDomAPI_default();
13631
- SegmentsZebra_styles_module_options.insertStyleElement = insertStyleElement_default();
13632
- injectStylesIntoStyleTag_default()(SegmentsZebra_styles_module.Z, SegmentsZebra_styles_module_options);
13633
- const components_SegmentsZebra_styles_module = SegmentsZebra_styles_module.Z && SegmentsZebra_styles_module.Z.locals ? SegmentsZebra_styles_module.Z.locals : void 0;
13634
- const SegmentsZebra = ()=>{
13635
- const { state: { segments } } = useStore_useStore();
13636
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Zoom_ZoomOffsetContainer, {
13637
- className: components_SegmentsZebra_styles_module.SegmentsZebra,
13638
- children: segments.map((i, key)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13639
- className: components_SegmentsZebra_styles_module.item,
13640
- style: {
13641
- width: `${100 * i.point / segments.totalPoints}%`,
13642
- borderColor: key % 2 === 1 ? 'var(--theme-border-base)' : 'transparent',
13643
- background: key % 2 === 1 ? 'var(--theme-bg-second)' : 'transparent',
13644
- opacity: key % 2 === 1 ? 0.4 : 1
13645
- }
13646
- }, `${i.start}_${key}`))
13396
+ }), [
13397
+ display
13398
+ ]);
13399
+ if (!show) return null;
13400
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13401
+ onClick: ()=>setActive(!display),
13402
+ title: "\u6807\u8BB0\u70B9\u663E\u793A\u63A7\u5236",
13403
+ children: MarkerIcon
13647
13404
  });
13648
13405
  };
13649
- const components_SegmentsZebra = SegmentsZebra;
13650
- const Autoranging_Autoranging = ()=>{
13651
- const { state: { axisY, globalID }, dispatch } = useStore_useStore();
13652
- const { autoranging, onChange } = axisY;
13653
- const handleAuto = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
13654
- const newAutoranging = !autoranging;
13655
- onChange?.({
13656
- autoranging: newAutoranging
13657
- });
13406
+ const Markers_Switch = Markers_Switch_Switch;
13407
+ const MIN_TIME = 500;
13408
+ const MAX_TIME = 5000;
13409
+ const STEP = 100;
13410
+ const TimeRange_Switch_Switch = ()=>{
13411
+ const { state: { timeRange }, dispatch } = useStore_useStore();
13412
+ const handleWheel = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
13413
+ if (!timeRange) return;
13414
+ let newTimeRange = e.deltaY < 0 ? timeRange + STEP : timeRange - STEP;
13415
+ newTimeRange = Math.max(MIN_TIME, Math.min(MAX_TIME, newTimeRange));
13658
13416
  dispatch({
13659
13417
  payload: {
13660
- axisY: {
13661
- ...axisY,
13662
- autoranging: newAutoranging
13663
- }
13418
+ timeRange: newTimeRange
13664
13419
  }
13665
13420
  });
13666
13421
  }, [
13667
- axisY,
13668
- autoranging,
13669
- onChange
13422
+ timeRange,
13423
+ dispatch
13670
13424
  ]);
13425
+ if (!timeRange) return null;
13671
13426
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13672
- title: "\u81EA\u52A8\u8303\u56F4",
13673
- onClick: ()=>{
13674
- useRangeAutoFocus(globalID)();
13675
- },
13676
- onDoubleClick: ()=>{
13677
- handleAuto();
13678
- },
13679
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
13680
- style: {
13681
- color: autoranging ? 'var(--theme-color-primary)' : 'var(--theme-color-base)'
13682
- },
13683
- children: "A"
13427
+ title: "\u7011\u5E03\u56FE\u65F6\u95F4\u63A7\u5236",
13428
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
13429
+ onWheel: handleWheel,
13430
+ children: [
13431
+ (timeRange / 1000).toFixed(1),
13432
+ "s"
13433
+ ]
13684
13434
  })
13685
13435
  });
13686
13436
  };
13687
- const Autoranging = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Autoranging_Autoranging);
13688
- const nextItem = (v, list)=>{
13689
- if (void 0 === v || void 0 === list || 0 === list.length) return v;
13690
- let r = v;
13691
- const index = list.findIndex((i)=>i === r);
13692
- if (-1 === index || index === list.length - 1) [r] = list;
13693
- else r = list[index + 1];
13694
- return r;
13695
- };
13696
- const Unit = ()=>{
13697
- const { state: { axisY, globalID }, dispatch } = useStore_useStore();
13698
- const { unit, unitList, autoranging, onChange } = axisY;
13699
- const updateUnit = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
13700
- if (autoranging) return;
13701
- const newUnit = nextItem(unit, unitList);
13702
- onChange?.({
13703
- unit: newUnit
13704
- });
13705
- dispatch({
13706
- payload: {
13707
- axisY: {
13708
- ...axisY,
13709
- unit: newUnit
13710
- }
13711
- }
13712
- });
13713
- }, [
13714
- axisY,
13715
- unit,
13716
- autoranging,
13717
- unitList,
13718
- onChange
13719
- ]);
13437
+ const TimeRange_Switch = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(TimeRange_Switch_Switch);
13438
+ var Switch_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.12/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/Zoom/Switch/styles.module.less");
13439
+ var Switch_styles_module_options = {};
13440
+ Switch_styles_module_options.styleTagTransform = styleTagTransform_default();
13441
+ Switch_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
13442
+ Switch_styles_module_options.insert = insertBySelector_default().bind(null, "head");
13443
+ Switch_styles_module_options.domAPI = styleDomAPI_default();
13444
+ Switch_styles_module_options.insertStyleElement = insertStyleElement_default();
13445
+ injectStylesIntoStyleTag_default()(Switch_styles_module.Z, Switch_styles_module_options);
13446
+ const Zoom_Switch_styles_module = Switch_styles_module.Z && Switch_styles_module.Z.locals ? Switch_styles_module.Z.locals : void 0;
13447
+ const ZoomSwitch = ()=>{
13448
+ const { state: { zoom, segments: { totalPoints } }, dispatch } = useStore_useStore();
13449
+ const { show, autoCloseTimeout, interval: { start, end } } = zoom;
13450
+ const endIndex = totalPoints - 1;
13451
+ const [hidden, setHidden] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(true);
13452
+ const autoRecoveryTimer = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
13453
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>()=>{
13454
+ if (autoRecoveryTimer.current) clearTimeout(autoRecoveryTimer.current);
13455
+ }, []);
13720
13456
  (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
13721
- if (globalID) subscriptionKeyBus(globalID, 'unit', (e)=>{
13722
- if (e?.code === 'KeyU') updateUnit();
13723
- });
13457
+ if (autoRecoveryTimer.current) clearTimeout(autoRecoveryTimer.current);
13458
+ setHidden(false);
13459
+ autoRecoveryTimer.current = setTimeout(()=>{
13460
+ handleReset();
13461
+ }, autoCloseTimeout);
13724
13462
  }, [
13725
- updateUnit,
13726
- globalID
13463
+ start,
13464
+ end,
13465
+ autoCloseTimeout
13727
13466
  ]);
13728
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13729
- onClick: updateUnit,
13730
- title: "\u5355\u4F4D",
13731
- children: unit
13732
- });
13733
- };
13734
- const components_Unit = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Unit);
13735
- const FrequencyAllocation_Switch_Switch = ()=>{
13736
- const { state: { frequencyAllocation }, dispatch } = useStore_useStore();
13737
- const { display, show } = frequencyAllocation;
13738
- const setActive = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
13467
+ const handleReset = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
13468
+ const newZoom = {
13469
+ ...zoom,
13470
+ interval: {
13471
+ start: 0,
13472
+ end: endIndex
13473
+ },
13474
+ isScanSegmentsUpdateMagnify: false
13475
+ };
13739
13476
  dispatch({
13740
13477
  payload: {
13741
- frequencyAllocation: {
13742
- ...frequencyAllocation,
13743
- display: !!e
13744
- }
13478
+ zoom: newZoom
13745
13479
  }
13746
13480
  });
13481
+ setHidden(true);
13747
13482
  }, [
13748
- frequencyAllocation
13483
+ zoom,
13484
+ endIndex,
13485
+ dispatch
13486
+ ]);
13487
+ const gradientStyle = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
13488
+ background: `linear-gradient(to right,
13489
+ transparent ${(start + 1) / totalPoints * 100}%,
13490
+ var(--theme-color-base) ${(start + 1) / totalPoints * 100}%,
13491
+ var(--theme-color-base) ${(end + 1) / totalPoints * 100}%,
13492
+ transparent ${(end + 1) / totalPoints * 100}%
13493
+ )`
13494
+ }), [
13495
+ start,
13496
+ end,
13497
+ totalPoints
13498
+ ]);
13499
+ const isFullRange = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>0 === start && end === endIndex, [
13500
+ start,
13501
+ end,
13502
+ endIndex
13749
13503
  ]);
13750
13504
  if (!show) return null;
13751
13505
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13752
- onClick: ()=>{
13753
- setActive(!display);
13506
+ onClick: handleReset,
13507
+ title: "\u7F29\u653E\uFF1A\u5DE6\u952E\u6309\u4F4F\u79FB\u52A8\uFF0C\u6EDA\u8F6E\u7F29\u653E\uFF0C\u53F3\u952E\u6846\u9009\uFF0C\u70B9\u51FB\u5168\u666F\u5C55\u793A",
13508
+ style: {
13509
+ cursor: hidden ? 'no-drop' : 'pointer'
13754
13510
  },
13755
- title: "\u9891\u7387\u5212\u5206",
13756
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
13511
+ children: hidden || isFullRange ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
13512
+ width: "16",
13513
+ height: "16",
13757
13514
  viewBox: "0 0 1024 1024",
13758
13515
  xmlns: "http://www.w3.org/2000/svg",
13759
13516
  children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13760
- fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)',
13761
- opacity: "0.75",
13762
- d: "M64 192h896v96H64zM64 736h896v96H64zM192 352h192v320H192zM448 352h192v320H448zM704 352h192v320H704z"
13517
+ d: "M388.266667 512L290.133333 413.866667l29.866667-29.866667 149.333333 149.333333L320 682.666667l-29.866667-29.866667L388.266667 554.666667H128v-42.666667h260.266667z m290.133333 0H938.666667v42.666667h-260.266667l98.133333 98.133333-29.866666 29.866667-149.333334-149.333334L746.666667 384l29.866666 29.866667-98.133333 98.133333z",
13518
+ fill: "var(--theme-color-base)"
13519
+ })
13520
+ }) : /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13521
+ className: Zoom_Switch_styles_module.zoomSwitch,
13522
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13523
+ className: Zoom_Switch_styles_module.interval,
13524
+ style: gradientStyle
13763
13525
  })
13764
13526
  })
13765
13527
  });
13766
13528
  };
13767
- const FrequencyAllocation_Switch = FrequencyAllocation_Switch_Switch;
13768
- const HeatmapCapture_Switch_Switch = ()=>{
13769
- const { state: { heatmapCapture }, dispatch } = useStore_useStore();
13770
- const { show, display, type } = heatmapCapture;
13771
- const { title, svg } = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
13772
- let title = "\u7011\u5E03\u56FE\u6355\u83B7-\u533A\u57DF\u6D4B\u91CF";
13773
- let svg = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
13774
- children: [
13775
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13776
- d: "M835.4 757.7h-69.9v-51h18.9v-18.8h51zM713.1 757.7h-83.9v-51h83.9v51z m-136.4 0h-83.9v-51h83.9v51z m-136.4 0h-83.9v-51h83.9v51z m-136.4 0H220v-51h83.9v51zM167.5 757.7H97.6v-69.8h51v18.8h18.9zM148.6 637.5h-51V557h51v80.5z m0-130.7h-51v-80.5h51v80.5z m0-130.8h-51v-80.5h51V376zM148.6 245.2h-51v-69.9h69.9v51h-18.9zM713.1 226.3h-83.9v-51h83.9v51z m-136.4 0h-83.9v-51h83.9v51z m-136.4 0h-83.9v-51h83.9v51z m-136.4 0H220v-51h83.9v51zM835.4 245.2h-51v-18.9h-18.9v-51h69.9zM835.4 637.5h-51V557h51v80.5z m0-130.7h-51v-80.5h51v80.5z m0-130.8h-51v-80.5h51V376z",
13777
- fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)'
13778
- }),
13779
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13780
- d: "M784.4 615.7h51v233h-51z",
13781
- fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)'
13782
- }),
13783
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13784
- d: "M693.4 706.7h233v51h-233z",
13785
- fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)'
13786
- })
13787
- ]
13529
+ const Zoom_Switch = ZoomSwitch;
13530
+ const Reset_modes = Object.values(constants_ModuleType);
13531
+ const Reset_Reset = ()=>{
13532
+ const { state: { globalID, publish } } = useStore_useStore();
13533
+ const handleReset = ()=>{
13534
+ publish({
13535
+ pstype: constants_PSType.Reset
13788
13536
  });
13789
- if (type === store_HeatmapCaptureType.Slider) {
13790
- title = "\u7011\u5E03\u56FE\u6355\u83B7-\u6ED1\u5757";
13791
- svg = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13792
- d: "M800 124H224c-55 0-100 45-100 100v576c0 55 45 100 100 100h576c55 0 100-45 100-100V224c0-55-45-100-100-100zM224 224h576v576H224V224z M700 324v376H324V324h376z",
13793
- fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)',
13794
- stroke: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)',
13795
- strokeWidth: "2"
13796
- });
13797
- }
13798
- if (type === store_HeatmapCaptureType.RowIndex) {
13799
- title = "\u7011\u5E03\u56FE\u6355\u83B7-\u884C\u9009\u4E2D";
13800
- svg = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
13801
- children: [
13802
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13803
- d: "M800 124H224c-55 0-100 45-100 100v576c0 55 45 100 100 100h576c55 0 100-45 100-100V224c0-55-45-100-100-100zM224 224h576v576H224V224z",
13804
- fill: "none",
13805
- stroke: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)',
13806
- strokeWidth: "30"
13807
- }),
13808
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13809
- d: "M224 512h576",
13810
- stroke: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)',
13811
- strokeWidth: "30"
13812
- })
13813
- ]
13537
+ Reset_modes.forEach((mode)=>{
13538
+ tools(globalID, mode)({
13539
+ pstype: constants_PSType.Reset
13814
13540
  });
13815
- }
13816
- return {
13817
- title,
13818
- svg
13819
- };
13820
- }, [
13821
- type,
13822
- display
13823
- ]);
13824
- const setActive = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
13825
- dispatch({
13826
- payload: {
13827
- heatmapCapture: {
13828
- ...heatmapCapture,
13829
- display: !!e
13830
- }
13831
- }
13832
- });
13833
- }, [
13834
- heatmapCapture
13835
- ]);
13836
- if (!show) return null;
13837
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13838
- onClick: ()=>{
13839
- setActive(!display);
13840
- },
13841
- title: title,
13842
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
13843
- viewBox: "0 0 1024 1024",
13844
- xmlns: "http://www.w3.org/2000/svg",
13845
- children: svg
13846
- })
13847
- });
13848
- };
13849
- const HeatmapCapture_Switch = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(HeatmapCapture_Switch_Switch);
13850
- const Limit_Switch_Switch = ()=>{
13851
- const { state: { limit }, dispatch } = useStore_useStore();
13852
- const { show, active } = limit;
13853
- const setActive = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
13854
- dispatch({
13855
- payload: {
13856
- limit: {
13857
- ...limit,
13858
- active: !!e
13859
- }
13860
- }
13861
13541
  });
13862
- }, [
13863
- limit
13864
- ]);
13865
- if (!show && !active) return null;
13542
+ };
13866
13543
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13867
13544
  onClick: ()=>{
13868
- setActive(!active);
13545
+ handleReset();
13869
13546
  },
13870
- title: "\u95E8\u9650",
13547
+ title: "\u91CD\u7F6E",
13871
13548
  children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
13872
13549
  viewBox: "0 0 1024 1024",
13873
13550
  xmlns: "http://www.w3.org/2000/svg",
13874
- style: {
13875
- transform: 'scaleX(-1) scale(1, 0.75)'
13876
- },
13877
13551
  children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13878
- d: "M256 384l0-384 768 0 0 384-64 0 0-320-640 0 0 320zM1024 576l0 448-768 0 0-448 64 0 0 384 640 0 0-384zM512 448l128 0 0 64-128 0zM320 448l128 0 0 64-128 0zM704 448l128 0 0 64-128 0zM896 448l128 0 0 64-128 0zM0 288l192 192-192 192z",
13879
- fillOpacity: ".65",
13880
- fill: active ? 'var(--theme-color-primary)' : 'var(--theme-color-base)'
13881
- })
13882
- })
13883
- });
13884
- };
13885
- const Limit_Switch = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Limit_Switch_Switch);
13886
- const Markers_Switch_Switch = ()=>{
13887
- const { state: { globalID, marker }, dispatch } = useStore_useStore();
13888
- const { display, show } = marker;
13889
- const setActive = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
13890
- marker.display = !!e;
13891
- dispatch({
13892
- payload: {
13893
- marker
13894
- }
13895
- });
13896
- if (false === !!e) MARKER_UPDATE_RESET(globalID)();
13897
- }, [
13898
- marker,
13899
- globalID
13900
- ]);
13901
- const MarkerIcon = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("svg", {
13902
- viewBox: "0 0 1024 1024",
13903
- xmlns: "http://www.w3.org/2000/svg",
13904
- width: "24",
13905
- height: "24",
13906
- style: {
13907
- transform: 'scale(1.2)',
13908
- transition: 'transform 0.2s ease'
13909
- },
13910
- children: [
13911
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13912
- d: "M643.657143 241.956571L913.700571 512 643.657143 782.043429 373.613714 512z",
13913
- fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)',
13914
- opacity: "0.5"
13915
- }),
13916
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13917
- d: "M380.342857 241.956571L650.386286 512 380.342857 782.043429 110.299429 512z",
13918
- fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)'
13919
- })
13920
- ]
13921
- }), [
13922
- display
13923
- ]);
13924
- if (!show) return null;
13925
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13926
- onClick: ()=>setActive(!display),
13927
- title: "\u6807\u8BB0\u70B9\u663E\u793A\u63A7\u5236",
13928
- children: MarkerIcon
13929
- });
13930
- };
13931
- const Markers_Switch = Markers_Switch_Switch;
13932
- const MIN_TIME = 500;
13933
- const MAX_TIME = 5000;
13934
- const STEP = 100;
13935
- const TimeRange_Switch_Switch = ()=>{
13936
- const { state: { timeRange }, dispatch } = useStore_useStore();
13937
- const handleWheel = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
13938
- if (!timeRange) return;
13939
- let newTimeRange = e.deltaY < 0 ? timeRange + STEP : timeRange - STEP;
13940
- newTimeRange = Math.max(MIN_TIME, Math.min(MAX_TIME, newTimeRange));
13941
- dispatch({
13942
- payload: {
13943
- timeRange: newTimeRange
13944
- }
13945
- });
13946
- }, [
13947
- timeRange,
13948
- dispatch
13949
- ]);
13950
- if (!timeRange) return null;
13951
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13952
- title: "\u7011\u5E03\u56FE\u65F6\u95F4\u63A7\u5236",
13953
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
13954
- onWheel: handleWheel,
13955
- children: [
13956
- (timeRange / 1000).toFixed(1),
13957
- "s"
13958
- ]
13959
- })
13960
- });
13961
- };
13962
- const TimeRange_Switch = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(TimeRange_Switch_Switch);
13963
- var Switch_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.12/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/Zoom/Switch/styles.module.less");
13964
- var Switch_styles_module_options = {};
13965
- Switch_styles_module_options.styleTagTransform = styleTagTransform_default();
13966
- Switch_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
13967
- Switch_styles_module_options.insert = insertBySelector_default().bind(null, "head");
13968
- Switch_styles_module_options.domAPI = styleDomAPI_default();
13969
- Switch_styles_module_options.insertStyleElement = insertStyleElement_default();
13970
- injectStylesIntoStyleTag_default()(Switch_styles_module.Z, Switch_styles_module_options);
13971
- const Zoom_Switch_styles_module = Switch_styles_module.Z && Switch_styles_module.Z.locals ? Switch_styles_module.Z.locals : void 0;
13972
- const ZoomSwitch = ()=>{
13973
- const { state: { zoom, segments: { totalPoints } }, dispatch } = useStore_useStore();
13974
- const { show, autoCloseTimeout, interval: { start, end } } = zoom;
13975
- const endIndex = totalPoints - 1;
13976
- const [hidden, setHidden] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(true);
13977
- const autoRecoveryTimer = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
13978
- (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>()=>{
13979
- if (autoRecoveryTimer.current) clearTimeout(autoRecoveryTimer.current);
13980
- }, []);
13981
- (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
13982
- if (autoRecoveryTimer.current) clearTimeout(autoRecoveryTimer.current);
13983
- setHidden(false);
13984
- autoRecoveryTimer.current = setTimeout(()=>{
13985
- handleReset();
13986
- }, autoCloseTimeout);
13987
- }, [
13988
- start,
13989
- end,
13990
- autoCloseTimeout
13991
- ]);
13992
- const handleReset = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
13993
- const newZoom = {
13994
- ...zoom,
13995
- interval: {
13996
- start: 0,
13997
- end: endIndex
13998
- },
13999
- isScanSegmentsUpdateMagnify: false
14000
- };
14001
- dispatch({
14002
- payload: {
14003
- zoom: newZoom
14004
- }
14005
- });
14006
- setHidden(true);
14007
- }, [
14008
- zoom,
14009
- endIndex,
14010
- dispatch
14011
- ]);
14012
- const gradientStyle = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
14013
- background: `linear-gradient(to right,
14014
- transparent ${(start + 1) / totalPoints * 100}%,
14015
- var(--theme-color-base) ${(start + 1) / totalPoints * 100}%,
14016
- var(--theme-color-base) ${(end + 1) / totalPoints * 100}%,
14017
- transparent ${(end + 1) / totalPoints * 100}%
14018
- )`
14019
- }), [
14020
- start,
14021
- end,
14022
- totalPoints
14023
- ]);
14024
- const isFullRange = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>0 === start && end === endIndex, [
14025
- start,
14026
- end,
14027
- endIndex
14028
- ]);
14029
- if (!show) return null;
14030
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
14031
- onClick: handleReset,
14032
- title: "\u7F29\u653E\uFF1A\u5DE6\u952E\u6309\u4F4F\u79FB\u52A8\uFF0C\u6EDA\u8F6E\u7F29\u653E\uFF0C\u53F3\u952E\u6846\u9009\uFF0C\u70B9\u51FB\u5168\u666F\u5C55\u793A",
14033
- style: {
14034
- cursor: hidden ? 'no-drop' : 'pointer'
14035
- },
14036
- children: hidden || isFullRange ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
14037
- width: "16",
14038
- height: "16",
14039
- viewBox: "0 0 1024 1024",
14040
- xmlns: "http://www.w3.org/2000/svg",
14041
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
14042
- d: "M388.266667 512L290.133333 413.866667l29.866667-29.866667 149.333333 149.333333L320 682.666667l-29.866667-29.866667L388.266667 554.666667H128v-42.666667h260.266667z m290.133333 0H938.666667v42.666667h-260.266667l98.133333 98.133333-29.866666 29.866667-149.333334-149.333334L746.666667 384l29.866666 29.866667-98.133333 98.133333z",
14043
- fill: "var(--theme-color-base)"
14044
- })
14045
- }) : /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14046
- className: Zoom_Switch_styles_module.zoomSwitch,
14047
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14048
- className: Zoom_Switch_styles_module.interval,
14049
- style: gradientStyle
14050
- })
14051
- })
14052
- });
14053
- };
14054
- const Zoom_Switch = ZoomSwitch;
14055
- const Reset_modes = Object.values(constants_ModuleType);
14056
- const Reset_Reset = ()=>{
14057
- const { state: { globalID, publish } } = useStore_useStore();
14058
- const handleReset = ()=>{
14059
- publish({
14060
- pstype: constants_PSType.Reset
14061
- });
14062
- Reset_modes.forEach((mode)=>{
14063
- tools(globalID, mode)({
14064
- pstype: constants_PSType.Reset
14065
- });
14066
- });
14067
- };
14068
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
14069
- onClick: ()=>{
14070
- handleReset();
14071
- },
14072
- title: "\u91CD\u7F6E",
14073
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
14074
- viewBox: "0 0 1024 1024",
14075
- xmlns: "http://www.w3.org/2000/svg",
14076
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
14077
- d: "M512 160c-141.6 0-265.6 76.8-332.8 192l-76.8-76.8v224h224l-89.6-89.6C288 307.2 390.4 240 512 240c159.2 0 288 128.8 288 288s-128.8 288-288 288c-115.2 0-214.4-67.2-262.4-164.8l-68.8 36.8C240 800 364.8 880 512 880c194.4 0 352-157.6 352-352S706.4 160 512 160z",
14078
- fill: 'var(--theme-color-base)'
13552
+ d: "M512 160c-141.6 0-265.6 76.8-332.8 192l-76.8-76.8v224h224l-89.6-89.6C288 307.2 390.4 240 512 240c159.2 0 288 128.8 288 288s-128.8 288-288 288c-115.2 0-214.4-67.2-262.4-164.8l-68.8 36.8C240 800 364.8 880 512 880c194.4 0 352-157.6 352-352S706.4 160 512 160z",
13553
+ fill: 'var(--theme-color-base)'
14079
13554
  })
14080
13555
  })
14081
13556
  });
@@ -14090,7 +13565,7 @@ Dropdown_styles_module_options.domAPI = styleDomAPI_default();
14090
13565
  Dropdown_styles_module_options.insertStyleElement = insertStyleElement_default();
14091
13566
  injectStylesIntoStyleTag_default()(Dropdown_styles_module.Z, Dropdown_styles_module_options);
14092
13567
  const components_Dropdown_styles_module = Dropdown_styles_module.Z && Dropdown_styles_module.Z.locals ? Dropdown_styles_module.Z.locals : void 0;
14093
- const Dropdown = ({ value, options, onChange, placeholder = "\u8BF7\u9009\u62E9" })=>{
13568
+ const Dropdown_Dropdown = ({ value, options, onChange, placeholder = "\u8BF7\u9009\u62E9" })=>{
14094
13569
  const [isOpen, setIsOpen] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
14095
13570
  const handleSelect = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((value)=>{
14096
13571
  onChange(value);
@@ -14127,7 +13602,7 @@ const Dropdown = ({ value, options, onChange, placeholder = "\u8BF7\u9009\u62E9"
14127
13602
  ]
14128
13603
  });
14129
13604
  };
14130
- const components_Dropdown = Dropdown;
13605
+ const Dropdown = Dropdown_Dropdown;
14131
13606
  function useChannel({ channel = 32, onChannelChange }) {
14132
13607
  const { state: { marker, globalID }, dispatch } = useStore_useStore();
14133
13608
  const channelList = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)([]);
@@ -14359,7 +13834,7 @@ const SegmentsDisplayControl_SegmentsDisplayControl = ()=>{
14359
13834
  label: `\u{9891}\u{6BB5} ${segment.start} - ${segment.stop}`
14360
13835
  }))
14361
13836
  ];
14362
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Dropdown, {
13837
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Dropdown, {
14363
13838
  value: selectedIndex,
14364
13839
  options: options,
14365
13840
  onChange: handleSelect
@@ -14437,7 +13912,7 @@ const SeriesControl = ()=>{
14437
13912
  publish,
14438
13913
  seriesModes
14439
13914
  ]);
14440
- const title = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>seriesModes[currentMode].label, [
13915
+ const title = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>`${seriesModes[currentMode].label}-\u{70B9}\u{51FB}\u{5207}\u{6362}`, [
14441
13916
  currentMode,
14442
13917
  seriesModes
14443
13918
  ]);
@@ -14448,46 +13923,22 @@ const SeriesControl = ()=>{
14448
13923
  viewBox: "0 0 1024 1024",
14449
13924
  xmlns: "http://www.w3.org/2000/svg",
14450
13925
  children: [
14451
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("rect", {
14452
- width: "1024",
14453
- height: "1024",
14454
- fill: "transparent"
14455
- }),
14456
13926
  'bar' === currentMode && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("g", {
14457
13927
  children: [
14458
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("rect", {
14459
- x: "200",
14460
- y: "300",
14461
- width: "80",
14462
- height: "400",
14463
- fill: "var(--theme-color-primary)"
14464
- }),
14465
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("rect", {
14466
- x: "320",
14467
- y: "200",
14468
- width: "80",
14469
- height: "500",
13928
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13929
+ d: "M556.8 128l128 0 0 768-128 0 0-768Z",
14470
13930
  fill: "var(--theme-color-primary)"
14471
13931
  }),
14472
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("rect", {
14473
- x: "440",
14474
- y: "250",
14475
- width: "80",
14476
- height: "450",
13932
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13933
+ d: "M768 512l128 0 0 384-128 0 0-384Z",
14477
13934
  fill: "var(--theme-color-primary)"
14478
13935
  }),
14479
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("rect", {
14480
- x: "560",
14481
- y: "150",
14482
- width: "80",
14483
- height: "550",
13936
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13937
+ d: "M352 384l128 0 0 512-128 0 0-512Z",
14484
13938
  fill: "var(--theme-color-primary)"
14485
13939
  }),
14486
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("rect", {
14487
- x: "680",
14488
- y: "180",
14489
- width: "80",
14490
- height: "520",
13940
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13941
+ d: "M128 640l128 0 0 256-128 0 0-256Z",
14491
13942
  fill: "var(--theme-color-primary)"
14492
13943
  })
14493
13944
  ]
@@ -14495,269 +13946,616 @@ const SeriesControl = ()=>{
14495
13946
  'line' === currentMode && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("g", {
14496
13947
  children: [
14497
13948
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
14498
- d: "M100 600L200 400L350 500L500 300L650 450L750 200L900 350",
14499
- fill: "none",
14500
- stroke: "var(--theme-color-primary)",
14501
- strokeWidth: "12",
14502
- strokeLinecap: "round",
14503
- strokeLinejoin: "round"
14504
- }),
14505
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("circle", {
14506
- cx: "100",
14507
- cy: "600",
14508
- r: "8",
14509
- fill: "var(--theme-color-primary)"
14510
- }),
14511
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("circle", {
14512
- cx: "200",
14513
- cy: "400",
14514
- r: "8",
14515
- fill: "var(--theme-color-primary)"
14516
- }),
14517
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("circle", {
14518
- cx: "350",
14519
- cy: "500",
14520
- r: "8",
14521
- fill: "var(--theme-color-primary)"
14522
- }),
14523
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("circle", {
14524
- cx: "500",
14525
- cy: "300",
14526
- r: "8",
14527
- fill: "var(--theme-color-primary)"
14528
- }),
14529
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("circle", {
14530
- cx: "650",
14531
- cy: "450",
14532
- r: "8",
14533
- fill: "var(--theme-color-primary)"
14534
- }),
14535
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("circle", {
14536
- cx: "750",
14537
- cy: "200",
14538
- r: "8",
13949
+ d: "M62.1 844.9H959v60.7H62.1zM275.8 606.5L494 763.7 956.1 491l-51.4-83.5-404.3 240.7-231-163.7L64 651.4l61 77z",
14539
13950
  fill: "var(--theme-color-primary)"
14540
13951
  }),
14541
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("circle", {
14542
- cx: "900",
14543
- cy: "350",
14544
- r: "8",
13952
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13953
+ d: "M275.8 317.7L494 474.9l462.1-272.7-51.4-83.5-404.3 240.7-231-163.6L64 362.6l61 77z",
14545
13954
  fill: "var(--theme-color-primary)"
14546
13955
  })
14547
13956
  ]
14548
13957
  }),
14549
- 'stepline' === currentMode && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("g", {
13958
+ 'stepline' === currentMode && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("g", {
13959
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13960
+ d: "M375.466667 930.133333H136.533333v-268.8h68.266667v200.533334h102.4v-768h238.933333v512h102.4v-384h238.933334v610.133333h-68.266667V290.133333h-102.4v384h-238.933333v-512H375.466667z",
13961
+ fill: "var(--theme-color-primary)"
13962
+ })
13963
+ }),
13964
+ 'area' === currentMode && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("g", {
14550
13965
  children: [
14551
13966
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
14552
- d: "M100 700h150v-200h150v150h150v-250h150v100h150",
14553
- fill: "none",
14554
- stroke: "var(--theme-color-primary)",
14555
- strokeWidth: "10",
14556
- strokeLinecap: "square"
14557
- }),
14558
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("rect", {
14559
- x: "150",
14560
- y: "500",
14561
- width: "50",
14562
- height: "200",
13967
+ d: "M128 512l256-256 256 256 256-256v640H128V512z",
14563
13968
  fill: "var(--theme-color-primary)"
14564
13969
  }),
14565
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("rect", {
14566
- x: "350",
14567
- y: "450",
14568
- width: "50",
14569
- height: "250",
14570
- fill: "var(--theme-color-primary)"
14571
- }),
14572
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("rect", {
14573
- x: "550",
14574
- y: "250",
14575
- width: "50",
14576
- height: "450",
14577
- fill: "var(--theme-color-primary)"
14578
- }),
14579
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("rect", {
14580
- x: "750",
14581
- y: "350",
14582
- width: "50",
14583
- height: "350",
13970
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13971
+ d: "M896 928H128a32 32 0 0 1-32-32V512a32 32 0 0 1 9.28-22.72l256-256a32 32 0 0 1 45.44 0l233.28 233.6 233.28-233.6a32 32 0 0 1 34.88-6.72A32 32 0 0 1 928 256v640a32 32 0 0 1-32 32zM160 864h704V333.12l-201.28 201.6a32 32 0 0 1-45.44 0L384 301.12l-224 224z",
14584
13972
  fill: "var(--theme-color-primary)"
14585
13973
  })
14586
13974
  ]
13975
+ })
13976
+ ]
13977
+ })
13978
+ });
13979
+ };
13980
+ const ToolsBar_SeriesControl = SeriesControl;
13981
+ 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.12/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/ToolsBar/SeriesDisplayControl/styles.module.less");
13982
+ var SeriesDisplayControl_styles_module_options = {};
13983
+ SeriesDisplayControl_styles_module_options.styleTagTransform = styleTagTransform_default();
13984
+ SeriesDisplayControl_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
13985
+ SeriesDisplayControl_styles_module_options.insert = insertBySelector_default().bind(null, "head");
13986
+ SeriesDisplayControl_styles_module_options.domAPI = styleDomAPI_default();
13987
+ SeriesDisplayControl_styles_module_options.insertStyleElement = insertStyleElement_default();
13988
+ injectStylesIntoStyleTag_default()(SeriesDisplayControl_styles_module.Z, SeriesDisplayControl_styles_module_options);
13989
+ const ToolsBar_SeriesDisplayControl_styles_module = SeriesDisplayControl_styles_module.Z && SeriesDisplayControl_styles_module.Z.locals ? SeriesDisplayControl_styles_module.Z.locals : void 0;
13990
+ const SeriesDisplayControl = ()=>{
13991
+ const { state: { globalID, series }, dispatch } = useStore_useStore();
13992
+ const { data, legendExternal, forceDisplay } = series;
13993
+ const seriesArray = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>Array.from(data.keys()).filter((name)=>!legendExternal.includes(name)).filter((name)=>name !== constants_SeriesType.TemplateData), [
13994
+ data,
13995
+ legendExternal
13996
+ ]);
13997
+ const onClick = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((name, isDisplayTrue)=>{
13998
+ if (globalID) {
13999
+ const item = data.get(name);
14000
+ if (item) {
14001
+ const newDisplay = isDisplayTrue ? true : !item.display;
14002
+ data.set(name, {
14003
+ ...item,
14004
+ display: newDisplay
14005
+ });
14006
+ series.data = data;
14007
+ dispatch({
14008
+ payload: {
14009
+ series
14010
+ }
14011
+ });
14012
+ tools(globalID, constants_ModuleType.Spectrum)({
14013
+ pstype: constants_PSType.Series,
14014
+ name,
14015
+ display: newDisplay
14016
+ });
14017
+ }
14018
+ }
14019
+ }, [
14020
+ series,
14021
+ data,
14022
+ globalID
14023
+ ]);
14024
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
14025
+ if (forceDisplay) Object.values(SERIES).filter((s)=>!s.display).map((s)=>s.name).forEach((s)=>{
14026
+ if (!legendExternal.includes(s)) setTimeout(()=>{
14027
+ onClick(s, true);
14028
+ }, 1);
14029
+ });
14030
+ }, [
14031
+ forceDisplay,
14032
+ seriesArray
14033
+ ]);
14034
+ const [isCollapsed, setIsCollapsed] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(true);
14035
+ const toggleCollapse = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
14036
+ setIsCollapsed((prev)=>!prev);
14037
+ }, []);
14038
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
14039
+ let timeout;
14040
+ clearTimeout(timeout);
14041
+ if (!isCollapsed) timeout = setTimeout(()=>{
14042
+ setIsCollapsed(true);
14043
+ }, 10000);
14044
+ return ()=>{
14045
+ clearTimeout(timeout);
14046
+ };
14047
+ }, [
14048
+ isCollapsed
14049
+ ]);
14050
+ const CollapsedIcon = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
14051
+ onClick: toggleCollapse,
14052
+ title: `\u{56FE}\u{4F8B}\u{5DF2}${!isCollapsed ? "\u5C55\u5F00" : "\u6298\u53E0"}`,
14053
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("svg", {
14054
+ className: ToolsBar_SeriesDisplayControl_styles_module.collapseIcon,
14055
+ viewBox: "0 0 1024 1024",
14056
+ version: "1.1",
14057
+ xmlns: "http://www.w3.org/2000/svg",
14058
+ width: "16",
14059
+ height: "16",
14060
+ children: [
14061
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
14062
+ d: "M930.909091 896H93.090909c-18.618182 0-34.909091-16.290909-34.909091-34.909091V162.909091c0-18.618182 16.290909-34.909091 34.909091-34.909091h837.818182c18.618182 0 34.909091 16.290909 34.909091 34.909091v698.181818c0 18.618182-16.290909 34.909091-34.909091 34.909091z m-802.909091-69.818182h770.327273v-628.363636H128v628.363636z",
14063
+ fill: isCollapsed ? 'var(--theme-color-base)' : 'var(--theme-color-primary)'
14064
+ }),
14065
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
14066
+ d: "M232.727273 640c-4.654545 0-9.309091 0-13.963637-2.327273-16.290909-6.981818-25.6-27.927273-18.618181-44.218182l116.363636-279.272727c4.654545-11.636364 16.290909-20.945455 30.254545-20.945454 13.963636 0 25.6 4.654545 32.581819 16.290909l83.781818 146.618182H814.545455c18.618182 0 34.909091 16.290909 34.90909 34.90909s-16.290909 34.909091-34.90909 34.909091H442.181818c-11.636364 0-23.272727-6.981818-30.254545-16.290909l-58.181818-102.4-90.763637 216.436364c-4.654545 6.981818-16.290909 16.290909-30.254545 16.290909zM814.545455 663.272727H488.727273c-18.618182 0-34.909091-16.290909-34.909091-34.909091s16.290909-34.909091 34.909091-34.909091h325.818182c18.618182 0 34.909091 16.290909 34.90909 34.909091s-16.290909 34.909091-34.90909 34.909091z",
14067
+ fill: isCollapsed ? 'var(--theme-color-base)' : 'var(--theme-color-primary)'
14068
+ })
14069
+ ]
14070
+ })
14071
+ }), [
14072
+ isCollapsed
14073
+ ]);
14074
+ if (!(data instanceof Map)) return null;
14075
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14076
+ className: `${ToolsBar_SeriesDisplayControl_styles_module.SeriesDisplayControl} ${!isCollapsed ? ToolsBar_SeriesDisplayControl_styles_module.collapsed : ''}`,
14077
+ children: [
14078
+ CollapsedIcon,
14079
+ !isCollapsed && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14080
+ className: ToolsBar_SeriesDisplayControl_styles_module.itemsContainer,
14081
+ children: seriesArray.map((name)=>{
14082
+ const series = data.get(name);
14083
+ const dp = series?.display;
14084
+ const label = series?.label;
14085
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Tooltip, {
14086
+ content: `${label} \u{5DF2}${dp ? "\u663E\u793A" : "\u9690\u85CF"}`,
14087
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14088
+ className: ToolsBar_SeriesDisplayControl_styles_module.item,
14089
+ onClick: ()=>{
14090
+ onClick(name);
14091
+ },
14092
+ style: {
14093
+ color: dp ? series?.color : 'var(--theme-color-base)',
14094
+ opacity: dp ? 1 : 0.5
14095
+ },
14096
+ children: label
14097
+ })
14098
+ }, name);
14099
+ })
14100
+ })
14101
+ ]
14102
+ });
14103
+ };
14104
+ const ToolsBar_SeriesDisplayControl = SeriesDisplayControl;
14105
+ const SpacerLine = ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14106
+ className: components_ToolsBar_styles_module.spacerLine
14107
+ });
14108
+ const ToolsBar_SpacerLine = SpacerLine;
14109
+ const ToolsBar = ({ type })=>{
14110
+ const { state: { toolsBar: { show } } } = useStore_useStore();
14111
+ const { width, pluginBoxWidth } = useAxisYWidth();
14112
+ const axisStyle = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
14113
+ marginLeft: width,
14114
+ width: pluginBoxWidth
14115
+ }), [
14116
+ width,
14117
+ pluginBoxWidth
14118
+ ]);
14119
+ if (type === constants_ChartType.Occupancy || !show) return null;
14120
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14121
+ className: components_ToolsBar_styles_module.ToolsBar,
14122
+ style: axisStyle,
14123
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14124
+ className: components_ToolsBar_styles_module.fun,
14125
+ children: [
14126
+ type !== constants_ChartType.Heatmap && type !== constants_ChartType.ScanDF360 && type !== constants_ChartType.LevelStream && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Autoranging, {}),
14127
+ type !== constants_ChartType.ScanDF360 && type !== constants_ChartType.LevelStream && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Unit, {}),
14128
+ type === constants_ChartType.Heatmap && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_GradientRibbon, {}),
14129
+ type !== constants_ChartType.ScanDF360 && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_SpacerLine, {}),
14130
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Reset, {}),
14131
+ (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, {
14132
+ children: [
14133
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_SeriesControl, {}),
14134
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyAllocation_Switch, {}),
14135
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Zoom_Switch, {}),
14136
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Limit_Switch, {}),
14137
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Markers_Switch, {})
14138
+ ]
14139
+ }),
14140
+ type === constants_ChartType.Scan && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
14141
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(SegmentsDisplayControl, {})
14142
+ }),
14143
+ type === constants_ChartType.Heatmap && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
14144
+ children: [
14145
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(HeatmapCapture_Switch, {}),
14146
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(TimeRange_Switch, {})
14147
+ ]
14148
+ }),
14149
+ (type === constants_ChartType.SingleFrequency || type === constants_ChartType.Scan || type === constants_ChartType.MScan) && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_SeriesDisplayControl, {})
14150
+ ]
14151
+ })
14152
+ });
14153
+ };
14154
+ const components_ToolsBar = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(ToolsBar);
14155
+ const LevelStream_Chart_Chart = (props)=>{
14156
+ const { publish } = props;
14157
+ const { analyzer } = uselevelStreamAnalyzer();
14158
+ hooks_usePublish({
14159
+ publish,
14160
+ subscribe: (e)=>{
14161
+ const { pstype } = e;
14162
+ if (pstype === constants_PSType.Reset) analyzer?.reset();
14163
+ if (pstype === constants_PSType.LevelStream) analyzer?.process(e.data);
14164
+ }
14165
+ });
14166
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(components_Container, {
14167
+ children: [
14168
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_ToolsBar, {
14169
+ type: constants_ChartType.LevelStream
14170
+ }),
14171
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_FlexBox, {
14172
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(modules_Spectrum, {
14173
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(PluginBox, {
14174
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Level, {
14175
+ opacity: 0.5
14176
+ })
14177
+ })
14178
+ })
14179
+ })
14180
+ ]
14181
+ });
14182
+ };
14183
+ const LevelStream_Chart = LevelStream_Chart_Chart;
14184
+ const LevelStreamChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
14185
+ ...props,
14186
+ cursor: {
14187
+ show: false
14188
+ },
14189
+ zoom: {
14190
+ show: false
14191
+ },
14192
+ signal: {
14193
+ show: false
14194
+ },
14195
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(LevelStream_Chart, {
14196
+ ...props
14197
+ })
14198
+ });
14199
+ const LevelStream_LevelStream = withChartPublisher(LevelStreamChart, 'LevelStream');
14200
+ const LevelStream = LevelStream_LevelStream;
14201
+ 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.12/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");
14202
+ var occupancy_components_Ticks_styles_module_options = {};
14203
+ occupancy_components_Ticks_styles_module_options.styleTagTransform = styleTagTransform_default();
14204
+ occupancy_components_Ticks_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
14205
+ occupancy_components_Ticks_styles_module_options.insert = insertBySelector_default().bind(null, "head");
14206
+ occupancy_components_Ticks_styles_module_options.domAPI = styleDomAPI_default();
14207
+ occupancy_components_Ticks_styles_module_options.insertStyleElement = insertStyleElement_default();
14208
+ injectStylesIntoStyleTag_default()(occupancy_components_Ticks_styles_module.Z, occupancy_components_Ticks_styles_module_options);
14209
+ const AxisY_occupancy_components_Ticks_styles_module = occupancy_components_Ticks_styles_module.Z && occupancy_components_Ticks_styles_module.Z.locals ? occupancy_components_Ticks_styles_module.Z.locals : void 0;
14210
+ const Ticks_ticks = [
14211
+ '100%',
14212
+ '75%',
14213
+ '50%',
14214
+ '25%',
14215
+ '0%'
14216
+ ];
14217
+ const occupancy_components_Ticks_Ticks = (props)=>{
14218
+ const { inside = false } = props;
14219
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14220
+ className: AxisY_occupancy_components_Ticks_styles_module.ticks,
14221
+ style: {
14222
+ alignItems: inside ? 'flex-start' : 'flex-end'
14223
+ },
14224
+ children: Ticks_ticks.map((i)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14225
+ children: i
14226
+ }, i))
14227
+ });
14228
+ };
14229
+ const occupancy_components_Ticks = occupancy_components_Ticks_Ticks;
14230
+ var occupancy_type_Default_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.12/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/AxisY/occupancy/type/Default/styles.module.less");
14231
+ var type_Default_styles_module_options = {};
14232
+ type_Default_styles_module_options.styleTagTransform = styleTagTransform_default();
14233
+ type_Default_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
14234
+ type_Default_styles_module_options.insert = insertBySelector_default().bind(null, "head");
14235
+ type_Default_styles_module_options.domAPI = styleDomAPI_default();
14236
+ type_Default_styles_module_options.insertStyleElement = insertStyleElement_default();
14237
+ injectStylesIntoStyleTag_default()(occupancy_type_Default_styles_module.Z, type_Default_styles_module_options);
14238
+ 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;
14239
+ const Default_Default = ()=>{
14240
+ const { axisYWidth, marginLeft } = useAxisYWidth();
14241
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14242
+ className: AxisY_occupancy_type_Default_styles_module.axisyoccupancydefault,
14243
+ style: {
14244
+ width: axisYWidth,
14245
+ marginLeft
14246
+ },
14247
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(occupancy_components_Ticks, {})
14248
+ });
14249
+ };
14250
+ const occupancy_type_Default = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Default_Default);
14251
+ const AxisYOccupancy = (props)=>{
14252
+ const { disabled } = props;
14253
+ const { state: { axisY } } = useStore_useStore();
14254
+ const { show } = axisY;
14255
+ if (false === show || disabled) return null;
14256
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(occupancy_type_Default, {});
14257
+ };
14258
+ const AxisY_occupancy = AxisYOccupancy;
14259
+ 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.12/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/GridLines/Occdahsed/styles.module.less");
14260
+ var Occdahsed_styles_module_options = {};
14261
+ Occdahsed_styles_module_options.styleTagTransform = styleTagTransform_default();
14262
+ Occdahsed_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
14263
+ Occdahsed_styles_module_options.insert = insertBySelector_default().bind(null, "head");
14264
+ Occdahsed_styles_module_options.domAPI = styleDomAPI_default();
14265
+ Occdahsed_styles_module_options.insertStyleElement = insertStyleElement_default();
14266
+ injectStylesIntoStyleTag_default()(Occdahsed_styles_module.Z, Occdahsed_styles_module_options);
14267
+ const GridLines_Occdahsed_styles_module = Occdahsed_styles_module.Z && Occdahsed_styles_module.Z.locals ? Occdahsed_styles_module.Z.locals : void 0;
14268
+ const Occdahsed_Dashed = ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14269
+ className: GridLines_Occdahsed_styles_module.item
14270
+ });
14271
+ const Occdahsed_Occdahsed = ()=>{
14272
+ const { state: { gridLines } } = useStore_useStore();
14273
+ return gridLines && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14274
+ className: GridLines_Occdahsed_styles_module.Occdahsed,
14275
+ children: [
14276
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occdahsed_Dashed, {}),
14277
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occdahsed_Dashed, {}),
14278
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occdahsed_Dashed, {}),
14279
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occdahsed_Dashed, {})
14280
+ ]
14281
+ });
14282
+ };
14283
+ const Occdahsed = Occdahsed_Occdahsed;
14284
+ var TotalLine_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.12/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/modules/Occupancy/TotalLine/styles.module.less");
14285
+ var TotalLine_styles_module_options = {};
14286
+ TotalLine_styles_module_options.styleTagTransform = styleTagTransform_default();
14287
+ TotalLine_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
14288
+ TotalLine_styles_module_options.insert = insertBySelector_default().bind(null, "head");
14289
+ TotalLine_styles_module_options.domAPI = styleDomAPI_default();
14290
+ TotalLine_styles_module_options.insertStyleElement = insertStyleElement_default();
14291
+ injectStylesIntoStyleTag_default()(TotalLine_styles_module.Z, TotalLine_styles_module_options);
14292
+ const Occupancy_TotalLine_styles_module = TotalLine_styles_module.Z && TotalLine_styles_module.Z.locals ? TotalLine_styles_module.Z.locals : void 0;
14293
+ const TotalLine_TotalLine = (props)=>{
14294
+ const { value } = props;
14295
+ const style = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
14296
+ bottom: `${value || -200}%`
14297
+ }), [
14298
+ value
14299
+ ]);
14300
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14301
+ className: Occupancy_TotalLine_styles_module.TotalLine,
14302
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14303
+ className: Occupancy_TotalLine_styles_module.item,
14304
+ style: style,
14305
+ children: [
14306
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14307
+ className: Occupancy_TotalLine_styles_module.line
14587
14308
  }),
14588
- 'area' === currentMode && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("g", {
14589
- children: [
14590
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("defs", {
14591
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("linearGradient", {
14592
- id: "areaGradient",
14593
- x1: "0%",
14594
- y1: "100%",
14595
- x2: "0%",
14596
- y2: "0%",
14597
- children: [
14598
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("stop", {
14599
- offset: "0%",
14600
- stopColor: "var(--theme-color-primary)",
14601
- stopOpacity: "0.2"
14602
- }),
14603
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("stop", {
14604
- offset: "100%",
14605
- stopColor: "var(--theme-color-primary)",
14606
- stopOpacity: "0.6"
14607
- })
14608
- ]
14609
- })
14610
- }),
14611
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
14612
- d: "M100 800L100 500L300 300L500 400L700 200L900 350L900 800Z",
14613
- fill: "url(#areaGradient)"
14614
- }),
14615
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
14616
- d: "M100 500L300 300L500 400L700 200L900 350",
14617
- fill: "none",
14618
- stroke: "var(--theme-color-primary)",
14619
- strokeWidth: "6",
14620
- strokeLinecap: "round",
14621
- strokeLinejoin: "round"
14622
- })
14623
- ]
14309
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14310
+ className: Occupancy_TotalLine_styles_module.value,
14311
+ children: value
14624
14312
  })
14625
14313
  ]
14626
14314
  })
14627
14315
  });
14628
14316
  };
14629
- const ToolsBar_SeriesControl = SeriesControl;
14630
- 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.12/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/ToolsBar/SeriesDisplayControl/styles.module.less");
14631
- var SeriesDisplayControl_styles_module_options = {};
14632
- SeriesDisplayControl_styles_module_options.styleTagTransform = styleTagTransform_default();
14633
- SeriesDisplayControl_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
14634
- SeriesDisplayControl_styles_module_options.insert = insertBySelector_default().bind(null, "head");
14635
- SeriesDisplayControl_styles_module_options.domAPI = styleDomAPI_default();
14636
- SeriesDisplayControl_styles_module_options.insertStyleElement = insertStyleElement_default();
14637
- injectStylesIntoStyleTag_default()(SeriesDisplayControl_styles_module.Z, SeriesDisplayControl_styles_module_options);
14638
- const ToolsBar_SeriesDisplayControl_styles_module = SeriesDisplayControl_styles_module.Z && SeriesDisplayControl_styles_module.Z.locals ? SeriesDisplayControl_styles_module.Z.locals : void 0;
14639
- const SeriesDisplayControl = ()=>{
14640
- const { state: { globalID, series }, dispatch } = useStore_useStore();
14641
- const { data, legendExternal, forceDisplay } = series;
14642
- const seriesArray = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>Array.from(data.keys()).filter((name)=>!legendExternal.includes(name)).filter((name)=>name !== constants_SeriesType.TemplateData), [
14643
- data,
14644
- legendExternal
14645
- ]);
14646
- const onClick = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((name, isDisplayTrue)=>{
14647
- if (globalID) {
14648
- const item = data.get(name);
14649
- if (item) {
14650
- const newDisplay = isDisplayTrue ? true : !item.display;
14651
- data.set(name, {
14652
- ...item,
14653
- display: newDisplay
14654
- });
14655
- series.data = data;
14656
- dispatch({
14657
- payload: {
14658
- series
14317
+ const TotalLine = TotalLine_TotalLine;
14318
+ const Occupancy_Occupancy = (props)=>{
14319
+ const { occupancyAxisYDisabled } = props;
14320
+ const { state: { globalID } } = useStore_useStore();
14321
+ const { id, chart, Chart } = useChart({
14322
+ Render: Occupancy
14323
+ });
14324
+ const [value, setValue] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(0);
14325
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
14326
+ if (chart && globalID) tools(globalID, constants_ModuleType.Occupancy, (d)=>{
14327
+ const { pstype } = d;
14328
+ switch(pstype){
14329
+ case constants_PSType.Render:
14330
+ {
14331
+ const { data, totalOccupancy } = d;
14332
+ if (data) chart.updateSeries(data);
14333
+ if (void 0 !== totalOccupancy) setValue(totalOccupancy);
14659
14334
  }
14660
- });
14661
- tools(globalID, constants_ModuleType.Spectrum)({
14662
- pstype: constants_PSType.Series,
14663
- name,
14664
- display: newDisplay
14665
- });
14335
+ break;
14336
+ case constants_PSType.Reset:
14337
+ chart.reset();
14338
+ setValue(0);
14339
+ break;
14340
+ default:
14666
14341
  }
14667
- }
14342
+ });
14668
14343
  }, [
14669
- series,
14670
- data,
14344
+ chart,
14671
14345
  globalID
14672
14346
  ]);
14673
- (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
14674
- if (forceDisplay) Object.values(SERIES).filter((s)=>!s.display).map((s)=>s.name).forEach((s)=>{
14675
- if (!legendExternal.includes(s)) setTimeout(()=>{
14676
- onClick(s, true);
14677
- }, 1);
14678
- });
14347
+ useZoomEvent(id, constants_ModuleType.Occupancy);
14348
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(components_FlexBox, {
14349
+ children: [
14350
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(AxisY_occupancy, {
14351
+ disabled: occupancyAxisYDisabled
14352
+ }),
14353
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(PluginBox, {
14354
+ children: [
14355
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occdahsed, {}),
14356
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Chart, {}),
14357
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(EventBus, {
14358
+ id: id
14359
+ }),
14360
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(TotalLine, {
14361
+ value: value
14362
+ }),
14363
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Cursor, {
14364
+ id: id,
14365
+ type: constants_ModuleType.Occupancy
14366
+ })
14367
+ ]
14368
+ })
14369
+ ]
14370
+ });
14371
+ };
14372
+ const modules_Occupancy = Occupancy_Occupancy;
14373
+ const Occupancy_Chart_Chart = (props)=>{
14374
+ const { publish } = props;
14375
+ const { state: { globalID } } = useStore_useStore();
14376
+ hooks_usePublish({
14377
+ publish,
14378
+ subscribe: (e)=>{
14379
+ if (e.pstype === constants_PSType.Occupancy) tools(globalID, constants_ModuleType.Occupancy)({
14380
+ ...e,
14381
+ pstype: constants_PSType.Render
14382
+ });
14383
+ }
14384
+ });
14385
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Container, {
14386
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_FlexBox, {
14387
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(modules_Occupancy, {})
14388
+ })
14389
+ });
14390
+ };
14391
+ const Occupancy_Chart = Occupancy_Chart_Chart;
14392
+ const OccupancyChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
14393
+ ...props,
14394
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occupancy_Chart, {
14395
+ ...props
14396
+ })
14397
+ });
14398
+ const lib_Occupancy_Occupancy = withChartPublisher(OccupancyChart, 'Occupancy');
14399
+ const lib_Occupancy = lib_Occupancy_Occupancy;
14400
+ 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.12/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/AxisX/styles.module.less");
14401
+ var AxisX_styles_module_options = {};
14402
+ AxisX_styles_module_options.styleTagTransform = styleTagTransform_default();
14403
+ AxisX_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
14404
+ AxisX_styles_module_options.insert = insertBySelector_default().bind(null, "head");
14405
+ AxisX_styles_module_options.domAPI = styleDomAPI_default();
14406
+ AxisX_styles_module_options.insertStyleElement = insertStyleElement_default();
14407
+ injectStylesIntoStyleTag_default()(AxisX_styles_module.Z, AxisX_styles_module_options);
14408
+ const components_AxisX_styles_module = AxisX_styles_module.Z && AxisX_styles_module.Z.locals ? AxisX_styles_module.Z.locals : void 0;
14409
+ const ThreeFixedTicks = ()=>{
14410
+ const { state: { zoom: { interval: { start: intervalStart, end: intervalEnd } }, axisX: { unit, unitKHz }, segments } } = useStore_useStore();
14411
+ const { totalPoints } = segments;
14412
+ const endIndex = totalPoints - 1;
14413
+ const { start, bandwidth = 0 } = segments[0] ?? {};
14414
+ const center = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
14415
+ if (!endIndex || !bandwidth || void 0 === start) return 0;
14416
+ const midIndex = (0, utils.wF)(intervalStart, intervalEnd);
14417
+ const safeIndex = Math.max(0, Math.min(midIndex, endIndex));
14418
+ return (0, utils.lj)(start + safeIndex * bandwidth / (1000 * endIndex));
14679
14419
  }, [
14680
- forceDisplay,
14681
- seriesArray
14420
+ intervalStart,
14421
+ intervalEnd,
14422
+ start,
14423
+ endIndex,
14424
+ bandwidth
14425
+ ]);
14426
+ const bandwidthDiff = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
14427
+ if (!totalPoints || !bandwidth) return 0;
14428
+ const intervalWidth = intervalEnd - intervalStart + 1;
14429
+ return (0, utils.lj)(intervalWidth * bandwidth / (2 * totalPoints));
14430
+ }, [
14431
+ intervalStart,
14432
+ intervalEnd,
14433
+ totalPoints,
14434
+ bandwidth
14435
+ ]);
14436
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14437
+ className: components_AxisX_styles_module.con,
14438
+ children: [
14439
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyLabel, {
14440
+ value: bandwidthDiff,
14441
+ unit: unitKHz,
14442
+ prefix: "-"
14443
+ }),
14444
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyLabel, {
14445
+ value: center,
14446
+ unit: unit
14447
+ }),
14448
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyLabel, {
14449
+ value: bandwidthDiff,
14450
+ unit: unitKHz,
14451
+ prefix: "+"
14452
+ }),
14453
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_RulerTicks, {
14454
+ length: 10,
14455
+ split: 5
14456
+ })
14457
+ ]
14458
+ });
14459
+ };
14460
+ const FrequencyLabel = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(({ value, unit, prefix = '' })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14461
+ style: {
14462
+ paddingLeft: '5px'
14463
+ },
14464
+ children: [
14465
+ prefix,
14466
+ value,
14467
+ unit
14468
+ ]
14469
+ }));
14470
+ const FrequencyTick = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(({ value, index, total })=>{
14471
+ const leftPercentage = index / total * 100;
14472
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14473
+ className: `${components_AxisX_styles_module.frequencyTick} ${0 === index ? components_AxisX_styles_module.first : index === total ? components_AxisX_styles_module.last : ''}`,
14474
+ style: {
14475
+ left: `${leftPercentage}%`
14476
+ },
14477
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
14478
+ children: value
14479
+ })
14480
+ });
14481
+ });
14482
+ const TICK_COUNT = 5;
14483
+ const DataNFixedTicks = ()=>{
14484
+ const { state: { segments: { totalPoints }, zoom: { interval: { start: intervalStart, end: intervalEnd } }, axisX: { frequencyFormat } } } = useStore_useStore();
14485
+ const getFrequencyByIndex = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((index)=>{
14486
+ if (!totalPoints) return 0;
14487
+ const percentage = Math.min(100 * index / totalPoints, 100);
14488
+ return frequencyFormat(percentage);
14489
+ }, [
14490
+ totalPoints,
14491
+ frequencyFormat
14682
14492
  ]);
14683
- const [isCollapsed, setIsCollapsed] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(true);
14684
- const toggleCollapse = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
14685
- setIsCollapsed((prev)=>!prev);
14686
- }, []);
14687
- (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
14688
- let timeout;
14689
- clearTimeout(timeout);
14690
- if (!isCollapsed) timeout = setTimeout(()=>{
14691
- setIsCollapsed(true);
14692
- }, 10000);
14693
- return ()=>{
14694
- clearTimeout(timeout);
14695
- };
14493
+ const ticks = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
14494
+ const step = (intervalEnd - intervalStart + 1) / TICK_COUNT;
14495
+ return Array.from({
14496
+ length: TICK_COUNT + 1
14497
+ }, (_, i)=>getFrequencyByIndex(intervalStart + step * i));
14696
14498
  }, [
14697
- isCollapsed
14499
+ intervalStart,
14500
+ intervalEnd,
14501
+ getFrequencyByIndex
14698
14502
  ]);
14699
- const CollapsedIcon = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
14700
- onClick: toggleCollapse,
14701
- title: `\u{56FE}\u{4F8B}\u{5DF2}${!isCollapsed ? "\u5C55\u5F00" : "\u6298\u53E0"}`,
14702
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("svg", {
14703
- className: ToolsBar_SeriesDisplayControl_styles_module.collapseIcon,
14704
- viewBox: "0 0 1024 1024",
14705
- version: "1.1",
14706
- xmlns: "http://www.w3.org/2000/svg",
14707
- width: "16",
14708
- height: "16",
14709
- children: [
14710
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
14711
- d: "M930.909091 896H93.090909c-18.618182 0-34.909091-16.290909-34.909091-34.909091V162.909091c0-18.618182 16.290909-34.909091 34.909091-34.909091h837.818182c18.618182 0 34.909091 16.290909 34.909091 34.909091v698.181818c0 18.618182-16.290909 34.909091-34.909091 34.909091z m-802.909091-69.818182h770.327273v-628.363636H128v628.363636z",
14712
- fill: isCollapsed ? 'var(--theme-color-base)' : 'var(--theme-color-primary)'
14713
- }),
14714
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
14715
- d: "M232.727273 640c-4.654545 0-9.309091 0-13.963637-2.327273-16.290909-6.981818-25.6-27.927273-18.618181-44.218182l116.363636-279.272727c4.654545-11.636364 16.290909-20.945455 30.254545-20.945454 13.963636 0 25.6 4.654545 32.581819 16.290909l83.781818 146.618182H814.545455c18.618182 0 34.909091 16.290909 34.90909 34.90909s-16.290909 34.909091-34.90909 34.909091H442.181818c-11.636364 0-23.272727-6.981818-30.254545-16.290909l-58.181818-102.4-90.763637 216.436364c-4.654545 6.981818-16.290909 16.290909-30.254545 16.290909zM814.545455 663.272727H488.727273c-18.618182 0-34.909091-16.290909-34.909091-34.909091s16.290909-34.909091 34.909091-34.909091h325.818182c18.618182 0 34.909091 16.290909 34.90909 34.909091s-16.290909 34.909091-34.90909 34.909091z",
14716
- fill: isCollapsed ? 'var(--theme-color-base)' : 'var(--theme-color-primary)'
14717
- })
14718
- ]
14503
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14504
+ className: components_AxisX_styles_module.con,
14505
+ children: [
14506
+ ticks.map((tick, index)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyTick, {
14507
+ value: tick,
14508
+ index: index,
14509
+ total: ticks.length - 1
14510
+ }, `tick-${index}`)),
14511
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_RulerTicks, {
14512
+ length: 10,
14513
+ split: 2
14719
14514
  })
14720
- }), [
14721
- isCollapsed
14515
+ ]
14516
+ });
14517
+ };
14518
+ const MScanTicks = ()=>{
14519
+ const { state: { segments } } = useStore_useStore();
14520
+ const style = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
14521
+ display: 'flex',
14522
+ flex: 1,
14523
+ justifyContent: 'center',
14524
+ alignItems: 'center'
14525
+ }), []);
14526
+ const t = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>segments.map((item)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14527
+ style: style,
14528
+ children: item.label
14529
+ }, item.index)), [
14530
+ segments
14722
14531
  ]);
14723
- if (!(data instanceof Map)) return null;
14724
14532
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14725
- className: `${ToolsBar_SeriesDisplayControl_styles_module.SeriesDisplayControl} ${!isCollapsed ? ToolsBar_SeriesDisplayControl_styles_module.collapsed : ''}`,
14533
+ className: components_AxisX_styles_module.con,
14726
14534
  children: [
14727
- CollapsedIcon,
14728
- !isCollapsed && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14729
- className: ToolsBar_SeriesDisplayControl_styles_module.itemsContainer,
14730
- children: seriesArray.map((name)=>{
14731
- const series = data.get(name);
14732
- const dp = series?.display;
14733
- const label = series?.label;
14734
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Tooltip, {
14735
- content: `${label} \u{5DF2}${dp ? "\u663E\u793A" : "\u9690\u85CF"}`,
14736
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14737
- className: ToolsBar_SeriesDisplayControl_styles_module.item,
14738
- onClick: ()=>{
14739
- onClick(name);
14740
- },
14741
- style: {
14742
- color: dp ? series?.color : 'var(--theme-color-base)',
14743
- opacity: dp ? 1 : 0.5
14744
- },
14745
- children: label
14746
- })
14747
- }, name);
14748
- })
14535
+ t,
14536
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_RulerTicks, {
14537
+ length: 2 * segments.length,
14538
+ split: 2
14749
14539
  })
14750
14540
  ]
14751
14541
  });
14752
14542
  };
14753
- const ToolsBar_SeriesDisplayControl = SeriesDisplayControl;
14754
- const SpacerLine = ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14755
- className: components_ToolsBar_styles_module.spacerLine
14543
+ const AxisXTicks = ({ type })=>{
14544
+ const { state: { axisX: { show } } } = useStore_useStore();
14545
+ if (!show) return null;
14546
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14547
+ className: components_AxisX_styles_module.AxisXTicks,
14548
+ children: type === constants_ChartType.Scan || type === constants_ChartType.ScanDF360 ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(DataNFixedTicks, {}) : type === constants_ChartType.MScan ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Zoom_ZoomOffsetContainer, {
14549
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(MScanTicks, {})
14550
+ }) : /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ThreeFixedTicks, {})
14756
14551
  });
14757
- const ToolsBar_SpacerLine = SpacerLine;
14758
- const ToolsBar = ({ type })=>{
14759
- const { state: { toolsBar: { show } } } = useStore_useStore();
14552
+ };
14553
+ const AxisX_Ticks = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(AxisXTicks);
14554
+ const AxisX_AxisX = ({ type })=>{
14555
+ const { state: { axisX } } = useStore_useStore();
14556
+ const { children, unit, ticks } = axisX;
14760
14557
  const { width, pluginBoxWidth } = useAxisYWidth();
14558
+ const ref = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
14761
14559
  const axisStyle = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
14762
14560
  marginLeft: width,
14763
14561
  width: pluginBoxWidth
@@ -14765,42 +14563,125 @@ const ToolsBar = ({ type })=>{
14765
14563
  width,
14766
14564
  pluginBoxWidth
14767
14565
  ]);
14768
- if (type === constants_ChartType.Occupancy || !show) return null;
14769
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14770
- className: components_ToolsBar_styles_module.ToolsBar,
14771
- style: axisStyle,
14566
+ if (!axisX) return null;
14567
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Tooltip, {
14568
+ content: `\u{5355}\u{4F4D}${unit}`,
14772
14569
  children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14773
- className: components_ToolsBar_styles_module.fun,
14570
+ ref: ref,
14571
+ className: components_AxisX_styles_module.axisx,
14572
+ style: axisStyle,
14774
14573
  children: [
14775
- type !== constants_ChartType.Heatmap && type !== constants_ChartType.ScanDF360 && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Autoranging, {}),
14776
- type !== constants_ChartType.ScanDF360 && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Unit, {}),
14777
- type === constants_ChartType.Heatmap && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_GradientRibbon, {}),
14778
- type !== constants_ChartType.ScanDF360 && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_SpacerLine, {}),
14779
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Reset, {}),
14780
- (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, {
14574
+ ticks && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
14781
14575
  children: [
14782
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_SeriesControl, {}),
14783
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyAllocation_Switch, {}),
14784
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Zoom_Switch, {}),
14785
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Limit_Switch, {}),
14786
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Markers_Switch, {})
14576
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14577
+ className: components_AxisX_styles_module.unit,
14578
+ children: unit
14579
+ }),
14580
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(AxisX_Ticks, {
14581
+ type: type
14582
+ })
14787
14583
  ]
14788
14584
  }),
14789
- type === constants_ChartType.Scan && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
14790
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(SegmentsDisplayControl, {})
14791
- }),
14792
- type === constants_ChartType.Heatmap && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
14793
- children: [
14794
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(HeatmapCapture_Switch, {}),
14795
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(TimeRange_Switch, {})
14796
- ]
14585
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14586
+ children: children
14587
+ })
14588
+ ]
14589
+ })
14590
+ });
14591
+ };
14592
+ const AxisX = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(AxisX_AxisX);
14593
+ 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.12/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/Blaze/styles.module.less");
14594
+ var Blaze_styles_module_options = {};
14595
+ Blaze_styles_module_options.styleTagTransform = styleTagTransform_default();
14596
+ Blaze_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
14597
+ Blaze_styles_module_options.insert = insertBySelector_default().bind(null, "head");
14598
+ Blaze_styles_module_options.domAPI = styleDomAPI_default();
14599
+ Blaze_styles_module_options.insertStyleElement = insertStyleElement_default();
14600
+ injectStylesIntoStyleTag_default()(Blaze_styles_module.Z, Blaze_styles_module_options);
14601
+ const components_Blaze_styles_module = Blaze_styles_module.Z && Blaze_styles_module.Z.locals ? Blaze_styles_module.Z.locals : void 0;
14602
+ const BLAZE_PROGRESS = (globalID, func)=>subscription_createSubscriptionManager(`BLAZE_PROGRESS-${globalID}`, '0', func);
14603
+ const Blaze = ()=>{
14604
+ const { state: { blaze: { show }, segments, globalID } } = useStore_useStore();
14605
+ const [left, setLeft] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)('');
14606
+ const excludePercent = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
14607
+ const exclude = [];
14608
+ for(let i = 0; i < segments.length; i++){
14609
+ const segment = segments[i];
14610
+ if (segment.progress) exclude.push(...segment.progress);
14611
+ }
14612
+ return exclude;
14613
+ }, [
14614
+ segments
14615
+ ]);
14616
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
14617
+ if (show && globalID) BLAZE_PROGRESS(globalID, (progress)=>{
14618
+ setLeft(excludePercent.includes(progress) ? void 0 : `${100 * progress}%`);
14619
+ });
14620
+ }, [
14621
+ show,
14622
+ globalID
14623
+ ]);
14624
+ if (!show) return null;
14625
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Zoom_ZoomOffsetContainer, {
14626
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14627
+ className: components_Blaze_styles_module.blaze,
14628
+ style: {
14629
+ left
14630
+ },
14631
+ children: [
14632
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14633
+ className: components_Blaze_styles_module.line
14797
14634
  }),
14798
- (type === constants_ChartType.SingleFrequency || type === constants_ChartType.Scan || type === constants_ChartType.MScan) && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_SeriesDisplayControl, {})
14635
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14636
+ className: components_Blaze_styles_module.shadow
14637
+ })
14799
14638
  ]
14800
14639
  })
14801
14640
  });
14802
14641
  };
14803
- const components_ToolsBar = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(ToolsBar);
14642
+ const components_Blaze = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Blaze);
14643
+ var Legend_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.12/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/Legend/styles.module.less");
14644
+ var Legend_styles_module_options = {};
14645
+ Legend_styles_module_options.styleTagTransform = styleTagTransform_default();
14646
+ Legend_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
14647
+ Legend_styles_module_options.insert = insertBySelector_default().bind(null, "head");
14648
+ Legend_styles_module_options.domAPI = styleDomAPI_default();
14649
+ Legend_styles_module_options.insertStyleElement = insertStyleElement_default();
14650
+ injectStylesIntoStyleTag_default()(Legend_styles_module.Z, Legend_styles_module_options);
14651
+ const components_Legend_styles_module = Legend_styles_module.Z && Legend_styles_module.Z.locals ? Legend_styles_module.Z.locals : void 0;
14652
+ const Legend = ()=>{
14653
+ const { state: { legend: { children } } } = useStore_useStore();
14654
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14655
+ className: components_Legend_styles_module.legend,
14656
+ children: children
14657
+ });
14658
+ };
14659
+ const components_Legend = Legend;
14660
+ var SegmentsZebra_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.12/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/SegmentsZebra/styles.module.less");
14661
+ var SegmentsZebra_styles_module_options = {};
14662
+ SegmentsZebra_styles_module_options.styleTagTransform = styleTagTransform_default();
14663
+ SegmentsZebra_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
14664
+ SegmentsZebra_styles_module_options.insert = insertBySelector_default().bind(null, "head");
14665
+ SegmentsZebra_styles_module_options.domAPI = styleDomAPI_default();
14666
+ SegmentsZebra_styles_module_options.insertStyleElement = insertStyleElement_default();
14667
+ injectStylesIntoStyleTag_default()(SegmentsZebra_styles_module.Z, SegmentsZebra_styles_module_options);
14668
+ const components_SegmentsZebra_styles_module = SegmentsZebra_styles_module.Z && SegmentsZebra_styles_module.Z.locals ? SegmentsZebra_styles_module.Z.locals : void 0;
14669
+ const SegmentsZebra = ()=>{
14670
+ const { state: { segments } } = useStore_useStore();
14671
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Zoom_ZoomOffsetContainer, {
14672
+ className: components_SegmentsZebra_styles_module.SegmentsZebra,
14673
+ children: segments.map((i, key)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14674
+ className: components_SegmentsZebra_styles_module.item,
14675
+ style: {
14676
+ width: `${100 * i.point / segments.totalPoints}%`,
14677
+ borderColor: key % 2 === 1 ? 'var(--theme-border-base)' : 'transparent',
14678
+ background: key % 2 === 1 ? 'var(--theme-bg-second)' : 'transparent',
14679
+ opacity: key % 2 === 1 ? 0.4 : 1
14680
+ }
14681
+ }, `${i.start}_${key}`))
14682
+ });
14683
+ };
14684
+ const components_SegmentsZebra = SegmentsZebra;
14804
14685
  const Zoom_Zoom = ()=>{
14805
14686
  const { state: { zoom, segments: { totalPoints }, axisX: { frequencyFormat } }, dispatch } = useStore_useStore();
14806
14687
  const { interval: { start, end }, onChange } = zoom;