@rfkit/charts 1.1.9 → 1.1.11

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 +1048 -1164
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5814,6 +5814,7 @@ var type_GraphicType = /*#__PURE__*/ function(GraphicType1) {
5814
5814
  GraphicType1["Area"] = "area";
5815
5815
  return GraphicType1;
5816
5816
  }({});
5817
+ const ENABLE_AREA_GRADIENT = false;
5817
5818
  class Series extends engine_Engine {
5818
5819
  init(props) {
5819
5820
  super.init(props);
@@ -6033,10 +6034,12 @@ class Series extends engine_Engine {
6033
6034
  ctx.lineTo(endX, lastY);
6034
6035
  ctx.lineTo(endX, 0);
6035
6036
  ctx.closePath();
6036
- const gradient = ctx.createLinearGradient(0, 0, 0, height);
6037
- gradient.addColorStop(0, `rgba(${r}, ${g}, ${b}, 0)`);
6038
- gradient.addColorStop(1, `rgba(${r}, ${g}, ${b}, 0.5)`);
6039
- ctx.fillStyle = gradient;
6037
+ if (ENABLE_AREA_GRADIENT) {
6038
+ const gradient = ctx.createLinearGradient(0, 0, 0, height);
6039
+ gradient.addColorStop(0, `rgba(${r}, ${g}, ${b}, 0)`);
6040
+ gradient.addColorStop(1, `rgba(${r}, ${g}, ${b}, 0.5)`);
6041
+ ctx.fillStyle = gradient;
6042
+ } else ctx.fillStyle = `rgba(${r}, ${g}, ${b}, 1)`;
6040
6043
  ctx.fill();
6041
6044
  };
6042
6045
  for(let i = 0; i < len; i += 1){
@@ -13122,960 +13125,435 @@ const Spectrum_Spectrum = (props)=>{
13122
13125
  });
13123
13126
  };
13124
13127
  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
13128
+ const Autoranging_Autoranging = ()=>{
13129
+ const { state: { axisY, globalID }, dispatch } = useStore_useStore();
13130
+ const { autoranging, onChange } = axisY;
13131
+ const handleAuto = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
13132
+ const newAutoranging = !autoranging;
13133
+ onChange?.({
13134
+ autoranging: newAutoranging
13135
+ });
13136
+ dispatch({
13137
+ payload: {
13138
+ axisY: {
13139
+ ...axisY,
13140
+ autoranging: newAutoranging
13141
+ }
13142
+ }
13143
+ });
13144
+ }, [
13145
+ axisY,
13146
+ autoranging,
13147
+ onChange
13148
+ ]);
13149
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13150
+ title: "\u81EA\u52A8\u8303\u56F4",
13151
+ onClick: ()=>{
13152
+ useRangeAutoFocus(globalID)();
13156
13153
  },
13157
- signal: {
13158
- show: false
13154
+ onDoubleClick: ()=>{
13155
+ handleAuto();
13159
13156
  },
13160
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(LevelStream_Chart, {
13161
- ...props
13157
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
13158
+ style: {
13159
+ color: autoranging ? 'var(--theme-color-primary)' : 'var(--theme-color-base)'
13160
+ },
13161
+ children: "A"
13162
13162
  })
13163
13163
  });
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
13164
  };
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
- });
13165
+ const Autoranging = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Autoranging_Autoranging);
13166
+ const nextItem = (v, list)=>{
13167
+ if (void 0 === v || void 0 === list || 0 === list.length) return v;
13168
+ let r = v;
13169
+ const index = list.findIndex((i)=>i === r);
13170
+ if (-1 === index || index === list.length - 1) [r] = list;
13171
+ else r = list[index + 1];
13172
+ return r;
13247
13173
  };
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
13174
+ const Unit = ()=>{
13175
+ const { state: { axisY, globalID }, dispatch } = useStore_useStore();
13176
+ const { unit, unitList, autoranging, onChange } = axisY;
13177
+ const updateUnit = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
13178
+ if (autoranging) return;
13179
+ const newUnit = nextItem(unit, unitList);
13180
+ onChange?.({
13181
+ unit: newUnit
13182
+ });
13183
+ dispatch({
13184
+ payload: {
13185
+ axisY: {
13186
+ ...axisY,
13187
+ unit: newUnit
13188
+ }
13189
+ }
13190
+ });
13191
+ }, [
13192
+ axisY,
13193
+ unit,
13194
+ autoranging,
13195
+ unitList,
13196
+ onChange
13264
13197
  ]);
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
13198
  (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
- }
13199
+ if (globalID) subscriptionKeyBus(globalID, 'unit', (e)=>{
13200
+ if (e?.code === 'KeyU') updateUnit();
13307
13201
  });
13308
13202
  }, [
13309
- chart,
13203
+ updateUnit,
13310
13204
  globalID
13311
13205
  ]);
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
- ]
13206
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13207
+ onClick: updateUnit,
13208
+ title: "\u5355\u4F4D",
13209
+ children: unit
13335
13210
  });
13336
13211
  };
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, {})
13212
+ const components_Unit = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Unit);
13213
+ const FrequencyAllocation_Switch_Switch = ()=>{
13214
+ const { state: { frequencyAllocation }, dispatch } = useStore_useStore();
13215
+ const { display, show } = frequencyAllocation;
13216
+ const setActive = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
13217
+ dispatch({
13218
+ payload: {
13219
+ frequencyAllocation: {
13220
+ ...frequencyAllocation,
13221
+ display: !!e
13222
+ }
13223
+ }
13224
+ });
13225
+ }, [
13226
+ frequencyAllocation
13227
+ ]);
13228
+ if (!show) return null;
13229
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13230
+ onClick: ()=>{
13231
+ setActive(!display);
13232
+ },
13233
+ title: "\u9891\u7387\u5212\u5206",
13234
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
13235
+ viewBox: "0 0 1024 1024",
13236
+ xmlns: "http://www.w3.org/2000/svg",
13237
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13238
+ fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)',
13239
+ opacity: "0.75",
13240
+ d: "M64 192h896v96H64zM64 736h896v96H64zM192 352h192v320H192zM448 352h192v320H448zM704 352h192v320H704z"
13241
+ })
13353
13242
  })
13354
13243
  });
13355
13244
  };
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));
13245
+ const FrequencyAllocation_Switch = FrequencyAllocation_Switch_Switch;
13246
+ const HeatmapCapture_Switch_Switch = ()=>{
13247
+ const { state: { heatmapCapture }, dispatch } = useStore_useStore();
13248
+ const { show, display, type } = heatmapCapture;
13249
+ const { title, svg } = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
13250
+ let title = "\u7011\u5E03\u56FE\u6355\u83B7-\u533A\u57DF\u6D4B\u91CF";
13251
+ let svg = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
13252
+ children: [
13253
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13254
+ 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",
13255
+ fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)'
13256
+ }),
13257
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13258
+ d: "M784.4 615.7h51v233h-51z",
13259
+ fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)'
13260
+ }),
13261
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13262
+ d: "M693.4 706.7h233v51h-233z",
13263
+ fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)'
13264
+ })
13265
+ ]
13266
+ });
13267
+ if (type === store_HeatmapCaptureType.Slider) {
13268
+ title = "\u7011\u5E03\u56FE\u6355\u83B7-\u6ED1\u5757";
13269
+ svg = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13270
+ 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",
13271
+ fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)',
13272
+ stroke: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)',
13273
+ strokeWidth: "2"
13274
+ });
13275
+ }
13276
+ if (type === store_HeatmapCaptureType.RowIndex) {
13277
+ title = "\u7011\u5E03\u56FE\u6355\u83B7-\u884C\u9009\u4E2D";
13278
+ svg = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
13279
+ children: [
13280
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13281
+ 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",
13282
+ fill: "none",
13283
+ stroke: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)',
13284
+ strokeWidth: "30"
13285
+ }),
13286
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13287
+ d: "M224 512h576",
13288
+ stroke: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)',
13289
+ strokeWidth: "30"
13290
+ })
13291
+ ]
13292
+ });
13293
+ }
13294
+ return {
13295
+ title,
13296
+ svg
13297
+ };
13384
13298
  }, [
13385
- intervalStart,
13386
- intervalEnd,
13387
- start,
13388
- endIndex,
13389
- bandwidth
13299
+ type,
13300
+ display
13390
13301
  ]);
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));
13302
+ const setActive = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
13303
+ dispatch({
13304
+ payload: {
13305
+ heatmapCapture: {
13306
+ ...heatmapCapture,
13307
+ display: !!e
13308
+ }
13309
+ }
13310
+ });
13395
13311
  }, [
13396
- intervalStart,
13397
- intervalEnd,
13398
- totalPoints,
13399
- bandwidth
13312
+ heatmapCapture
13400
13313
  ]);
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}%`
13314
+ if (!show) return null;
13315
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13316
+ onClick: ()=>{
13317
+ setActive(!display);
13441
13318
  },
13442
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
13443
- children: value
13319
+ title: title,
13320
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
13321
+ viewBox: "0 0 1024 1024",
13322
+ xmlns: "http://www.w3.org/2000/svg",
13323
+ children: svg
13444
13324
  })
13445
13325
  });
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));
13326
+ };
13327
+ const HeatmapCapture_Switch = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(HeatmapCapture_Switch_Switch);
13328
+ const Limit_Switch_Switch = ()=>{
13329
+ const { state: { limit }, dispatch } = useStore_useStore();
13330
+ const { show, active } = limit;
13331
+ const setActive = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
13332
+ dispatch({
13333
+ payload: {
13334
+ limit: {
13335
+ ...limit,
13336
+ active: !!e
13337
+ }
13338
+ }
13339
+ });
13463
13340
  }, [
13464
- intervalStart,
13465
- intervalEnd,
13466
- getFrequencyByIndex
13341
+ limit
13467
13342
  ]);
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
13343
+ if (!show && !active) return null;
13344
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13345
+ onClick: ()=>{
13346
+ setActive(!active);
13347
+ },
13348
+ title: "\u95E8\u9650",
13349
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
13350
+ viewBox: "0 0 1024 1024",
13351
+ xmlns: "http://www.w3.org/2000/svg",
13352
+ style: {
13353
+ transform: 'scaleX(-1) scale(1, 0.75)'
13354
+ },
13355
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13356
+ 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",
13357
+ fillOpacity: ".65",
13358
+ fill: active ? 'var(--theme-color-primary)' : 'var(--theme-color-base)'
13504
13359
  })
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
13360
  })
13555
13361
  });
13556
13362
  };
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}%`);
13363
+ const Limit_Switch = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Limit_Switch_Switch);
13364
+ const Markers_Switch_Switch = ()=>{
13365
+ const { state: { globalID, marker }, dispatch } = useStore_useStore();
13366
+ const { display, show } = marker;
13367
+ const setActive = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
13368
+ marker.display = !!e;
13369
+ dispatch({
13370
+ payload: {
13371
+ marker
13372
+ }
13584
13373
  });
13374
+ if (false === !!e) MARKER_UPDATE_RESET(globalID)();
13585
13375
  }, [
13586
- show,
13376
+ marker,
13587
13377
  globalID
13588
13378
  ]);
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,
13379
+ const MarkerIcon = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("svg", {
13380
+ viewBox: "0 0 1024 1024",
13381
+ xmlns: "http://www.w3.org/2000/svg",
13382
+ width: "24",
13383
+ height: "24",
13593
13384
  style: {
13594
- left
13385
+ transform: 'scale(1.2)',
13386
+ transition: 'transform 0.2s ease'
13595
13387
  },
13596
13388
  children: [
13597
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13598
- className: components_Blaze_styles_module.line
13389
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13390
+ d: "M643.657143 241.956571L913.700571 512 643.657143 782.043429 373.613714 512z",
13391
+ fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)',
13392
+ opacity: "0.5"
13599
13393
  }),
13600
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13601
- className: components_Blaze_styles_module.shadow
13394
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13395
+ d: "M380.342857 241.956571L650.386286 512 380.342857 782.043429 110.299429 512z",
13396
+ fill: display ? 'var(--theme-color-primary)' : 'var(--theme-color-base)'
13602
13397
  })
13603
13398
  ]
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}`))
13399
+ }), [
13400
+ display
13401
+ ]);
13402
+ if (!show) return null;
13403
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13404
+ onClick: ()=>setActive(!display),
13405
+ title: "\u6807\u8BB0\u70B9\u663E\u793A\u63A7\u5236",
13406
+ children: MarkerIcon
13647
13407
  });
13648
13408
  };
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
- });
13409
+ const Markers_Switch = Markers_Switch_Switch;
13410
+ const MIN_TIME = 500;
13411
+ const MAX_TIME = 5000;
13412
+ const STEP = 100;
13413
+ const TimeRange_Switch_Switch = ()=>{
13414
+ const { state: { timeRange }, dispatch } = useStore_useStore();
13415
+ const handleWheel = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
13416
+ if (!timeRange) return;
13417
+ let newTimeRange = e.deltaY < 0 ? timeRange + STEP : timeRange - STEP;
13418
+ newTimeRange = Math.max(MIN_TIME, Math.min(MAX_TIME, newTimeRange));
13658
13419
  dispatch({
13659
13420
  payload: {
13660
- axisY: {
13661
- ...axisY,
13662
- autoranging: newAutoranging
13663
- }
13421
+ timeRange: newTimeRange
13664
13422
  }
13665
13423
  });
13666
13424
  }, [
13667
- axisY,
13668
- autoranging,
13669
- onChange
13425
+ timeRange,
13426
+ dispatch
13670
13427
  ]);
13428
+ if (!timeRange) return null;
13671
13429
  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"
13430
+ title: "\u7011\u5E03\u56FE\u65F6\u95F4\u63A7\u5236",
13431
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
13432
+ onWheel: handleWheel,
13433
+ children: [
13434
+ (timeRange / 1000).toFixed(1),
13435
+ "s"
13436
+ ]
13684
13437
  })
13685
13438
  });
13686
13439
  };
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
- ]);
13440
+ const TimeRange_Switch = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(TimeRange_Switch_Switch);
13441
+ 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");
13442
+ var Switch_styles_module_options = {};
13443
+ Switch_styles_module_options.styleTagTransform = styleTagTransform_default();
13444
+ Switch_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
13445
+ Switch_styles_module_options.insert = insertBySelector_default().bind(null, "head");
13446
+ Switch_styles_module_options.domAPI = styleDomAPI_default();
13447
+ Switch_styles_module_options.insertStyleElement = insertStyleElement_default();
13448
+ injectStylesIntoStyleTag_default()(Switch_styles_module.Z, Switch_styles_module_options);
13449
+ const Zoom_Switch_styles_module = Switch_styles_module.Z && Switch_styles_module.Z.locals ? Switch_styles_module.Z.locals : void 0;
13450
+ const ZoomSwitch = ()=>{
13451
+ const { state: { zoom, segments: { totalPoints } }, dispatch } = useStore_useStore();
13452
+ const { show, autoCloseTimeout, interval: { start, end } } = zoom;
13453
+ const endIndex = totalPoints - 1;
13454
+ const [hidden, setHidden] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(true);
13455
+ const autoRecoveryTimer = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
13456
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>()=>{
13457
+ if (autoRecoveryTimer.current) clearTimeout(autoRecoveryTimer.current);
13458
+ }, []);
13720
13459
  (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
13721
- if (globalID) subscriptionKeyBus(globalID, 'unit', (e)=>{
13722
- if (e?.code === 'KeyU') updateUnit();
13723
- });
13460
+ if (autoRecoveryTimer.current) clearTimeout(autoRecoveryTimer.current);
13461
+ setHidden(false);
13462
+ autoRecoveryTimer.current = setTimeout(()=>{
13463
+ handleReset();
13464
+ }, autoCloseTimeout);
13724
13465
  }, [
13725
- updateUnit,
13726
- globalID
13466
+ start,
13467
+ end,
13468
+ autoCloseTimeout
13727
13469
  ]);
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)=>{
13470
+ const handleReset = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
13471
+ const newZoom = {
13472
+ ...zoom,
13473
+ interval: {
13474
+ start: 0,
13475
+ end: endIndex
13476
+ },
13477
+ isScanSegmentsUpdateMagnify: false
13478
+ };
13739
13479
  dispatch({
13740
13480
  payload: {
13741
- frequencyAllocation: {
13742
- ...frequencyAllocation,
13743
- display: !!e
13744
- }
13481
+ zoom: newZoom
13745
13482
  }
13746
13483
  });
13484
+ setHidden(true);
13747
13485
  }, [
13748
- frequencyAllocation
13486
+ zoom,
13487
+ endIndex,
13488
+ dispatch
13489
+ ]);
13490
+ const gradientStyle = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
13491
+ background: `linear-gradient(to right,
13492
+ transparent ${(start + 1) / totalPoints * 100}%,
13493
+ var(--theme-color-base) ${(start + 1) / totalPoints * 100}%,
13494
+ var(--theme-color-base) ${(end + 1) / totalPoints * 100}%,
13495
+ transparent ${(end + 1) / totalPoints * 100}%
13496
+ )`
13497
+ }), [
13498
+ start,
13499
+ end,
13500
+ totalPoints
13501
+ ]);
13502
+ const isFullRange = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>0 === start && end === endIndex, [
13503
+ start,
13504
+ end,
13505
+ endIndex
13749
13506
  ]);
13750
13507
  if (!show) return null;
13751
13508
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13752
- onClick: ()=>{
13753
- setActive(!display);
13509
+ onClick: handleReset,
13510
+ 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",
13511
+ style: {
13512
+ cursor: hidden ? 'no-drop' : 'pointer'
13754
13513
  },
13755
- title: "\u9891\u7387\u5212\u5206",
13756
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
13514
+ children: hidden || isFullRange ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
13515
+ width: "16",
13516
+ height: "16",
13757
13517
  viewBox: "0 0 1024 1024",
13758
13518
  xmlns: "http://www.w3.org/2000/svg",
13759
13519
  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"
13520
+ 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",
13521
+ fill: "var(--theme-color-base)"
13522
+ })
13523
+ }) : /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13524
+ className: Zoom_Switch_styles_module.zoomSwitch,
13525
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
13526
+ className: Zoom_Switch_styles_module.interval,
13527
+ style: gradientStyle
13763
13528
  })
13764
13529
  })
13765
13530
  });
13766
13531
  };
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
- ]
13532
+ const Zoom_Switch = ZoomSwitch;
13533
+ const Reset_modes = Object.values(constants_ModuleType);
13534
+ const Reset_Reset = ()=>{
13535
+ const { state: { globalID, publish } } = useStore_useStore();
13536
+ const handleReset = ()=>{
13537
+ publish({
13538
+ pstype: constants_PSType.Reset
13788
13539
  });
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
- ]
13540
+ Reset_modes.forEach((mode)=>{
13541
+ tools(globalID, mode)({
13542
+ pstype: constants_PSType.Reset
13814
13543
  });
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
13544
  });
13862
- }, [
13863
- limit
13864
- ]);
13865
- if (!show && !active) return null;
13545
+ };
13866
13546
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
13867
13547
  onClick: ()=>{
13868
- setActive(!active);
13548
+ handleReset();
13869
13549
  },
13870
- title: "\u95E8\u9650",
13550
+ title: "\u91CD\u7F6E",
13871
13551
  children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
13872
13552
  viewBox: "0 0 1024 1024",
13873
13553
  xmlns: "http://www.w3.org/2000/svg",
13874
- style: {
13875
- transform: 'scaleX(-1) scale(1, 0.75)'
13876
- },
13877
13554
  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)'
13555
+ 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",
13556
+ fill: 'var(--theme-color-base)'
14079
13557
  })
14080
13558
  })
14081
13559
  });
@@ -14090,7 +13568,7 @@ Dropdown_styles_module_options.domAPI = styleDomAPI_default();
14090
13568
  Dropdown_styles_module_options.insertStyleElement = insertStyleElement_default();
14091
13569
  injectStylesIntoStyleTag_default()(Dropdown_styles_module.Z, Dropdown_styles_module_options);
14092
13570
  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" })=>{
13571
+ const Dropdown_Dropdown = ({ value, options, onChange, placeholder = "\u8BF7\u9009\u62E9" })=>{
14094
13572
  const [isOpen, setIsOpen] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
14095
13573
  const handleSelect = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((value)=>{
14096
13574
  onChange(value);
@@ -14127,7 +13605,7 @@ const Dropdown = ({ value, options, onChange, placeholder = "\u8BF7\u9009\u62E9"
14127
13605
  ]
14128
13606
  });
14129
13607
  };
14130
- const components_Dropdown = Dropdown;
13608
+ const Dropdown = Dropdown_Dropdown;
14131
13609
  function useChannel({ channel = 32, onChannelChange }) {
14132
13610
  const { state: { marker, globalID }, dispatch } = useStore_useStore();
14133
13611
  const channelList = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)([]);
@@ -14359,7 +13837,7 @@ const SegmentsDisplayControl_SegmentsDisplayControl = ()=>{
14359
13837
  label: `\u{9891}\u{6BB5} ${segment.start} - ${segment.stop}`
14360
13838
  }))
14361
13839
  ];
14362
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Dropdown, {
13840
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Dropdown, {
14363
13841
  value: selectedIndex,
14364
13842
  options: options,
14365
13843
  onChange: handleSelect
@@ -14437,7 +13915,7 @@ const SeriesControl = ()=>{
14437
13915
  publish,
14438
13916
  seriesModes
14439
13917
  ]);
14440
- const title = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>seriesModes[currentMode].label, [
13918
+ const title = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>`${seriesModes[currentMode].label}-\u{70B9}\u{51FB}\u{5207}\u{6362}`, [
14441
13919
  currentMode,
14442
13920
  seriesModes
14443
13921
  ]);
@@ -14448,46 +13926,22 @@ const SeriesControl = ()=>{
14448
13926
  viewBox: "0 0 1024 1024",
14449
13927
  xmlns: "http://www.w3.org/2000/svg",
14450
13928
  children: [
14451
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("rect", {
14452
- width: "1024",
14453
- height: "1024",
14454
- fill: "transparent"
14455
- }),
14456
13929
  'bar' === currentMode && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("g", {
14457
13930
  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",
13931
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13932
+ d: "M556.8 128l128 0 0 768-128 0 0-768Z",
14470
13933
  fill: "var(--theme-color-primary)"
14471
13934
  }),
14472
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("rect", {
14473
- x: "440",
14474
- y: "250",
14475
- width: "80",
14476
- height: "450",
13935
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13936
+ d: "M768 512l128 0 0 384-128 0 0-384Z",
14477
13937
  fill: "var(--theme-color-primary)"
14478
13938
  }),
14479
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("rect", {
14480
- x: "560",
14481
- y: "150",
14482
- width: "80",
14483
- height: "550",
13939
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13940
+ d: "M352 384l128 0 0 512-128 0 0-512Z",
14484
13941
  fill: "var(--theme-color-primary)"
14485
13942
  }),
14486
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("rect", {
14487
- x: "680",
14488
- y: "180",
14489
- width: "80",
14490
- height: "520",
13943
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13944
+ d: "M128 640l128 0 0 256-128 0 0-256Z",
14491
13945
  fill: "var(--theme-color-primary)"
14492
13946
  })
14493
13947
  ]
@@ -14495,269 +13949,616 @@ const SeriesControl = ()=>{
14495
13949
  'line' === currentMode && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("g", {
14496
13950
  children: [
14497
13951
  /*#__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",
13952
+ 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
13953
  fill: "var(--theme-color-primary)"
14540
13954
  }),
14541
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("circle", {
14542
- cx: "900",
14543
- cy: "350",
14544
- r: "8",
13955
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13956
+ 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
13957
  fill: "var(--theme-color-primary)"
14546
13958
  })
14547
13959
  ]
14548
13960
  }),
14549
- 'stepline' === currentMode && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("g", {
13961
+ 'stepline' === currentMode && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("g", {
13962
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13963
+ 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",
13964
+ fill: "var(--theme-color-primary)"
13965
+ })
13966
+ }),
13967
+ 'area' === currentMode && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("g", {
14550
13968
  children: [
14551
13969
  /*#__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",
13970
+ d: "M128 512l256-256 256 256 256-256v640H128V512z",
14563
13971
  fill: "var(--theme-color-primary)"
14564
13972
  }),
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",
13973
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
13974
+ 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
13975
  fill: "var(--theme-color-primary)"
14585
13976
  })
14586
13977
  ]
13978
+ })
13979
+ ]
13980
+ })
13981
+ });
13982
+ };
13983
+ const ToolsBar_SeriesControl = SeriesControl;
13984
+ 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");
13985
+ var SeriesDisplayControl_styles_module_options = {};
13986
+ SeriesDisplayControl_styles_module_options.styleTagTransform = styleTagTransform_default();
13987
+ SeriesDisplayControl_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
13988
+ SeriesDisplayControl_styles_module_options.insert = insertBySelector_default().bind(null, "head");
13989
+ SeriesDisplayControl_styles_module_options.domAPI = styleDomAPI_default();
13990
+ SeriesDisplayControl_styles_module_options.insertStyleElement = insertStyleElement_default();
13991
+ injectStylesIntoStyleTag_default()(SeriesDisplayControl_styles_module.Z, SeriesDisplayControl_styles_module_options);
13992
+ const ToolsBar_SeriesDisplayControl_styles_module = SeriesDisplayControl_styles_module.Z && SeriesDisplayControl_styles_module.Z.locals ? SeriesDisplayControl_styles_module.Z.locals : void 0;
13993
+ const SeriesDisplayControl = ()=>{
13994
+ const { state: { globalID, series }, dispatch } = useStore_useStore();
13995
+ const { data, legendExternal, forceDisplay } = series;
13996
+ const seriesArray = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>Array.from(data.keys()).filter((name)=>!legendExternal.includes(name)).filter((name)=>name !== constants_SeriesType.TemplateData), [
13997
+ data,
13998
+ legendExternal
13999
+ ]);
14000
+ const onClick = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((name, isDisplayTrue)=>{
14001
+ if (globalID) {
14002
+ const item = data.get(name);
14003
+ if (item) {
14004
+ const newDisplay = isDisplayTrue ? true : !item.display;
14005
+ data.set(name, {
14006
+ ...item,
14007
+ display: newDisplay
14008
+ });
14009
+ series.data = data;
14010
+ dispatch({
14011
+ payload: {
14012
+ series
14013
+ }
14014
+ });
14015
+ tools(globalID, constants_ModuleType.Spectrum)({
14016
+ pstype: constants_PSType.Series,
14017
+ name,
14018
+ display: newDisplay
14019
+ });
14020
+ }
14021
+ }
14022
+ }, [
14023
+ series,
14024
+ data,
14025
+ globalID
14026
+ ]);
14027
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
14028
+ if (forceDisplay) Object.values(SERIES).filter((s)=>!s.display).map((s)=>s.name).forEach((s)=>{
14029
+ if (!legendExternal.includes(s)) setTimeout(()=>{
14030
+ onClick(s, true);
14031
+ }, 1);
14032
+ });
14033
+ }, [
14034
+ forceDisplay,
14035
+ seriesArray
14036
+ ]);
14037
+ const [isCollapsed, setIsCollapsed] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(true);
14038
+ const toggleCollapse = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
14039
+ setIsCollapsed((prev)=>!prev);
14040
+ }, []);
14041
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
14042
+ let timeout;
14043
+ clearTimeout(timeout);
14044
+ if (!isCollapsed) timeout = setTimeout(()=>{
14045
+ setIsCollapsed(true);
14046
+ }, 10000);
14047
+ return ()=>{
14048
+ clearTimeout(timeout);
14049
+ };
14050
+ }, [
14051
+ isCollapsed
14052
+ ]);
14053
+ const CollapsedIcon = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
14054
+ onClick: toggleCollapse,
14055
+ title: `\u{56FE}\u{4F8B}\u{5DF2}${!isCollapsed ? "\u5C55\u5F00" : "\u6298\u53E0"}`,
14056
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("svg", {
14057
+ className: ToolsBar_SeriesDisplayControl_styles_module.collapseIcon,
14058
+ viewBox: "0 0 1024 1024",
14059
+ version: "1.1",
14060
+ xmlns: "http://www.w3.org/2000/svg",
14061
+ width: "16",
14062
+ height: "16",
14063
+ children: [
14064
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
14065
+ 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",
14066
+ fill: isCollapsed ? 'var(--theme-color-base)' : 'var(--theme-color-primary)'
14067
+ }),
14068
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
14069
+ 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",
14070
+ fill: isCollapsed ? 'var(--theme-color-base)' : 'var(--theme-color-primary)'
14071
+ })
14072
+ ]
14073
+ })
14074
+ }), [
14075
+ isCollapsed
14076
+ ]);
14077
+ if (!(data instanceof Map)) return null;
14078
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14079
+ className: `${ToolsBar_SeriesDisplayControl_styles_module.SeriesDisplayControl} ${!isCollapsed ? ToolsBar_SeriesDisplayControl_styles_module.collapsed : ''}`,
14080
+ children: [
14081
+ CollapsedIcon,
14082
+ !isCollapsed && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14083
+ className: ToolsBar_SeriesDisplayControl_styles_module.itemsContainer,
14084
+ children: seriesArray.map((name)=>{
14085
+ const series = data.get(name);
14086
+ const dp = series?.display;
14087
+ const label = series?.label;
14088
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Tooltip, {
14089
+ content: `${label} \u{5DF2}${dp ? "\u663E\u793A" : "\u9690\u85CF"}`,
14090
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14091
+ className: ToolsBar_SeriesDisplayControl_styles_module.item,
14092
+ onClick: ()=>{
14093
+ onClick(name);
14094
+ },
14095
+ style: {
14096
+ color: dp ? series?.color : 'var(--theme-color-base)',
14097
+ opacity: dp ? 1 : 0.5
14098
+ },
14099
+ children: label
14100
+ })
14101
+ }, name);
14102
+ })
14103
+ })
14104
+ ]
14105
+ });
14106
+ };
14107
+ const ToolsBar_SeriesDisplayControl = SeriesDisplayControl;
14108
+ const SpacerLine = ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14109
+ className: components_ToolsBar_styles_module.spacerLine
14110
+ });
14111
+ const ToolsBar_SpacerLine = SpacerLine;
14112
+ const ToolsBar = ({ type })=>{
14113
+ const { state: { toolsBar: { show } } } = useStore_useStore();
14114
+ const { width, pluginBoxWidth } = useAxisYWidth();
14115
+ const axisStyle = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
14116
+ marginLeft: width,
14117
+ width: pluginBoxWidth
14118
+ }), [
14119
+ width,
14120
+ pluginBoxWidth
14121
+ ]);
14122
+ if (type === constants_ChartType.Occupancy || !show) return null;
14123
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14124
+ className: components_ToolsBar_styles_module.ToolsBar,
14125
+ style: axisStyle,
14126
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14127
+ className: components_ToolsBar_styles_module.fun,
14128
+ children: [
14129
+ type !== constants_ChartType.Heatmap && type !== constants_ChartType.ScanDF360 && type !== constants_ChartType.LevelStream && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Autoranging, {}),
14130
+ type !== constants_ChartType.ScanDF360 && type !== constants_ChartType.LevelStream && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Unit, {}),
14131
+ type === constants_ChartType.Heatmap && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_GradientRibbon, {}),
14132
+ type !== constants_ChartType.ScanDF360 && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_SpacerLine, {}),
14133
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Reset, {}),
14134
+ (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, {
14135
+ children: [
14136
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_SeriesControl, {}),
14137
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyAllocation_Switch, {}),
14138
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Zoom_Switch, {}),
14139
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Limit_Switch, {}),
14140
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Markers_Switch, {})
14141
+ ]
14142
+ }),
14143
+ type === constants_ChartType.Scan && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
14144
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(SegmentsDisplayControl, {})
14145
+ }),
14146
+ type === constants_ChartType.Heatmap && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
14147
+ children: [
14148
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(HeatmapCapture_Switch, {}),
14149
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(TimeRange_Switch, {})
14150
+ ]
14151
+ }),
14152
+ (type === constants_ChartType.SingleFrequency || type === constants_ChartType.Scan || type === constants_ChartType.MScan) && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_SeriesDisplayControl, {})
14153
+ ]
14154
+ })
14155
+ });
14156
+ };
14157
+ const components_ToolsBar = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(ToolsBar);
14158
+ const LevelStream_Chart_Chart = (props)=>{
14159
+ const { publish } = props;
14160
+ const { analyzer } = uselevelStreamAnalyzer();
14161
+ hooks_usePublish({
14162
+ publish,
14163
+ subscribe: (e)=>{
14164
+ const { pstype } = e;
14165
+ if (pstype === constants_PSType.Reset) analyzer?.reset();
14166
+ if (pstype === constants_PSType.LevelStream) analyzer?.process(e.data);
14167
+ }
14168
+ });
14169
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(components_Container, {
14170
+ children: [
14171
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_ToolsBar, {
14172
+ type: constants_ChartType.LevelStream
14173
+ }),
14174
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_FlexBox, {
14175
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(modules_Spectrum, {
14176
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(PluginBox, {
14177
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Level, {
14178
+ opacity: 0.5
14179
+ })
14180
+ })
14181
+ })
14182
+ })
14183
+ ]
14184
+ });
14185
+ };
14186
+ const LevelStream_Chart = LevelStream_Chart_Chart;
14187
+ const LevelStreamChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
14188
+ ...props,
14189
+ cursor: {
14190
+ show: false
14191
+ },
14192
+ zoom: {
14193
+ show: false
14194
+ },
14195
+ signal: {
14196
+ show: false
14197
+ },
14198
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(LevelStream_Chart, {
14199
+ ...props
14200
+ })
14201
+ });
14202
+ const LevelStream_LevelStream = withChartPublisher(LevelStreamChart, 'LevelStream');
14203
+ const LevelStream = LevelStream_LevelStream;
14204
+ 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");
14205
+ var occupancy_components_Ticks_styles_module_options = {};
14206
+ occupancy_components_Ticks_styles_module_options.styleTagTransform = styleTagTransform_default();
14207
+ occupancy_components_Ticks_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
14208
+ occupancy_components_Ticks_styles_module_options.insert = insertBySelector_default().bind(null, "head");
14209
+ occupancy_components_Ticks_styles_module_options.domAPI = styleDomAPI_default();
14210
+ occupancy_components_Ticks_styles_module_options.insertStyleElement = insertStyleElement_default();
14211
+ injectStylesIntoStyleTag_default()(occupancy_components_Ticks_styles_module.Z, occupancy_components_Ticks_styles_module_options);
14212
+ 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;
14213
+ const Ticks_ticks = [
14214
+ '100%',
14215
+ '75%',
14216
+ '50%',
14217
+ '25%',
14218
+ '0%'
14219
+ ];
14220
+ const occupancy_components_Ticks_Ticks = (props)=>{
14221
+ const { inside = false } = props;
14222
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14223
+ className: AxisY_occupancy_components_Ticks_styles_module.ticks,
14224
+ style: {
14225
+ alignItems: inside ? 'flex-start' : 'flex-end'
14226
+ },
14227
+ children: Ticks_ticks.map((i)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14228
+ children: i
14229
+ }, i))
14230
+ });
14231
+ };
14232
+ const occupancy_components_Ticks = occupancy_components_Ticks_Ticks;
14233
+ 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");
14234
+ var type_Default_styles_module_options = {};
14235
+ type_Default_styles_module_options.styleTagTransform = styleTagTransform_default();
14236
+ type_Default_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
14237
+ type_Default_styles_module_options.insert = insertBySelector_default().bind(null, "head");
14238
+ type_Default_styles_module_options.domAPI = styleDomAPI_default();
14239
+ type_Default_styles_module_options.insertStyleElement = insertStyleElement_default();
14240
+ injectStylesIntoStyleTag_default()(occupancy_type_Default_styles_module.Z, type_Default_styles_module_options);
14241
+ 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;
14242
+ const Default_Default = ()=>{
14243
+ const { axisYWidth, marginLeft } = useAxisYWidth();
14244
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14245
+ className: AxisY_occupancy_type_Default_styles_module.axisyoccupancydefault,
14246
+ style: {
14247
+ width: axisYWidth,
14248
+ marginLeft
14249
+ },
14250
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(occupancy_components_Ticks, {})
14251
+ });
14252
+ };
14253
+ const occupancy_type_Default = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Default_Default);
14254
+ const AxisYOccupancy = (props)=>{
14255
+ const { disabled } = props;
14256
+ const { state: { axisY } } = useStore_useStore();
14257
+ const { show } = axisY;
14258
+ if (false === show || disabled) return null;
14259
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(occupancy_type_Default, {});
14260
+ };
14261
+ const AxisY_occupancy = AxisYOccupancy;
14262
+ 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");
14263
+ var Occdahsed_styles_module_options = {};
14264
+ Occdahsed_styles_module_options.styleTagTransform = styleTagTransform_default();
14265
+ Occdahsed_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
14266
+ Occdahsed_styles_module_options.insert = insertBySelector_default().bind(null, "head");
14267
+ Occdahsed_styles_module_options.domAPI = styleDomAPI_default();
14268
+ Occdahsed_styles_module_options.insertStyleElement = insertStyleElement_default();
14269
+ injectStylesIntoStyleTag_default()(Occdahsed_styles_module.Z, Occdahsed_styles_module_options);
14270
+ const GridLines_Occdahsed_styles_module = Occdahsed_styles_module.Z && Occdahsed_styles_module.Z.locals ? Occdahsed_styles_module.Z.locals : void 0;
14271
+ const Occdahsed_Dashed = ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14272
+ className: GridLines_Occdahsed_styles_module.item
14273
+ });
14274
+ const Occdahsed_Occdahsed = ()=>{
14275
+ const { state: { gridLines } } = useStore_useStore();
14276
+ return gridLines && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14277
+ className: GridLines_Occdahsed_styles_module.Occdahsed,
14278
+ children: [
14279
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occdahsed_Dashed, {}),
14280
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occdahsed_Dashed, {}),
14281
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occdahsed_Dashed, {}),
14282
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occdahsed_Dashed, {})
14283
+ ]
14284
+ });
14285
+ };
14286
+ const Occdahsed = Occdahsed_Occdahsed;
14287
+ 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");
14288
+ var TotalLine_styles_module_options = {};
14289
+ TotalLine_styles_module_options.styleTagTransform = styleTagTransform_default();
14290
+ TotalLine_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
14291
+ TotalLine_styles_module_options.insert = insertBySelector_default().bind(null, "head");
14292
+ TotalLine_styles_module_options.domAPI = styleDomAPI_default();
14293
+ TotalLine_styles_module_options.insertStyleElement = insertStyleElement_default();
14294
+ injectStylesIntoStyleTag_default()(TotalLine_styles_module.Z, TotalLine_styles_module_options);
14295
+ const Occupancy_TotalLine_styles_module = TotalLine_styles_module.Z && TotalLine_styles_module.Z.locals ? TotalLine_styles_module.Z.locals : void 0;
14296
+ const TotalLine_TotalLine = (props)=>{
14297
+ const { value } = props;
14298
+ const style = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
14299
+ bottom: `${value || -200}%`
14300
+ }), [
14301
+ value
14302
+ ]);
14303
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14304
+ className: Occupancy_TotalLine_styles_module.TotalLine,
14305
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14306
+ className: Occupancy_TotalLine_styles_module.item,
14307
+ style: style,
14308
+ children: [
14309
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14310
+ className: Occupancy_TotalLine_styles_module.line
14587
14311
  }),
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
- ]
14312
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14313
+ className: Occupancy_TotalLine_styles_module.value,
14314
+ children: value
14624
14315
  })
14625
14316
  ]
14626
14317
  })
14627
14318
  });
14628
14319
  };
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
14320
+ const TotalLine = TotalLine_TotalLine;
14321
+ const Occupancy_Occupancy = (props)=>{
14322
+ const { occupancyAxisYDisabled } = props;
14323
+ const { state: { globalID } } = useStore_useStore();
14324
+ const { id, chart, Chart } = useChart({
14325
+ Render: Occupancy
14326
+ });
14327
+ const [value, setValue] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(0);
14328
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
14329
+ if (chart && globalID) tools(globalID, constants_ModuleType.Occupancy, (d)=>{
14330
+ const { pstype } = d;
14331
+ switch(pstype){
14332
+ case constants_PSType.Render:
14333
+ {
14334
+ const { data, totalOccupancy } = d;
14335
+ if (data) chart.updateSeries(data);
14336
+ if (void 0 !== totalOccupancy) setValue(totalOccupancy);
14659
14337
  }
14660
- });
14661
- tools(globalID, constants_ModuleType.Spectrum)({
14662
- pstype: constants_PSType.Series,
14663
- name,
14664
- display: newDisplay
14665
- });
14338
+ break;
14339
+ case constants_PSType.Reset:
14340
+ chart.reset();
14341
+ setValue(0);
14342
+ break;
14343
+ default:
14666
14344
  }
14667
- }
14345
+ });
14668
14346
  }, [
14669
- series,
14670
- data,
14347
+ chart,
14671
14348
  globalID
14672
14349
  ]);
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
- });
14350
+ useZoomEvent(id, constants_ModuleType.Occupancy);
14351
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(components_FlexBox, {
14352
+ children: [
14353
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(AxisY_occupancy, {
14354
+ disabled: occupancyAxisYDisabled
14355
+ }),
14356
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(PluginBox, {
14357
+ children: [
14358
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occdahsed, {}),
14359
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Chart, {}),
14360
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(EventBus, {
14361
+ id: id
14362
+ }),
14363
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(TotalLine, {
14364
+ value: value
14365
+ }),
14366
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Cursor, {
14367
+ id: id,
14368
+ type: constants_ModuleType.Occupancy
14369
+ })
14370
+ ]
14371
+ })
14372
+ ]
14373
+ });
14374
+ };
14375
+ const modules_Occupancy = Occupancy_Occupancy;
14376
+ const Occupancy_Chart_Chart = (props)=>{
14377
+ const { publish } = props;
14378
+ const { state: { globalID } } = useStore_useStore();
14379
+ hooks_usePublish({
14380
+ publish,
14381
+ subscribe: (e)=>{
14382
+ if (e.pstype === constants_PSType.Occupancy) tools(globalID, constants_ModuleType.Occupancy)({
14383
+ ...e,
14384
+ pstype: constants_PSType.Render
14385
+ });
14386
+ }
14387
+ });
14388
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Container, {
14389
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_FlexBox, {
14390
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(modules_Occupancy, {})
14391
+ })
14392
+ });
14393
+ };
14394
+ const Occupancy_Chart = Occupancy_Chart_Chart;
14395
+ const OccupancyChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
14396
+ ...props,
14397
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occupancy_Chart, {
14398
+ ...props
14399
+ })
14400
+ });
14401
+ const lib_Occupancy_Occupancy = withChartPublisher(OccupancyChart, 'Occupancy');
14402
+ const lib_Occupancy = lib_Occupancy_Occupancy;
14403
+ 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");
14404
+ var AxisX_styles_module_options = {};
14405
+ AxisX_styles_module_options.styleTagTransform = styleTagTransform_default();
14406
+ AxisX_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
14407
+ AxisX_styles_module_options.insert = insertBySelector_default().bind(null, "head");
14408
+ AxisX_styles_module_options.domAPI = styleDomAPI_default();
14409
+ AxisX_styles_module_options.insertStyleElement = insertStyleElement_default();
14410
+ injectStylesIntoStyleTag_default()(AxisX_styles_module.Z, AxisX_styles_module_options);
14411
+ const components_AxisX_styles_module = AxisX_styles_module.Z && AxisX_styles_module.Z.locals ? AxisX_styles_module.Z.locals : void 0;
14412
+ const ThreeFixedTicks = ()=>{
14413
+ const { state: { zoom: { interval: { start: intervalStart, end: intervalEnd } }, axisX: { unit, unitKHz }, segments } } = useStore_useStore();
14414
+ const { totalPoints } = segments;
14415
+ const endIndex = totalPoints - 1;
14416
+ const { start, bandwidth = 0 } = segments[0] ?? {};
14417
+ const center = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
14418
+ if (!endIndex || !bandwidth || void 0 === start) return 0;
14419
+ const midIndex = (0, utils.wF)(intervalStart, intervalEnd);
14420
+ const safeIndex = Math.max(0, Math.min(midIndex, endIndex));
14421
+ return (0, utils.lj)(start + safeIndex * bandwidth / (1000 * endIndex));
14679
14422
  }, [
14680
- forceDisplay,
14681
- seriesArray
14423
+ intervalStart,
14424
+ intervalEnd,
14425
+ start,
14426
+ endIndex,
14427
+ bandwidth
14428
+ ]);
14429
+ const bandwidthDiff = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
14430
+ if (!totalPoints || !bandwidth) return 0;
14431
+ const intervalWidth = intervalEnd - intervalStart + 1;
14432
+ return (0, utils.lj)(intervalWidth * bandwidth / (2 * totalPoints));
14433
+ }, [
14434
+ intervalStart,
14435
+ intervalEnd,
14436
+ totalPoints,
14437
+ bandwidth
14438
+ ]);
14439
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14440
+ className: components_AxisX_styles_module.con,
14441
+ children: [
14442
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyLabel, {
14443
+ value: bandwidthDiff,
14444
+ unit: unitKHz,
14445
+ prefix: "-"
14446
+ }),
14447
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyLabel, {
14448
+ value: center,
14449
+ unit: unit
14450
+ }),
14451
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyLabel, {
14452
+ value: bandwidthDiff,
14453
+ unit: unitKHz,
14454
+ prefix: "+"
14455
+ }),
14456
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_RulerTicks, {
14457
+ length: 10,
14458
+ split: 5
14459
+ })
14460
+ ]
14461
+ });
14462
+ };
14463
+ const FrequencyLabel = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(({ value, unit, prefix = '' })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14464
+ style: {
14465
+ paddingLeft: '5px'
14466
+ },
14467
+ children: [
14468
+ prefix,
14469
+ value,
14470
+ unit
14471
+ ]
14472
+ }));
14473
+ const FrequencyTick = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(({ value, index, total })=>{
14474
+ const leftPercentage = index / total * 100;
14475
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14476
+ className: `${components_AxisX_styles_module.frequencyTick} ${0 === index ? components_AxisX_styles_module.first : index === total ? components_AxisX_styles_module.last : ''}`,
14477
+ style: {
14478
+ left: `${leftPercentage}%`
14479
+ },
14480
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
14481
+ children: value
14482
+ })
14483
+ });
14484
+ });
14485
+ const TICK_COUNT = 5;
14486
+ const DataNFixedTicks = ()=>{
14487
+ const { state: { segments: { totalPoints }, zoom: { interval: { start: intervalStart, end: intervalEnd } }, axisX: { frequencyFormat } } } = useStore_useStore();
14488
+ const getFrequencyByIndex = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((index)=>{
14489
+ if (!totalPoints) return 0;
14490
+ const percentage = Math.min(100 * index / totalPoints, 100);
14491
+ return frequencyFormat(percentage);
14492
+ }, [
14493
+ totalPoints,
14494
+ frequencyFormat
14682
14495
  ]);
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
- };
14496
+ const ticks = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
14497
+ const step = (intervalEnd - intervalStart + 1) / TICK_COUNT;
14498
+ return Array.from({
14499
+ length: TICK_COUNT + 1
14500
+ }, (_, i)=>getFrequencyByIndex(intervalStart + step * i));
14696
14501
  }, [
14697
- isCollapsed
14502
+ intervalStart,
14503
+ intervalEnd,
14504
+ getFrequencyByIndex
14698
14505
  ]);
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
- ]
14506
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14507
+ className: components_AxisX_styles_module.con,
14508
+ children: [
14509
+ ticks.map((tick, index)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(FrequencyTick, {
14510
+ value: tick,
14511
+ index: index,
14512
+ total: ticks.length - 1
14513
+ }, `tick-${index}`)),
14514
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_RulerTicks, {
14515
+ length: 10,
14516
+ split: 2
14719
14517
  })
14720
- }), [
14721
- isCollapsed
14518
+ ]
14519
+ });
14520
+ };
14521
+ const MScanTicks = ()=>{
14522
+ const { state: { segments } } = useStore_useStore();
14523
+ const style = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
14524
+ display: 'flex',
14525
+ flex: 1,
14526
+ justifyContent: 'center',
14527
+ alignItems: 'center'
14528
+ }), []);
14529
+ const t = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>segments.map((item)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14530
+ style: style,
14531
+ children: item.label
14532
+ }, item.index)), [
14533
+ segments
14722
14534
  ]);
14723
- if (!(data instanceof Map)) return null;
14724
14535
  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 : ''}`,
14536
+ className: components_AxisX_styles_module.con,
14726
14537
  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
- })
14538
+ t,
14539
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_RulerTicks, {
14540
+ length: 2 * segments.length,
14541
+ split: 2
14749
14542
  })
14750
14543
  ]
14751
14544
  });
14752
14545
  };
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
14546
+ const AxisXTicks = ({ type })=>{
14547
+ const { state: { axisX: { show } } } = useStore_useStore();
14548
+ if (!show) return null;
14549
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14550
+ className: components_AxisX_styles_module.AxisXTicks,
14551
+ 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, {
14552
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(MScanTicks, {})
14553
+ }) : /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ThreeFixedTicks, {})
14756
14554
  });
14757
- const ToolsBar_SpacerLine = SpacerLine;
14758
- const ToolsBar = ({ type })=>{
14759
- const { state: { toolsBar: { show } } } = useStore_useStore();
14555
+ };
14556
+ const AxisX_Ticks = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(AxisXTicks);
14557
+ const AxisX_AxisX = ({ type })=>{
14558
+ const { state: { axisX } } = useStore_useStore();
14559
+ const { children, unit, ticks } = axisX;
14760
14560
  const { width, pluginBoxWidth } = useAxisYWidth();
14561
+ const ref = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
14761
14562
  const axisStyle = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
14762
14563
  marginLeft: width,
14763
14564
  width: pluginBoxWidth
@@ -14765,42 +14566,125 @@ const ToolsBar = ({ type })=>{
14765
14566
  width,
14766
14567
  pluginBoxWidth
14767
14568
  ]);
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,
14569
+ if (!axisX) return null;
14570
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Tooltip, {
14571
+ content: `\u{5355}\u{4F4D}${unit}`,
14772
14572
  children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14773
- className: components_ToolsBar_styles_module.fun,
14573
+ ref: ref,
14574
+ className: components_AxisX_styles_module.axisx,
14575
+ style: axisStyle,
14774
14576
  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, {
14577
+ ticks && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
14781
14578
  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, {})
14579
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14580
+ className: components_AxisX_styles_module.unit,
14581
+ children: unit
14582
+ }),
14583
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(AxisX_Ticks, {
14584
+ type: type
14585
+ })
14787
14586
  ]
14788
14587
  }),
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
- ]
14588
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14589
+ children: children
14590
+ })
14591
+ ]
14592
+ })
14593
+ });
14594
+ };
14595
+ const AxisX = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(AxisX_AxisX);
14596
+ 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");
14597
+ var Blaze_styles_module_options = {};
14598
+ Blaze_styles_module_options.styleTagTransform = styleTagTransform_default();
14599
+ Blaze_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
14600
+ Blaze_styles_module_options.insert = insertBySelector_default().bind(null, "head");
14601
+ Blaze_styles_module_options.domAPI = styleDomAPI_default();
14602
+ Blaze_styles_module_options.insertStyleElement = insertStyleElement_default();
14603
+ injectStylesIntoStyleTag_default()(Blaze_styles_module.Z, Blaze_styles_module_options);
14604
+ const components_Blaze_styles_module = Blaze_styles_module.Z && Blaze_styles_module.Z.locals ? Blaze_styles_module.Z.locals : void 0;
14605
+ const BLAZE_PROGRESS = (globalID, func)=>subscription_createSubscriptionManager(`BLAZE_PROGRESS-${globalID}`, '0', func);
14606
+ const Blaze = ()=>{
14607
+ const { state: { blaze: { show }, segments, globalID } } = useStore_useStore();
14608
+ const [left, setLeft] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)('');
14609
+ const excludePercent = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
14610
+ const exclude = [];
14611
+ for(let i = 0; i < segments.length; i++){
14612
+ const segment = segments[i];
14613
+ if (segment.progress) exclude.push(...segment.progress);
14614
+ }
14615
+ return exclude;
14616
+ }, [
14617
+ segments
14618
+ ]);
14619
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
14620
+ if (show && globalID) BLAZE_PROGRESS(globalID, (progress)=>{
14621
+ setLeft(excludePercent.includes(progress) ? void 0 : `${100 * progress}%`);
14622
+ });
14623
+ }, [
14624
+ show,
14625
+ globalID
14626
+ ]);
14627
+ if (!show) return null;
14628
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Zoom_ZoomOffsetContainer, {
14629
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
14630
+ className: components_Blaze_styles_module.blaze,
14631
+ style: {
14632
+ left
14633
+ },
14634
+ children: [
14635
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14636
+ className: components_Blaze_styles_module.line
14797
14637
  }),
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, {})
14638
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14639
+ className: components_Blaze_styles_module.shadow
14640
+ })
14799
14641
  ]
14800
14642
  })
14801
14643
  });
14802
14644
  };
14803
- const components_ToolsBar = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)(ToolsBar);
14645
+ const components_Blaze = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Blaze);
14646
+ 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");
14647
+ var Legend_styles_module_options = {};
14648
+ Legend_styles_module_options.styleTagTransform = styleTagTransform_default();
14649
+ Legend_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
14650
+ Legend_styles_module_options.insert = insertBySelector_default().bind(null, "head");
14651
+ Legend_styles_module_options.domAPI = styleDomAPI_default();
14652
+ Legend_styles_module_options.insertStyleElement = insertStyleElement_default();
14653
+ injectStylesIntoStyleTag_default()(Legend_styles_module.Z, Legend_styles_module_options);
14654
+ const components_Legend_styles_module = Legend_styles_module.Z && Legend_styles_module.Z.locals ? Legend_styles_module.Z.locals : void 0;
14655
+ const Legend = ()=>{
14656
+ const { state: { legend: { children } } } = useStore_useStore();
14657
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14658
+ className: components_Legend_styles_module.legend,
14659
+ children: children
14660
+ });
14661
+ };
14662
+ const components_Legend = Legend;
14663
+ 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");
14664
+ var SegmentsZebra_styles_module_options = {};
14665
+ SegmentsZebra_styles_module_options.styleTagTransform = styleTagTransform_default();
14666
+ SegmentsZebra_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
14667
+ SegmentsZebra_styles_module_options.insert = insertBySelector_default().bind(null, "head");
14668
+ SegmentsZebra_styles_module_options.domAPI = styleDomAPI_default();
14669
+ SegmentsZebra_styles_module_options.insertStyleElement = insertStyleElement_default();
14670
+ injectStylesIntoStyleTag_default()(SegmentsZebra_styles_module.Z, SegmentsZebra_styles_module_options);
14671
+ const components_SegmentsZebra_styles_module = SegmentsZebra_styles_module.Z && SegmentsZebra_styles_module.Z.locals ? SegmentsZebra_styles_module.Z.locals : void 0;
14672
+ const SegmentsZebra = ()=>{
14673
+ const { state: { segments } } = useStore_useStore();
14674
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Zoom_ZoomOffsetContainer, {
14675
+ className: components_SegmentsZebra_styles_module.SegmentsZebra,
14676
+ children: segments.map((i, key)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
14677
+ className: components_SegmentsZebra_styles_module.item,
14678
+ style: {
14679
+ width: `${100 * i.point / segments.totalPoints}%`,
14680
+ borderColor: key % 2 === 1 ? 'var(--theme-border-base)' : 'transparent',
14681
+ background: key % 2 === 1 ? 'var(--theme-bg-second)' : 'transparent',
14682
+ opacity: key % 2 === 1 ? 0.4 : 1
14683
+ }
14684
+ }, `${i.start}_${key}`))
14685
+ });
14686
+ };
14687
+ const components_SegmentsZebra = SegmentsZebra;
14804
14688
  const Zoom_Zoom = ()=>{
14805
14689
  const { state: { zoom, segments: { totalPoints }, axisX: { frequencyFormat } }, dispatch } = useStore_useStore();
14806
14690
  const { interval: { start, end }, onChange } = zoom;