@rfkit/charts 1.2.22 → 1.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/components/AxisY/heatmap/components/Ticks/index.d.ts +3 -3
- package/components/HeatmapCapture/tools.d.ts +2 -6
- package/index.js +108 -182
- package/package.json +1 -1
- package/types/publish.d.ts +3 -3
- package/types/store.d.ts +4 -9
- package/utils/index.d.ts +9 -2
- package/components/AxisY/heatmap/components/FullTicks/index.d.ts +0 -7
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface Props {
|
|
3
3
|
id: string;
|
|
4
4
|
inside?: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
7
|
-
export default
|
|
6
|
+
declare const _default: React.NamedExoticComponent<Props>;
|
|
7
|
+
export default _default;
|
|
@@ -14,12 +14,8 @@ export declare const defaultAreaInfoResult: {
|
|
|
14
14
|
endIndex: number;
|
|
15
15
|
startCol: number;
|
|
16
16
|
endCol: number;
|
|
17
|
-
startTimestamp:
|
|
18
|
-
|
|
19
|
-
endTimestamp: number;
|
|
20
|
-
endTimestampFormat: string;
|
|
21
|
-
duration: number;
|
|
22
|
-
durationFormat: string;
|
|
17
|
+
startTimestamp: string;
|
|
18
|
+
endTimestamp: string;
|
|
23
19
|
startFrequency: number;
|
|
24
20
|
startFrequencyFormat: string;
|
|
25
21
|
endFrequency: number;
|
package/index.js
CHANGED
|
@@ -125,8 +125,8 @@ var __webpack_modules__ = {
|
|
|
125
125
|
Ax: ()=>leftSegments2frequency,
|
|
126
126
|
Bp: ()=>isdBm,
|
|
127
127
|
Ce: ()=>_frequencyCalculation__WEBPACK_IMPORTED_MODULE_0__.Ce,
|
|
128
|
-
Fc: ()=>getDateTime,
|
|
129
128
|
IS: ()=>generateFrequencySegments,
|
|
129
|
+
JP: ()=>dateTimeToTimestamp,
|
|
130
130
|
LB: ()=>_frequencyCalculation__WEBPACK_IMPORTED_MODULE_0__.LB,
|
|
131
131
|
P2: ()=>throttle1,
|
|
132
132
|
P9: ()=>convertToTimestampedArrays,
|
|
@@ -136,6 +136,7 @@ var __webpack_modules__ = {
|
|
|
136
136
|
SF: ()=>createGUID,
|
|
137
137
|
cE: ()=>_frequencyCalculation__WEBPACK_IMPORTED_MODULE_0__.cE,
|
|
138
138
|
hK: ()=>_frequencyCalculation__WEBPACK_IMPORTED_MODULE_0__.hK,
|
|
139
|
+
i$: ()=>formatTimestamp,
|
|
139
140
|
ih: ()=>_frequencyCalculation__WEBPACK_IMPORTED_MODULE_0__.ih,
|
|
140
141
|
kL: ()=>getDimInfo,
|
|
141
142
|
lj: ()=>getFrequencyToFixed,
|
|
@@ -152,27 +153,58 @@ var __webpack_modules__ = {
|
|
|
152
153
|
});
|
|
153
154
|
var _frequencyCalculation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./src/utils/frequencyCalculation.ts");
|
|
154
155
|
const createGUID = ()=>((1 + Math.random()) * 0x10000 | 0).toString(16).substring(1);
|
|
155
|
-
const
|
|
156
|
-
if (
|
|
157
|
-
let
|
|
158
|
-
if (
|
|
159
|
-
|
|
160
|
-
if (
|
|
161
|
-
|
|
162
|
-
|
|
156
|
+
const formatTimestamp = (input = Date.now(), options)=>{
|
|
157
|
+
if (null == input) return '';
|
|
158
|
+
let ts = 0;
|
|
159
|
+
if ('number' == typeof input) {
|
|
160
|
+
ts = input;
|
|
161
|
+
if (ts > 0 && ts < 10000000000) ts *= 1000;
|
|
162
|
+
} else ts = input.getTime();
|
|
163
|
+
const d = new Date(ts);
|
|
164
|
+
const time = d.getTime();
|
|
165
|
+
if (!Number.isFinite(time)) return '';
|
|
166
|
+
const { dateSeparator = '-', timeSeparator = ':', timeOnly = false } = options ?? {};
|
|
167
|
+
const y = d.getFullYear();
|
|
168
|
+
const m = `${d.getMonth() + 1}`.padStart(2, '0');
|
|
169
|
+
const dd = `${d.getDate()}`.padStart(2, '0');
|
|
170
|
+
const hh = `${d.getHours()}`.padStart(2, '0');
|
|
171
|
+
const mm = `${d.getMinutes()}`.padStart(2, '0');
|
|
172
|
+
const ss = `${d.getSeconds()}`.padStart(2, '0');
|
|
173
|
+
const tStr = `${hh}${timeSeparator}${mm}${timeSeparator}${ss}`;
|
|
174
|
+
if (timeOnly) return tStr;
|
|
175
|
+
const dStr = `${y}${dateSeparator}${m}${dateSeparator}${dd}`;
|
|
176
|
+
return `${dStr} ${tStr}`;
|
|
177
|
+
};
|
|
178
|
+
const dateTimeToTimestamp = (dateTimeStr, sep1 = '-', sep2 = ':', isTimeOnly = false)=>{
|
|
179
|
+
if ('string' != typeof dateTimeStr) {
|
|
180
|
+
console.error("dateTimeToTimestamp: \u8F93\u5165\u5FC5\u987B\u662F\u5B57\u7B26\u4E32");
|
|
181
|
+
return -1;
|
|
182
|
+
}
|
|
183
|
+
let year = 0, month = 0, day = 0, hours = 0, minutes = 0, seconds = 0;
|
|
184
|
+
if (isTimeOnly) {
|
|
185
|
+
const timeParts = dateTimeStr.split(sep2);
|
|
186
|
+
if (3 !== timeParts.length) return -1;
|
|
187
|
+
hours = parseInt(timeParts[0], 10) || 0;
|
|
188
|
+
minutes = parseInt(timeParts[1], 10) || 0;
|
|
189
|
+
seconds = parseInt(timeParts[2], 10) || 0;
|
|
190
|
+
const now = new Date();
|
|
191
|
+
return new Date(now.getFullYear(), now.getMonth(), now.getDate(), hours, minutes, seconds).getTime();
|
|
163
192
|
}
|
|
164
|
-
const
|
|
165
|
-
if (
|
|
166
|
-
const
|
|
167
|
-
const
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
const
|
|
173
|
-
if (
|
|
174
|
-
|
|
175
|
-
|
|
193
|
+
const partsBySpace = dateTimeStr.split(' ');
|
|
194
|
+
if (2 !== partsBySpace.length) return -1;
|
|
195
|
+
const [datePart, timePart] = partsBySpace;
|
|
196
|
+
const dateParts = datePart.split(sep1);
|
|
197
|
+
if (3 !== dateParts.length) return -1;
|
|
198
|
+
year = parseInt(dateParts[0], 10) || 0;
|
|
199
|
+
month = parseInt(dateParts[1], 10) || 0;
|
|
200
|
+
day = parseInt(dateParts[2], 10) || 0;
|
|
201
|
+
const timeParts = timePart.split(sep2);
|
|
202
|
+
if (3 !== timeParts.length) return -1;
|
|
203
|
+
hours = parseInt(timeParts[0], 10) || 0;
|
|
204
|
+
minutes = parseInt(timeParts[1], 10) || 0;
|
|
205
|
+
seconds = parseInt(timeParts[2], 10) || 0;
|
|
206
|
+
const date = new Date(year, month - 1, day, hours, minutes, seconds);
|
|
207
|
+
return date.getTime();
|
|
176
208
|
};
|
|
177
209
|
function throttle1(func = ()=>{}, wait = 1000 / 30) {
|
|
178
210
|
let prev = 0;
|
|
@@ -705,7 +737,7 @@ var __webpack_modules__ = {
|
|
|
705
737
|
};
|
|
706
738
|
const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
|
|
707
739
|
},
|
|
708
|
-
"../../../../../../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.5.0_@rsbuild+core@1.6.9/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/AxisY/heatmap/components/
|
|
740
|
+
"../../../../../../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.5.0_@rsbuild+core@1.6.9/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/AxisY/heatmap/components/Ticks/styles.module.less": function(module, __webpack_exports__, __webpack_require__) {
|
|
709
741
|
__webpack_require__.d(__webpack_exports__, {
|
|
710
742
|
Z: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
711
743
|
});
|
|
@@ -716,7 +748,7 @@ var __webpack_modules__ = {
|
|
|
716
748
|
var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_1_3_18_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_rsbuild_core_1_3_18_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
|
|
717
749
|
___CSS_LOADER_EXPORT___.push([
|
|
718
750
|
module.id,
|
|
719
|
-
`.ticks-
|
|
751
|
+
`.ticks-jNI7Tw {
|
|
720
752
|
z-index: 2;
|
|
721
753
|
opacity: .5;
|
|
722
754
|
box-sizing: border-box;
|
|
@@ -732,7 +764,7 @@ var __webpack_modules__ = {
|
|
|
732
764
|
position: relative;
|
|
733
765
|
}
|
|
734
766
|
|
|
735
|
-
.ticks-
|
|
767
|
+
.ticks-jNI7Tw .tick-lQRfPY {
|
|
736
768
|
text-align: right;
|
|
737
769
|
justify-content: flex-end;
|
|
738
770
|
align-items: center;
|
|
@@ -743,53 +775,19 @@ var __webpack_modules__ = {
|
|
|
743
775
|
transform: translateY(-50%)scaleX(.85);
|
|
744
776
|
}
|
|
745
777
|
|
|
746
|
-
.ticks-
|
|
778
|
+
.ticks-jNI7Tw .tick-lQRfPY:first-child {
|
|
747
779
|
transform: translateY(-100%)scaleX(.85);
|
|
748
780
|
}
|
|
749
781
|
|
|
750
|
-
.ticks-
|
|
782
|
+
.ticks-jNI7Tw .tick-lQRfPY:last-child {
|
|
751
783
|
transform: translateY(0%)scaleX(.85);
|
|
752
784
|
}
|
|
753
785
|
`,
|
|
754
786
|
""
|
|
755
787
|
]);
|
|
756
788
|
___CSS_LOADER_EXPORT___.locals = {
|
|
757
|
-
ticks: "ticks-
|
|
758
|
-
tick: "tick-
|
|
759
|
-
};
|
|
760
|
-
const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
|
|
761
|
-
},
|
|
762
|
-
"../../../../../../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.5.0_@rsbuild+core@1.6.9/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/AxisY/heatmap/components/Ticks/styles.module.less": function(module, __webpack_exports__, __webpack_require__) {
|
|
763
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
764
|
-
Z: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
765
|
-
});
|
|
766
|
-
var _node_modules_pnpm_rsbuild_core_1_3_18_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.3.18/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
767
|
-
var _node_modules_pnpm_rsbuild_core_1_3_18_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_3_18_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
768
|
-
var _node_modules_pnpm_rsbuild_core_1_3_18_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.3.18/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
769
|
-
var _node_modules_pnpm_rsbuild_core_1_3_18_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_3_18_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
770
|
-
var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_1_3_18_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_rsbuild_core_1_3_18_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
|
|
771
|
-
___CSS_LOADER_EXPORT___.push([
|
|
772
|
-
module.id,
|
|
773
|
-
`.ticks-jNI7Tw {
|
|
774
|
-
z-index: 2;
|
|
775
|
-
opacity: .5;
|
|
776
|
-
box-sizing: border-box;
|
|
777
|
-
width: 100%;
|
|
778
|
-
height: 100%;
|
|
779
|
-
color: var(--theme-color-base);
|
|
780
|
-
flex-flow: column;
|
|
781
|
-
justify-content: space-between;
|
|
782
|
-
align-items: flex-end;
|
|
783
|
-
padding-right: 2px;
|
|
784
|
-
font-size: 12px;
|
|
785
|
-
display: flex;
|
|
786
|
-
position: relative;
|
|
787
|
-
}
|
|
788
|
-
`,
|
|
789
|
-
""
|
|
790
|
-
]);
|
|
791
|
-
___CSS_LOADER_EXPORT___.locals = {
|
|
792
|
-
ticks: "ticks-jNI7Tw"
|
|
789
|
+
ticks: "ticks-jNI7Tw",
|
|
790
|
+
tick: "tick-lQRfPY"
|
|
793
791
|
};
|
|
794
792
|
const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
|
|
795
793
|
},
|
|
@@ -2208,7 +2206,7 @@ var __webpack_modules__ = {
|
|
|
2208
2206
|
___CSS_LOADER_EXPORT___.push([
|
|
2209
2207
|
module.id,
|
|
2210
2208
|
`.sliderContainer-lJQLJn {
|
|
2211
|
-
pointer-events:
|
|
2209
|
+
pointer-events: none;
|
|
2212
2210
|
z-index: 6;
|
|
2213
2211
|
width: 100%;
|
|
2214
2212
|
height: 100%;
|
|
@@ -2218,6 +2216,7 @@ var __webpack_modules__ = {
|
|
|
2218
2216
|
|
|
2219
2217
|
.slider-Gua7k5 {
|
|
2220
2218
|
box-sizing: border-box;
|
|
2219
|
+
pointer-events: auto;
|
|
2221
2220
|
grid-template: "left-edge top-edge right-edge"
|
|
2222
2221
|
"left-edge middle right-edge" 1fr
|
|
2223
2222
|
"left-edge bottom-edge right-edge"
|
|
@@ -4364,7 +4363,6 @@ function defaultState_createParams() {
|
|
|
4364
4363
|
type: axisYTypeList["default"],
|
|
4365
4364
|
hidden: [],
|
|
4366
4365
|
linkage: true,
|
|
4367
|
-
heatmapFullTicks: void 0,
|
|
4368
4366
|
onChange: ()=>{}
|
|
4369
4367
|
},
|
|
4370
4368
|
axisX: {
|
|
@@ -7887,18 +7885,19 @@ function useSpectrumRule(type) {
|
|
|
7887
7885
|
}, []);
|
|
7888
7886
|
return handleSpectrumRule;
|
|
7889
7887
|
}
|
|
7890
|
-
var
|
|
7891
|
-
var
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
injectStylesIntoStyleTag_default()(
|
|
7898
|
-
const
|
|
7888
|
+
var 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.5.0_@rsbuild+core@1.6.9/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/AxisY/heatmap/components/Ticks/styles.module.less");
|
|
7889
|
+
var Ticks_styles_module_options = {};
|
|
7890
|
+
Ticks_styles_module_options.styleTagTransform = styleTagTransform_default();
|
|
7891
|
+
Ticks_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
7892
|
+
Ticks_styles_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
7893
|
+
Ticks_styles_module_options.domAPI = styleDomAPI_default();
|
|
7894
|
+
Ticks_styles_module_options.insertStyleElement = insertStyleElement_default();
|
|
7895
|
+
injectStylesIntoStyleTag_default()(Ticks_styles_module.Z, Ticks_styles_module_options);
|
|
7896
|
+
const components_Ticks_styles_module = Ticks_styles_module.Z && Ticks_styles_module.Z.locals ? Ticks_styles_module.Z.locals : void 0;
|
|
7899
7897
|
const COMPONENT_KEY = 'AxisYHeatmapTicks';
|
|
7898
|
+
const calcTimeDiffLastTwoDigits = (time)=>time?.slice?.(-8);
|
|
7900
7899
|
const HEATMAP_FULL_TICKS = 10;
|
|
7901
|
-
const
|
|
7900
|
+
const Ticks_Ticks = (props)=>{
|
|
7902
7901
|
const { id } = props;
|
|
7903
7902
|
const { state: { globalID } } = useStore_useStore();
|
|
7904
7903
|
const [timeValues, setTimeValues] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(Array(HEATMAP_FULL_TICKS).fill(''));
|
|
@@ -7915,7 +7914,7 @@ const FullTicks_Ticks = (props)=>{
|
|
|
7915
7914
|
for(let i = 0; i < HEATMAP_FULL_TICKS; i++){
|
|
7916
7915
|
const index = Math.floor((dataLength - 1) * i / (HEATMAP_FULL_TICKS - 1));
|
|
7917
7916
|
const data = waterfallData[index];
|
|
7918
|
-
const value = data?.timestamp
|
|
7917
|
+
const value = calcTimeDiffLastTwoDigits(data?.timestamp);
|
|
7919
7918
|
values.push(value);
|
|
7920
7919
|
}
|
|
7921
7920
|
setTimeValues(values);
|
|
@@ -7925,64 +7924,17 @@ const FullTicks_Ticks = (props)=>{
|
|
|
7925
7924
|
globalID
|
|
7926
7925
|
]);
|
|
7927
7926
|
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
7928
|
-
className:
|
|
7927
|
+
className: components_Ticks_styles_module.ticks,
|
|
7929
7928
|
children: positions.map((position, index)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
7930
|
-
className:
|
|
7929
|
+
className: components_Ticks_styles_module.tick,
|
|
7931
7930
|
style: {
|
|
7932
7931
|
top: position
|
|
7933
7932
|
},
|
|
7934
7933
|
children: timeValues[index]
|
|
7935
|
-
},
|
|
7934
|
+
}, `tick-${position}`))
|
|
7936
7935
|
});
|
|
7937
7936
|
};
|
|
7938
|
-
const
|
|
7939
|
-
var 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.5.0_@rsbuild+core@1.6.9/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/AxisY/heatmap/components/Ticks/styles.module.less");
|
|
7940
|
-
var Ticks_styles_module_options = {};
|
|
7941
|
-
Ticks_styles_module_options.styleTagTransform = styleTagTransform_default();
|
|
7942
|
-
Ticks_styles_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
7943
|
-
Ticks_styles_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
7944
|
-
Ticks_styles_module_options.domAPI = styleDomAPI_default();
|
|
7945
|
-
Ticks_styles_module_options.insertStyleElement = insertStyleElement_default();
|
|
7946
|
-
injectStylesIntoStyleTag_default()(Ticks_styles_module.Z, Ticks_styles_module_options);
|
|
7947
|
-
const components_Ticks_styles_module = Ticks_styles_module.Z && Ticks_styles_module.Z.locals ? Ticks_styles_module.Z.locals : void 0;
|
|
7948
|
-
const Ticks_COMPONENT_KEY = 'AxisYHeatmapTicks';
|
|
7949
|
-
const Ticks_Ticks = (props)=>{
|
|
7950
|
-
const { id, inside = false } = props;
|
|
7951
|
-
const { state: { globalID } } = useStore_useStore();
|
|
7952
|
-
const [tickFormat, setTickFormat] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)();
|
|
7953
|
-
(0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
|
|
7954
|
-
if (id && globalID) withUpdateData(id, Ticks_COMPONENT_KEY, ()=>{
|
|
7955
|
-
let { waterfallData: d } = withDatabase(globalID).getAllRawData();
|
|
7956
|
-
if (d?.length > 0) {
|
|
7957
|
-
if (d.at(0)?.length === 0) d = d?.filter?.((i)=>i?.length > 0);
|
|
7958
|
-
const start = d.at(-1)?.timestamp;
|
|
7959
|
-
const end = d.at(0)?.timestamp;
|
|
7960
|
-
if (start && end) setTickFormat((start - end) / 1e3);
|
|
7961
|
-
}
|
|
7962
|
-
});
|
|
7963
|
-
}, [
|
|
7964
|
-
id,
|
|
7965
|
-
globalID
|
|
7966
|
-
]);
|
|
7967
|
-
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
7968
|
-
className: components_Ticks_styles_module.ticks,
|
|
7969
|
-
style: {
|
|
7970
|
-
alignItems: inside ? 'flex-start' : 'flex-end'
|
|
7971
|
-
},
|
|
7972
|
-
children: [
|
|
7973
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
7974
|
-
className: components_Ticks_styles_module.start,
|
|
7975
|
-
children: "0"
|
|
7976
|
-
}),
|
|
7977
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
7978
|
-
className: components_Ticks_styles_module.end,
|
|
7979
|
-
title: "\u5355\u4F4D\uFF1A\u79D2",
|
|
7980
|
-
children: tickFormat?.toFixed(1)
|
|
7981
|
-
})
|
|
7982
|
-
]
|
|
7983
|
-
});
|
|
7984
|
-
};
|
|
7985
|
-
const components_Ticks = Ticks_Ticks;
|
|
7937
|
+
const components_Ticks = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Ticks_Ticks);
|
|
7986
7938
|
var 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.5.0_@rsbuild+core@1.6.9/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/AxisY/heatmap/type/Default/styles.module.less");
|
|
7987
7939
|
var Default_styles_module_options = {};
|
|
7988
7940
|
Default_styles_module_options.styleTagTransform = styleTagTransform_default();
|
|
@@ -7993,7 +7945,6 @@ Default_styles_module_options.insertStyleElement = insertStyleElement_default();
|
|
|
7993
7945
|
injectStylesIntoStyleTag_default()(Default_styles_module.Z, Default_styles_module_options);
|
|
7994
7946
|
const type_Default_styles_module = Default_styles_module.Z && Default_styles_module.Z.locals ? Default_styles_module.Z.locals : void 0;
|
|
7995
7947
|
const Default_Default = (props)=>{
|
|
7996
|
-
const { state: { axisY: { heatmapFullTicks } } } = useStore_useStore();
|
|
7997
7948
|
const { axisYWidth, marginLeft } = useAxisYWidth_useAxisYWidth();
|
|
7998
7949
|
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
7999
7950
|
className: type_Default_styles_module.axisyheatmapdefault,
|
|
@@ -8001,9 +7952,7 @@ const Default_Default = (props)=>{
|
|
|
8001
7952
|
width: axisYWidth,
|
|
8002
7953
|
marginLeft
|
|
8003
7954
|
},
|
|
8004
|
-
children:
|
|
8005
|
-
...props
|
|
8006
|
-
}) : /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Ticks, {
|
|
7955
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Ticks, {
|
|
8007
7956
|
...props
|
|
8008
7957
|
})
|
|
8009
7958
|
});
|
|
@@ -8626,7 +8575,7 @@ function getStableOrder(globalID, currentNames) {
|
|
|
8626
8575
|
}
|
|
8627
8576
|
return stored;
|
|
8628
8577
|
}
|
|
8629
|
-
function
|
|
8578
|
+
function useFilteredSeries(globalID, filter) {
|
|
8630
8579
|
const { series } = useSeriesManager(globalID);
|
|
8631
8580
|
const { state: { series: { legendExternal } } } = useStore_useStore();
|
|
8632
8581
|
const filteredData = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
|
|
@@ -8769,7 +8718,7 @@ injectStylesIntoStyleTag_default()(FrequencyDataBoard_styles_module.Z, Frequency
|
|
|
8769
8718
|
const components_FrequencyDataBoard_styles_module = FrequencyDataBoard_styles_module.Z && FrequencyDataBoard_styles_module.Z.locals ? FrequencyDataBoard_styles_module.Z.locals : void 0;
|
|
8770
8719
|
const FrequencyDataBoard_FrequencyDataBoard = ({ left, updateKey, onChange })=>{
|
|
8771
8720
|
const { state: { axisY, axisX: { frequencyFormat, unit }, globalID } } = useStore_useStore();
|
|
8772
|
-
const filteredSeries =
|
|
8721
|
+
const filteredSeries = useFilteredSeries(globalID);
|
|
8773
8722
|
const index = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(Number.NaN);
|
|
8774
8723
|
const calculateIndex = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((data, n, series)=>{
|
|
8775
8724
|
const values = data[n] || [];
|
|
@@ -8912,7 +8861,7 @@ const HeatmapPopover = ({ id })=>{
|
|
|
8912
8861
|
const newValue = yValue[xIndex];
|
|
8913
8862
|
setValue(Number.isFinite(newValue) ? newValue.toFixed(1) : '');
|
|
8914
8863
|
const timestamp = yValue.timestamp;
|
|
8915
|
-
if (timestamp) setTimestamp(
|
|
8864
|
+
if (timestamp) setTimestamp(timestamp);
|
|
8916
8865
|
}
|
|
8917
8866
|
}
|
|
8918
8867
|
}
|
|
@@ -8981,7 +8930,7 @@ const LevelStreamPopover = ({ id })=>{
|
|
|
8981
8930
|
setValue(Number.isFinite(dataValue) ? dataValue.toFixed(1) : '');
|
|
8982
8931
|
if (levelStreamData.timestampData && levelStreamData.timestampData.length > clampedIndex) {
|
|
8983
8932
|
const timestampValue = levelStreamData.timestampData[clampedIndex];
|
|
8984
|
-
if (timestampValue) setTimestamp((0, utils.
|
|
8933
|
+
if (timestampValue) setTimestamp((0, utils.i$)(Number(timestampValue)));
|
|
8985
8934
|
}
|
|
8986
8935
|
}
|
|
8987
8936
|
}
|
|
@@ -9374,12 +9323,8 @@ const defaultAreaInfoResult = {
|
|
|
9374
9323
|
endIndex: 0,
|
|
9375
9324
|
startCol: 0,
|
|
9376
9325
|
endCol: 0,
|
|
9377
|
-
startTimestamp:
|
|
9378
|
-
|
|
9379
|
-
endTimestamp: 0,
|
|
9380
|
-
endTimestampFormat: '',
|
|
9381
|
-
duration: 0,
|
|
9382
|
-
durationFormat: '',
|
|
9326
|
+
startTimestamp: '',
|
|
9327
|
+
endTimestamp: '',
|
|
9383
9328
|
startFrequency: 0,
|
|
9384
9329
|
startFrequencyFormat: '',
|
|
9385
9330
|
endFrequency: 0,
|
|
@@ -9404,20 +9349,15 @@ function calculateAreaInfo({ endLeft, startLeft, startTop, endTop, frequencyForm
|
|
|
9404
9349
|
end: Math.round(Number(frequencyFormat(endLeft)) * tools_PRECISION) / tools_PRECISION
|
|
9405
9350
|
};
|
|
9406
9351
|
const bandwidth = Math.abs(frequencies.end - frequencies.start);
|
|
9407
|
-
const startTimestamp = waterfallData[indices.top]?.timestamp ||
|
|
9408
|
-
const endTimestamp = waterfallData[indices.bottom]?.timestamp ||
|
|
9409
|
-
const duration = endTimestamp - startTimestamp;
|
|
9352
|
+
const startTimestamp = waterfallData[indices.top]?.timestamp || '';
|
|
9353
|
+
const endTimestamp = waterfallData[indices.bottom]?.timestamp || '';
|
|
9410
9354
|
const result = {
|
|
9411
9355
|
startIndex: indices.top,
|
|
9412
9356
|
endIndex: indices.bottom,
|
|
9413
9357
|
startCol: indices.start,
|
|
9414
9358
|
endCol: indices.end,
|
|
9415
9359
|
startTimestamp,
|
|
9416
|
-
startTimestampFormat: (0, utils.Fc)(startTimestamp),
|
|
9417
9360
|
endTimestamp,
|
|
9418
|
-
endTimestampFormat: (0, utils.Fc)(endTimestamp),
|
|
9419
|
-
duration,
|
|
9420
|
-
durationFormat: (0, utils.lj)(duration / 1000, 3),
|
|
9421
9361
|
startFrequency: frequencies.start,
|
|
9422
9362
|
startFrequencyFormat: String(frequencies.start),
|
|
9423
9363
|
endFrequency: frequencies.end,
|
|
@@ -9563,7 +9503,7 @@ const Area_Area = (props)=>{
|
|
|
9563
9503
|
children: "\u8D77\u59CB\u65F6\u95F4"
|
|
9564
9504
|
}),
|
|
9565
9505
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
9566
|
-
children: info?.
|
|
9506
|
+
children: info?.startTimestamp
|
|
9567
9507
|
})
|
|
9568
9508
|
]
|
|
9569
9509
|
}),
|
|
@@ -9574,18 +9514,7 @@ const Area_Area = (props)=>{
|
|
|
9574
9514
|
children: "\u7ED3\u675F\u65F6\u95F4"
|
|
9575
9515
|
}),
|
|
9576
9516
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
9577
|
-
children: info?.
|
|
9578
|
-
})
|
|
9579
|
-
]
|
|
9580
|
-
}),
|
|
9581
|
-
(0, utils.Ri)(info.durationFormat) && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
9582
|
-
className: HeatmapCapture_Area_styles_module.item,
|
|
9583
|
-
children: [
|
|
9584
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
9585
|
-
children: "\u65F6\u95F4\u5DEE"
|
|
9586
|
-
}),
|
|
9587
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
9588
|
-
children: `${info.durationFormat}s`
|
|
9517
|
+
children: info?.endTimestamp
|
|
9589
9518
|
})
|
|
9590
9519
|
]
|
|
9591
9520
|
})
|
|
@@ -9637,7 +9566,6 @@ const RowIndex = ({ id })=>{
|
|
|
9637
9566
|
const rowData = {
|
|
9638
9567
|
data: waterfallData[newRowIndex],
|
|
9639
9568
|
timestamp: newTimestamp,
|
|
9640
|
-
timestampFormat: (0, utils.Fc)(newTimestamp),
|
|
9641
9569
|
rowIndex: newRowIndex
|
|
9642
9570
|
};
|
|
9643
9571
|
setInfo(rowData);
|
|
@@ -9724,7 +9652,7 @@ const RowIndex = ({ id })=>{
|
|
|
9724
9652
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("span", {
|
|
9725
9653
|
children: [
|
|
9726
9654
|
"\u65F6\u95F4",
|
|
9727
|
-
info?.
|
|
9655
|
+
info?.timestamp
|
|
9728
9656
|
]
|
|
9729
9657
|
})
|
|
9730
9658
|
]
|
|
@@ -9789,9 +9717,11 @@ const Slider = ({ id })=>{
|
|
|
9789
9717
|
const { position: pos, height: h, leftPosition: left, width: w } = r;
|
|
9790
9718
|
const endIndex = Math.round((100 - pos) / 100 * (len - 1));
|
|
9791
9719
|
const startIndex = Math.round((100 - (pos + h)) / 100 * (len - 1));
|
|
9792
|
-
const startTimestamp = heatmapData[startIndex]?.timestamp;
|
|
9793
|
-
const endTimestamp = heatmapData[endIndex]?.timestamp;
|
|
9794
|
-
const
|
|
9720
|
+
const startTimestamp = heatmapData[startIndex]?.timestamp ?? '';
|
|
9721
|
+
const endTimestamp = heatmapData[endIndex]?.timestamp ?? '';
|
|
9722
|
+
const startTs = (0, utils.JP)(startTimestamp);
|
|
9723
|
+
const endTs = (0, utils.JP)(endTimestamp);
|
|
9724
|
+
const duration = startTs > 0 && endTs > 0 ? Math.abs(endTs - startTs) : 0;
|
|
9795
9725
|
const colCount = heatmapData[0]?.length || 0;
|
|
9796
9726
|
const startCol = Math.max(0, Math.min(colCount - 1, Math.ceil(colCount * left / 100) - 1));
|
|
9797
9727
|
const endCol = Math.max(0, Math.min(colCount - 1, Math.ceil(colCount * (left + w) / 100) - 1));
|
|
@@ -9801,23 +9731,21 @@ const Slider = ({ id })=>{
|
|
|
9801
9731
|
const PRECISION = 1e4;
|
|
9802
9732
|
const startFrequency = startFreqStr ? Math.round(Number(startFreqStr) * PRECISION) / PRECISION : 0;
|
|
9803
9733
|
const endFrequency = endFreqStr ? Math.round(Number(endFreqStr) * PRECISION) / PRECISION : 0;
|
|
9734
|
+
const bandwidth = Math.abs(endFrequency - startFrequency);
|
|
9804
9735
|
return {
|
|
9805
9736
|
startIndex,
|
|
9806
9737
|
endIndex,
|
|
9807
9738
|
startTimestamp,
|
|
9808
|
-
startTimestampFormat: (0, utils.Fc)(startTimestamp),
|
|
9809
9739
|
endTimestamp,
|
|
9810
|
-
endTimestampFormat: (0, utils.Fc)(endTimestamp),
|
|
9811
9740
|
duration,
|
|
9812
|
-
durationFormat: (duration / 1000).toFixed(3),
|
|
9813
9741
|
startCol,
|
|
9814
9742
|
endCol,
|
|
9815
9743
|
startFrequency,
|
|
9816
9744
|
startFrequencyFormat: String(startFrequency),
|
|
9817
9745
|
endFrequency,
|
|
9818
9746
|
endFrequencyFormat: String(endFrequency),
|
|
9819
|
-
bandwidth
|
|
9820
|
-
bandwidthFormat: (0, utils.lj)(
|
|
9747
|
+
bandwidth,
|
|
9748
|
+
bandwidthFormat: (0, utils.lj)(bandwidth)
|
|
9821
9749
|
};
|
|
9822
9750
|
}, [
|
|
9823
9751
|
getHeatmapData
|
|
@@ -10078,7 +10006,7 @@ const Slider = ({ id })=>{
|
|
|
10078
10006
|
top: `${position}%`,
|
|
10079
10007
|
left: `${leftPosition + width / 2}%`
|
|
10080
10008
|
},
|
|
10081
|
-
children: info?.
|
|
10009
|
+
children: info?.endTimestamp
|
|
10082
10010
|
}),
|
|
10083
10011
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
10084
10012
|
className: `${HeatmapCapture_Slider_styles_module.externalLabel} ${bounds.nearBottom ? HeatmapCapture_Slider_styles_module.externalLabelBottomInner : HeatmapCapture_Slider_styles_module.externalLabelBottom} ${bounds.centerNearLeft ? HeatmapCapture_Slider_styles_module.externalLabelHorizontalRight : bounds.centerNearRight ? HeatmapCapture_Slider_styles_module.externalLabelHorizontalLeft : ''}`,
|
|
@@ -10086,7 +10014,7 @@ const Slider = ({ id })=>{
|
|
|
10086
10014
|
top: `${position + height}%`,
|
|
10087
10015
|
left: `${leftPosition + width / 2}%`
|
|
10088
10016
|
},
|
|
10089
|
-
children: info?.
|
|
10017
|
+
children: info?.startTimestamp
|
|
10090
10018
|
}),
|
|
10091
10019
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
10092
10020
|
className: HeatmapCapture_Slider_styles_module.slider,
|
|
@@ -10114,15 +10042,14 @@ const Slider = ({ id })=>{
|
|
|
10114
10042
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
10115
10043
|
children: [
|
|
10116
10044
|
"\u5E26\u5BBD:",
|
|
10117
|
-
' ',
|
|
10118
10045
|
info?.bandwidth !== void 0 ? (1000 * info.bandwidth).toFixed(2) : '',
|
|
10119
10046
|
unitKHz
|
|
10120
10047
|
]
|
|
10121
10048
|
}),
|
|
10122
10049
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
10123
10050
|
children: [
|
|
10124
|
-
"\u65F6\u957F:
|
|
10125
|
-
info?.
|
|
10051
|
+
"\u65F6\u957F:",
|
|
10052
|
+
info?.duration !== void 0 ? (info.duration / 1000).toFixed(3) : '',
|
|
10126
10053
|
"s"
|
|
10127
10054
|
]
|
|
10128
10055
|
})
|
|
@@ -10630,10 +10557,9 @@ const Heatmap_Heatmap = (props)=>{
|
|
|
10630
10557
|
};
|
|
10631
10558
|
const modules_Heatmap = Heatmap_Heatmap;
|
|
10632
10559
|
const Heatmap_Chart_Chart = ({ publish, heatmapDefaultData })=>{
|
|
10633
|
-
const { state: { globalID, marker, zoom
|
|
10560
|
+
const { state: { globalID, marker, zoom }, dispatch } = useStore_useStore();
|
|
10634
10561
|
(0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
|
|
10635
10562
|
zoom.show = false;
|
|
10636
|
-
cursor.show = false;
|
|
10637
10563
|
dispatch({
|
|
10638
10564
|
payload: {
|
|
10639
10565
|
marker,
|
|
@@ -12278,7 +12204,7 @@ injectStylesIntoStyleTag_default()(SeriesDisplayControl_styles_module.Z, SeriesD
|
|
|
12278
12204
|
const ToolsBar_SeriesDisplayControl_styles_module = SeriesDisplayControl_styles_module.Z && SeriesDisplayControl_styles_module.Z.locals ? SeriesDisplayControl_styles_module.Z.locals : void 0;
|
|
12279
12205
|
const SeriesDisplayControl = ()=>{
|
|
12280
12206
|
const { state: { globalID, series: seriesConfig } } = useStore_useStore();
|
|
12281
|
-
const filteredSeries =
|
|
12207
|
+
const filteredSeries = useFilteredSeries(globalID);
|
|
12282
12208
|
const { forceUpdate } = useSeriesForComponent(globalID);
|
|
12283
12209
|
(0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
|
|
12284
12210
|
if (!globalID || !seriesConfig?.forceDisplay) return;
|
|
@@ -15655,7 +15581,7 @@ const LevelStream_Chart_Chart = (props)=>{
|
|
|
15655
15581
|
subscribe: (e)=>{
|
|
15656
15582
|
const { pstype } = e;
|
|
15657
15583
|
if (pstype === constants_PSType.Reset) analyzer?.reset();
|
|
15658
|
-
if (pstype === constants_PSType.LevelStream) analyzer?.process(e.data, e.timestamp);
|
|
15584
|
+
if (pstype === constants_PSType.LevelStream) analyzer?.process(e.data, (0, utils.JP)(e.timestamp));
|
|
15659
15585
|
}
|
|
15660
15586
|
});
|
|
15661
15587
|
(0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
|
|
@@ -15915,7 +15841,7 @@ Blaze_styles_module_options.insertStyleElement = insertStyleElement_default();
|
|
|
15915
15841
|
injectStylesIntoStyleTag_default()(Blaze_styles_module.Z, Blaze_styles_module_options);
|
|
15916
15842
|
const components_Blaze_styles_module = Blaze_styles_module.Z && Blaze_styles_module.Z.locals ? Blaze_styles_module.Z.locals : void 0;
|
|
15917
15843
|
const BLAZE_PROGRESS = (globalID, func)=>subscription_createSubscriptionManager(`BLAZE_PROGRESS-${globalID}`, '0', func);
|
|
15918
|
-
const
|
|
15844
|
+
const Blaze_Blaze = ()=>{
|
|
15919
15845
|
const { state: { blaze: { show }, segments, globalID } } = useStore_useStore();
|
|
15920
15846
|
const [left, setLeft] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)('');
|
|
15921
15847
|
const excludePercent = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
|
|
@@ -15954,7 +15880,7 @@ const Blaze = ()=>{
|
|
|
15954
15880
|
})
|
|
15955
15881
|
});
|
|
15956
15882
|
};
|
|
15957
|
-
const
|
|
15883
|
+
const Blaze = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(Blaze_Blaze);
|
|
15958
15884
|
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.5.0_@rsbuild+core@1.6.9/node_modules/@rsbuild/plugin-less/compiled/less-loader/index.js??ruleSet[1].rules[11].use[3]!./src/components/Legend/styles.module.less");
|
|
15959
15885
|
var Legend_styles_module_options = {};
|
|
15960
15886
|
Legend_styles_module_options.styleTagTransform = styleTagTransform_default();
|
|
@@ -16633,7 +16559,7 @@ const Spectrum_Chart_Chart = (props)=>{
|
|
|
16633
16559
|
type === constants_ChartType.Scan && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
|
|
16634
16560
|
children: [
|
|
16635
16561
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_SegmentsZebra, {}),
|
|
16636
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
16562
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Blaze, {})
|
|
16637
16563
|
]
|
|
16638
16564
|
}),
|
|
16639
16565
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Legend, {})
|
package/package.json
CHANGED
package/types/publish.d.ts
CHANGED
|
@@ -56,14 +56,14 @@ export interface PublishSpectrum {
|
|
|
56
56
|
templateData?: Float32Array;
|
|
57
57
|
templateTolerance?: number;
|
|
58
58
|
extraData?: SpectrumExtraData;
|
|
59
|
-
timestamp?:
|
|
59
|
+
timestamp?: string;
|
|
60
60
|
offset?: number;
|
|
61
61
|
segmentOffset?: number;
|
|
62
62
|
}
|
|
63
63
|
export interface PublishHeatmap {
|
|
64
64
|
pstype: PSType.Heatmap;
|
|
65
65
|
data: number[][];
|
|
66
|
-
timestamps:
|
|
66
|
+
timestamps: string[];
|
|
67
67
|
}
|
|
68
68
|
export interface PublishFluorescence {
|
|
69
69
|
pstype: PSType.Fluorescence;
|
|
@@ -77,7 +77,7 @@ export interface PublishOccupancy {
|
|
|
77
77
|
export interface PublishLevelStream {
|
|
78
78
|
pstype: PSType.LevelStream;
|
|
79
79
|
data: number;
|
|
80
|
-
timestamp:
|
|
80
|
+
timestamp: string;
|
|
81
81
|
}
|
|
82
82
|
export interface PublishIQ {
|
|
83
83
|
pstype: PSType.IQ;
|
package/types/store.d.ts
CHANGED
|
@@ -25,7 +25,6 @@ export interface AxisYProps {
|
|
|
25
25
|
type?: string;
|
|
26
26
|
hidden?: string[];
|
|
27
27
|
linkage?: boolean;
|
|
28
|
-
heatmapFullTicks?: boolean;
|
|
29
28
|
onChange?: (e: RecursiveObject) => void;
|
|
30
29
|
}
|
|
31
30
|
export interface AxisXProps {
|
|
@@ -105,14 +104,11 @@ export declare enum HeatmapCaptureType {
|
|
|
105
104
|
export interface HeatmapSliderData {
|
|
106
105
|
startIndex: number;
|
|
107
106
|
endIndex: number;
|
|
108
|
-
startTimestamp:
|
|
109
|
-
|
|
110
|
-
endTimestamp: number;
|
|
111
|
-
endTimestampFormat: string;
|
|
112
|
-
duration: number;
|
|
113
|
-
durationFormat: string;
|
|
107
|
+
startTimestamp: string;
|
|
108
|
+
endTimestamp: string;
|
|
114
109
|
}
|
|
115
110
|
export interface HeatmapSlider2DData extends HeatmapSliderData {
|
|
111
|
+
duration: number;
|
|
116
112
|
startCol: number;
|
|
117
113
|
endCol: number;
|
|
118
114
|
startFrequency: number;
|
|
@@ -135,8 +131,7 @@ export interface HeatmapAreaData extends HeatmapSliderData {
|
|
|
135
131
|
}
|
|
136
132
|
export interface HeatmapRowIndexData {
|
|
137
133
|
data: TimestampedFloat32Array;
|
|
138
|
-
timestamp:
|
|
139
|
-
timestampFormat: string;
|
|
134
|
+
timestamp: string;
|
|
140
135
|
rowIndex: number;
|
|
141
136
|
}
|
|
142
137
|
export interface HeatmapCaptureProps {
|
package/utils/index.d.ts
CHANGED
|
@@ -6,7 +6,14 @@ import type { RecursiveObject, SegmentsOriginal, SegmentsType } from '../types';
|
|
|
6
6
|
* @returns {string}
|
|
7
7
|
*/
|
|
8
8
|
export declare const createGUID: () => string;
|
|
9
|
-
export
|
|
9
|
+
export interface TimestampFormatOptions {
|
|
10
|
+
dateSeparator?: string;
|
|
11
|
+
timeSeparator?: string;
|
|
12
|
+
timeOnly?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const formatTimestamp: (input?: number | Date, options?: TimestampFormatOptions) => string;
|
|
15
|
+
export declare const dateTimeToTimestamp: (dateTimeStr: unknown, // 改为 unknown 类型,强制运行时检查
|
|
16
|
+
sep1?: string, sep2?: string, isTimeOnly?: boolean) => number;
|
|
10
17
|
/**
|
|
11
18
|
* 节流
|
|
12
19
|
*/
|
|
@@ -96,7 +103,7 @@ export declare const createChartRenderID: ({ moduleType, globalID }: {
|
|
|
96
103
|
* @param timestamps 可选的时间戳数组
|
|
97
104
|
* @returns 转换后的TimestampedFloat32Array数组
|
|
98
105
|
*/
|
|
99
|
-
export declare const convertToTimestampedArrays: (data: number[][], timestamps?: Array<
|
|
106
|
+
export declare const convertToTimestampedArrays: (data: number[][], timestamps?: Array<string>) => TimestampedFloat32Array[];
|
|
100
107
|
/**
|
|
101
108
|
* 防抖函数
|
|
102
109
|
* @param fn 需要防抖的函数
|