@rfkit/charts 1.2.12 → 1.2.13

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.
@@ -1,8 +1,6 @@
1
1
  import type { StationInfoType } from '../../types';
2
2
  /**
3
3
  * 全局台站信号数据存储
4
- * 支持会话级缓存(按 globalID 隔离):
5
- * - 写入时:同时存到 openData(按 globalID)和 sessionStorage(按 globalID)
6
- * - 读取时:优先从 openData 读取,如果为空则从 sessionStorage 恢复
4
+ * 用于在全局 openData 中存储和读取台站信号信息
7
5
  */
8
6
  export declare const STATION_DATA: (globalID: string, data?: StationInfoType[]) => StationInfoType[];
package/index.js CHANGED
@@ -2833,7 +2833,7 @@ var __webpack_modules__ = {
2833
2833
 
2834
2834
  .segmentContainer-P_hPRM .item-MCHNyr:after {
2835
2835
  content: "";
2836
- opacity: .68;
2836
+ opacity: 1;
2837
2837
  background: var(--station-bg-color, var(--theme-color-base));
2838
2838
  pointer-events: none;
2839
2839
  width: 100%;
@@ -2850,7 +2850,7 @@ var __webpack_modules__ = {
2850
2850
  }
2851
2851
 
2852
2852
  .segmentContainer-P_hPRM .item-MCHNyr.active-zf78pN:after {
2853
- opacity: 1;
2853
+ opacity: .5;
2854
2854
  background: var(--station-bg-color, var(--theme-color-primary));
2855
2855
  }
2856
2856
  `,
@@ -7559,38 +7559,7 @@ const ZoomOffsetContainer = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.
7559
7559
  });
7560
7560
  });
7561
7561
  const Zoom_ZoomOffsetContainer = ZoomOffsetContainer;
7562
- const STORAGE_KEY_PREFIX = 'rfkit-charts-stationData';
7563
- function getStationDataFromStorage(globalID) {
7564
- try {
7565
- const stored = sessionStorage.getItem(`${STORAGE_KEY_PREFIX}-${globalID}`);
7566
- if (stored) return JSON.parse(stored);
7567
- } catch (error) {
7568
- console.error("\u8BFB\u53D6\u53F0\u7AD9\u6570\u636E\u5931\u8D25:", error);
7569
- }
7570
- return [];
7571
- }
7572
- function saveStationDataToStorage(globalID, data) {
7573
- try {
7574
- sessionStorage.setItem(`${STORAGE_KEY_PREFIX}-${globalID}`, JSON.stringify(data));
7575
- } catch (error) {
7576
- console.error("\u4FDD\u5B58\u53F0\u7AD9\u6570\u636E\u5931\u8D25:", error);
7577
- }
7578
- }
7579
- const STATION_DATA = (globalID, data)=>{
7580
- if (void 0 !== data) {
7581
- subscription_openData(`stationData-${globalID}`, data, []);
7582
- saveStationDataToStorage(globalID, data);
7583
- return data;
7584
- }
7585
- const openDataResult = subscription_openData(`stationData-${globalID}`, void 0, null);
7586
- if (openDataResult && openDataResult.length > 0) return openDataResult;
7587
- const storedData = getStationDataFromStorage(globalID);
7588
- if (storedData.length > 0) {
7589
- subscription_openData(`stationData-${globalID}`, storedData, []);
7590
- return storedData;
7591
- }
7592
- return [];
7593
- };
7562
+ const STATION_DATA = (globalID, data)=>subscription_openData(`stationData-${globalID}`, data, []);
7594
7563
  function isStationInfo(item) {
7595
7564
  return 'signalName' in item && 'orgName' in item;
7596
7565
  }
package/package.json CHANGED
@@ -5,6 +5,6 @@
5
5
  "types": "index.d.ts",
6
6
  "author": "Hxgh",
7
7
  "license": "MIT",
8
- "version": "1.2.12",
8
+ "version": "1.2.13",
9
9
  "private": false
10
10
  }