@insync-stageplayer/measurements 0.5.37 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AsyncSubject.d.ts +23 -23
- package/lib/AsyncSubject.js +64 -64
- package/lib/client/MeasurementDataClient.d.ts +135 -130
- package/lib/client/MeasurementDataClient.d.ts.map +1 -1
- package/lib/client/MeasurementDataClient.js +99 -99
- package/lib/client/MeasurementDataClient.js.map +1 -1
- package/lib/client/OnlineMeasurementDataClient.d.ts +44 -44
- package/lib/client/OnlineMeasurementDataClient.d.ts.map +1 -1
- package/lib/client/OnlineMeasurementDataClient.js +211 -211
- package/lib/client/OnlineMeasurementDataClient.js.map +1 -1
- package/lib/client/debug.d.ts +1 -1
- package/lib/client/debug.js +4 -4
- package/lib/client/index.d.ts +3 -3
- package/lib/client/index.js +3 -3
- package/lib/client/offline/OfflineMeasurementDataClient.d.ts +16 -16
- package/lib/client/offline/OfflineMeasurementDataClient.js +47 -47
- package/lib/client/offline/offline.d.ts +16 -16
- package/lib/client/offline/offline.js +82 -82
- package/lib/client/sbf.d.ts +35 -35
- package/lib/client/sbf.js +88 -88
- package/lib/client/signalviewer/SignalViewerDataClient.d.ts +37 -37
- package/lib/client/signalviewer/SignalViewerDataClient.d.ts.map +1 -1
- package/lib/client/signalviewer/SignalViewerDataClient.js +163 -164
- package/lib/client/signalviewer/SignalViewerDataClient.js.map +1 -1
- package/lib/client/signalviewer/SignalViewerDataClient.worker.d.ts +79 -73
- package/lib/client/signalviewer/SignalViewerDataClient.worker.d.ts.map +1 -1
- package/lib/client/signalviewer/SignalViewerDataClient.worker.js +342 -211
- package/lib/client/signalviewer/SignalViewerDataClient.worker.js.map +1 -1
- package/lib/components/Icon/CloseIcon.d.ts +6 -6
- package/lib/components/Icon/CloseIcon.js +24 -24
- package/lib/components/Icon/Icon.test.d.ts +1 -1
- package/lib/components/Icon/Icon.test.js +11 -11
- package/lib/components/MeasurementsChooser.d.ts +38 -38
- package/lib/components/MeasurementsChooser.d.ts.map +1 -1
- package/lib/components/MeasurementsChooser.js +178 -181
- package/lib/components/MeasurementsChooser.js.map +1 -1
- package/lib/components/MeasurementsModuleProvider.d.ts +34 -34
- package/lib/components/MeasurementsModuleProvider.d.ts.map +1 -1
- package/lib/components/MeasurementsModuleProvider.js +100 -79
- package/lib/components/MeasurementsModuleProvider.js.map +1 -1
- package/lib/components/MeasurementsTable/CheckboxCell.d.ts +35 -35
- package/lib/components/MeasurementsTable/CheckboxCell.js +28 -28
- package/lib/components/MeasurementsTable/ColorCell.d.ts +29 -29
- package/lib/components/MeasurementsTable/ColorCell.d.ts.map +1 -1
- package/lib/components/MeasurementsTable/ColorCell.js +58 -58
- package/lib/components/MeasurementsTable/ColorPicker.d.ts +6 -3
- package/lib/components/MeasurementsTable/ColorPicker.d.ts.map +1 -1
- package/lib/components/MeasurementsTable/ColorPicker.js +10 -10
- package/lib/components/MeasurementsTable/ColumnResizer.d.ts +4 -4
- package/lib/components/MeasurementsTable/ColumnResizer.js +5 -5
- package/lib/components/MeasurementsTable/ColumnSorting.d.ts +13 -13
- package/lib/components/MeasurementsTable/ColumnSorting.d.ts.map +1 -1
- package/lib/components/MeasurementsTable/ColumnSorting.js +10 -10
- package/lib/components/MeasurementsTable/MeasurementsTable.d.ts +72 -72
- package/lib/components/MeasurementsTable/MeasurementsTable.d.ts.map +1 -1
- package/lib/components/MeasurementsTable/MeasurementsTable.js +229 -217
- package/lib/components/MeasurementsTable/MeasurementsTable.js.map +1 -1
- package/lib/components/MeasurementsTable/MeasurementsTable.test.d.ts +1 -1
- package/lib/components/MeasurementsTable/MeasurementsTable.test.js +102 -102
- package/lib/components/MeasurementsTable/MeasurementsTableNoldus.d.ts +72 -72
- package/lib/components/MeasurementsTable/MeasurementsTableNoldus.d.ts.map +1 -1
- package/lib/components/MeasurementsTable/MeasurementsTableNoldus.js +193 -193
- package/lib/components/MeasurementsTable/SelectedContext.d.ts +10 -10
- package/lib/components/MeasurementsTable/SelectedContext.js +10 -10
- package/lib/components/MeasurementsTable/TextColumnFilter.d.ts +8 -8
- package/lib/components/MeasurementsTable/TextColumnFilter.d.ts.map +1 -1
- package/lib/components/MeasurementsTable/TextColumnFilter.js +15 -15
- package/lib/components/MeasurementsTable/filters.d.ts +3 -3
- package/lib/components/MeasurementsTable/filters.js +9 -9
- package/lib/components/MeasurementsTable/index.d.ts +2 -2
- package/lib/components/MeasurementsTable/index.js +2 -2
- package/lib/components/ModalMeasurementChooser.d.ts +19 -19
- package/lib/components/ModalMeasurementChooser.js +35 -35
- package/lib/conversion/UnitConversion.d.ts +13 -0
- package/lib/conversion/UnitConversion.d.ts.map +1 -0
- package/lib/conversion/UnitConversion.js +266 -0
- package/lib/conversion/UnitConversion.js.map +1 -0
- package/lib/hooks/useMarkerData.d.ts +6 -4
- package/lib/hooks/useMarkerData.d.ts.map +1 -1
- package/lib/hooks/useMarkerData.js +93 -63
- package/lib/hooks/useMarkerData.js.map +1 -1
- package/lib/hooks/useMeasurement.d.ts +41 -17
- package/lib/hooks/useMeasurement.d.ts.map +1 -1
- package/lib/hooks/useMeasurement.js +41 -41
- package/lib/hooks/useMeasurements.d.ts +11 -11
- package/lib/hooks/useMeasurements.js +22 -22
- package/lib/hooks/useMeasurementsModule.d.ts +20 -20
- package/lib/hooks/useMeasurementsModule.js +12 -12
- package/lib/hooks/useOverlayMeasurementData.d.ts +1 -1
- package/lib/hooks/useOverlayMeasurementData.js +23 -23
- package/lib/hooks/useTimedMeasurementData.d.ts +26 -26
- package/lib/hooks/useTimedMeasurementData.d.ts.map +1 -1
- package/lib/hooks/useTimedMeasurementData.js +125 -125
- package/lib/hooks/useTimedMeasurementData.js.map +1 -1
- package/lib/hooks/useWindowedMeasurementData.d.ts +25 -25
- package/lib/hooks/useWindowedMeasurementData.d.ts.map +1 -1
- package/lib/hooks/useWindowedMeasurementData.js +120 -120
- package/lib/hooks/useWindowedMeasurementData.js.map +1 -1
- package/lib/index.d.ts +15 -14
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +15 -14
- package/lib/index.js.map +1 -1
- package/lib/redux/measurements.slice.d.ts +75 -122
- package/lib/redux/measurements.slice.d.ts.map +1 -1
- package/lib/redux/measurements.slice.js +90 -89
- package/lib/redux/measurements.slice.js.map +1 -1
- package/lib/redux/reducer.d.ts +3 -10
- package/lib/redux/reducer.d.ts.map +1 -1
- package/lib/redux/reducer.js +2 -2
- package/lib/redux/reducer.js.map +1 -1
- package/lib/types.d.ts +93 -93
- package/lib/types.js +51 -51
- package/package.json +7 -10
|
@@ -1,212 +1,343 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { interval } from "rxjs";
|
|
11
|
-
import { map,
|
|
12
|
-
import { webSocket } from "rxjs/webSocket";
|
|
13
|
-
import * as sbf from "../sbf";
|
|
14
|
-
const worker = self;
|
|
15
|
-
/**
|
|
16
|
-
* Checks if a given path is a path to a SBF file.
|
|
17
|
-
* @param p A path.
|
|
18
|
-
* @returns
|
|
19
|
-
*/
|
|
20
|
-
const isSBF = (p) => p.endsWith(".sbf") || p.endsWith(".SBF");
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}));
|
|
128
|
-
|
|
129
|
-
action:
|
|
130
|
-
id,
|
|
131
|
-
params: Object.assign({},
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
this.
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
this.
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { interval, pipe } from "rxjs";
|
|
11
|
+
import { map, tap, retryWhen, delay, delayWhen, first } from "rxjs/operators";
|
|
12
|
+
import { webSocket } from "rxjs/webSocket";
|
|
13
|
+
import * as sbf from "../sbf";
|
|
14
|
+
const worker = self;
|
|
15
|
+
/**
|
|
16
|
+
* Checks if a given path is a path to a SBF file.
|
|
17
|
+
* @param p A path.
|
|
18
|
+
* @returns
|
|
19
|
+
*/
|
|
20
|
+
const isSBF = (p) => p.endsWith(".sbf") || p.endsWith(".SBF");
|
|
21
|
+
/**
|
|
22
|
+
* RxJS operator that filters out values that are responses and match a given id.
|
|
23
|
+
* @param {string} id The id to match.
|
|
24
|
+
*/
|
|
25
|
+
const matchingResponse = (id) => pipe(first((r) => r.id === id));
|
|
26
|
+
let signalViewerDataClientWorker;
|
|
27
|
+
export default class SignalViewerDataClientWorker {
|
|
28
|
+
constructor({ hdfEndpoint, sbfEndpoint }) {
|
|
29
|
+
this.subscription = undefined;
|
|
30
|
+
this.keepAlive = undefined;
|
|
31
|
+
this.postMessage = (message) => {
|
|
32
|
+
// needed for exporting the postmessage in this class, not actually used
|
|
33
|
+
};
|
|
34
|
+
this.onmessage = (message) => {
|
|
35
|
+
// needed for exporting the onmessage in this class, not actually used
|
|
36
|
+
};
|
|
37
|
+
this.fetchMetadata = (file, id) => __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
// If this is a legacy SBF file, use SBF api instead.
|
|
39
|
+
if (isSBF(file))
|
|
40
|
+
return sbf.fetchDataMetadata(file, this.sbfEndpoint);
|
|
41
|
+
//flatten signals from groups to a single depth array that contains all the information per signal
|
|
42
|
+
const handleSignals = (metadata) => {
|
|
43
|
+
let result = [];
|
|
44
|
+
metadata.groups.forEach((group) => {
|
|
45
|
+
group.signals.forEach((signal) => {
|
|
46
|
+
result.push(Object.assign(Object.assign({}, signal), { dataScale: group.dataScale, frequency: signal.sampleRate, min: signal.minY, max: signal.maxY, file, index: [group.name, signal.name] }));
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
return result;
|
|
50
|
+
};
|
|
51
|
+
const observable$ = this.connection$.pipe(matchingResponse(id), map((response) => {
|
|
52
|
+
const endtime = new Date().getTime();
|
|
53
|
+
const _r = response;
|
|
54
|
+
const r = _r.data !== undefined && _r.data.metadata !== undefined
|
|
55
|
+
? handleSignals(_r.data.metadata)
|
|
56
|
+
: [];
|
|
57
|
+
return {
|
|
58
|
+
func: "fetchMetadata",
|
|
59
|
+
response: r,
|
|
60
|
+
id: response.id,
|
|
61
|
+
code: response.code,
|
|
62
|
+
};
|
|
63
|
+
}), retryWhen((errors) => errors.pipe(
|
|
64
|
+
// log error message
|
|
65
|
+
// eslint-disable-next-line no-console
|
|
66
|
+
tap((error) => {
|
|
67
|
+
// if the error is a close event the server crashed on our request, don't retry
|
|
68
|
+
if (error.type === "close") {
|
|
69
|
+
worker.postMessage({
|
|
70
|
+
func: "fetchMetadata",
|
|
71
|
+
id: id,
|
|
72
|
+
response: [],
|
|
73
|
+
code: 500,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
delayWhen(() => interval(500));
|
|
78
|
+
}
|
|
79
|
+
}))));
|
|
80
|
+
const payload = {
|
|
81
|
+
action: "metadata",
|
|
82
|
+
id,
|
|
83
|
+
params: {
|
|
84
|
+
file,
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
this.doRequest(payload);
|
|
88
|
+
try {
|
|
89
|
+
return yield observable$.toPromise();
|
|
90
|
+
}
|
|
91
|
+
catch (err) {
|
|
92
|
+
throw new Error("Something went wrong in websocket connection.");
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
this.fetchMeasurementData = (args, id) => __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
// If this is a legacy measurement, use sbf api instead.
|
|
97
|
+
if (isSBF(args.file)) {
|
|
98
|
+
const options = Object.assign(Object.assign({}, args), { measurements: args.measurements.map((measurement) => {
|
|
99
|
+
return measurement.index.join("/");
|
|
100
|
+
}) });
|
|
101
|
+
return sbf.fetchData(this.sbfEndpoint, options);
|
|
102
|
+
}
|
|
103
|
+
const observable$ = this.connection$.pipe(matchingResponse(id), map((response) => {
|
|
104
|
+
const _r = response;
|
|
105
|
+
return {
|
|
106
|
+
func: "fetchMeasurementData",
|
|
107
|
+
response: _r.data.measurements,
|
|
108
|
+
id: response.id,
|
|
109
|
+
code: _r.code,
|
|
110
|
+
};
|
|
111
|
+
}), retryWhen((errors) => errors.pipe(
|
|
112
|
+
// log error message
|
|
113
|
+
// eslint-disable-next-line no-console
|
|
114
|
+
tap((error) => {
|
|
115
|
+
// if the error is a close event the server crashed on our request, don't retry
|
|
116
|
+
if (error.type === "close") {
|
|
117
|
+
worker.postMessage({
|
|
118
|
+
func: "fetchMeasurementData",
|
|
119
|
+
id: id,
|
|
120
|
+
response: {},
|
|
121
|
+
code: 500,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
delayWhen(() => interval(500));
|
|
126
|
+
}
|
|
127
|
+
}))));
|
|
128
|
+
const payload = {
|
|
129
|
+
action: "data",
|
|
130
|
+
id,
|
|
131
|
+
params: Object.assign({}, args),
|
|
132
|
+
};
|
|
133
|
+
this.doRequest(payload);
|
|
134
|
+
try {
|
|
135
|
+
return yield observable$.toPromise();
|
|
136
|
+
}
|
|
137
|
+
catch (err) {
|
|
138
|
+
throw new Error("Something went wrong in websocket connection.");
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
this.fetchOverlayData = (args, id) => __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
const { overlayData, dataType } = args;
|
|
143
|
+
const observable$ = this.connection$.pipe(matchingResponse(id), map((response) => {
|
|
144
|
+
const _r = response;
|
|
145
|
+
return {
|
|
146
|
+
func: "fetchOverlayData",
|
|
147
|
+
response: _r,
|
|
148
|
+
id: response.id,
|
|
149
|
+
code: _r.code,
|
|
150
|
+
};
|
|
151
|
+
}), retryWhen((errors) => errors.pipe(
|
|
152
|
+
// log error message
|
|
153
|
+
// eslint-disable-next-line no-console
|
|
154
|
+
tap((error) => {
|
|
155
|
+
// if the error is a close event the server crashed on our request, don't retry
|
|
156
|
+
if (error.type === "close") {
|
|
157
|
+
worker.postMessage({
|
|
158
|
+
func: "fetchOverlayData",
|
|
159
|
+
id: id,
|
|
160
|
+
response: {},
|
|
161
|
+
code: 500,
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
delayWhen(() => interval(500));
|
|
166
|
+
}
|
|
167
|
+
}))));
|
|
168
|
+
const payload = {
|
|
169
|
+
action: dataType,
|
|
170
|
+
id,
|
|
171
|
+
params: Object.assign({}, overlayData),
|
|
172
|
+
};
|
|
173
|
+
this.doRequest(payload);
|
|
174
|
+
try {
|
|
175
|
+
return yield observable$.toPromise();
|
|
176
|
+
}
|
|
177
|
+
catch (err) {
|
|
178
|
+
throw new Error(err + "Something went wrong in websocket connection.");
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
this.fetchReqData = (args, id) => __awaiter(this, void 0, void 0, function* () {
|
|
182
|
+
const { markerData, dataType } = args;
|
|
183
|
+
const observable$ = this.connection$.pipe(matchingResponse(id), map((response) => {
|
|
184
|
+
const _r = response;
|
|
185
|
+
return {
|
|
186
|
+
func: "fetchReqData",
|
|
187
|
+
response: _r,
|
|
188
|
+
id: response.id,
|
|
189
|
+
code: _r.code,
|
|
190
|
+
};
|
|
191
|
+
}), retryWhen((errors) => errors.pipe(
|
|
192
|
+
// log error message
|
|
193
|
+
// eslint-disable-next-line no-console
|
|
194
|
+
tap((error) => {
|
|
195
|
+
// if the error is a close event the server crashed on our request, don't retry
|
|
196
|
+
if (error.type === "close") {
|
|
197
|
+
worker.postMessage({
|
|
198
|
+
func: "fetchReqData",
|
|
199
|
+
id: id,
|
|
200
|
+
response: {},
|
|
201
|
+
code: 500,
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
delayWhen(() => interval(500));
|
|
206
|
+
}
|
|
207
|
+
}))));
|
|
208
|
+
const payload = {
|
|
209
|
+
action: dataType,
|
|
210
|
+
id,
|
|
211
|
+
params: Object.assign({}, markerData),
|
|
212
|
+
};
|
|
213
|
+
this.doRequest(payload);
|
|
214
|
+
try {
|
|
215
|
+
return yield observable$.toPromise();
|
|
216
|
+
}
|
|
217
|
+
catch (err) {
|
|
218
|
+
throw new Error(err + "Something went wrong in websocket connection.");
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
// do the websocket request with the given payload
|
|
222
|
+
// make sure we have a confirmed connection, otherwise first wait till we have one
|
|
223
|
+
this.doRequest = (payload) => {
|
|
224
|
+
if (!this.connected) {
|
|
225
|
+
// retry till we have a connection
|
|
226
|
+
const connectedInterval = setInterval(() => {
|
|
227
|
+
if (this.connected) {
|
|
228
|
+
clearInterval(connectedInterval);
|
|
229
|
+
this.connection$.next(payload);
|
|
230
|
+
}
|
|
231
|
+
}, 250);
|
|
232
|
+
}
|
|
233
|
+
else {
|
|
234
|
+
this.connection$.next(payload);
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
this.hdfEndpoint = hdfEndpoint;
|
|
238
|
+
this.sbfEndpoint = sbfEndpoint;
|
|
239
|
+
this.connected = false;
|
|
240
|
+
// Create a webSocket observable. Please read the RxJS documentation for more information about webSocket.
|
|
241
|
+
this._connection$ = webSocket({
|
|
242
|
+
url: this.hdfEndpoint,
|
|
243
|
+
openObserver: {
|
|
244
|
+
next: () => {
|
|
245
|
+
// eslint-disable-next-line no-console
|
|
246
|
+
console.log("Websocket connected");
|
|
247
|
+
this.connected = true;
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
closingObserver: {
|
|
251
|
+
next: () => {
|
|
252
|
+
// eslint-disable-next-line no-console
|
|
253
|
+
console.log("Websocket closed");
|
|
254
|
+
this.connected = false;
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* A cached connection observable.
|
|
261
|
+
*/
|
|
262
|
+
get connection$() {
|
|
263
|
+
if (!this.subscription)
|
|
264
|
+
this.subscription = this._connection$
|
|
265
|
+
.pipe(retryWhen((errors) => errors.pipe(tap((error) => {
|
|
266
|
+
console.error("Websocket connection error", error);
|
|
267
|
+
}), delay(500))))
|
|
268
|
+
.subscribe();
|
|
269
|
+
// We create an interval observable that will emit a keep-alive signal to the HDF endpoint every 5 seconds.
|
|
270
|
+
// The Java server closes the connection otherwise, and this might cause problems.
|
|
271
|
+
if (!this.keepAlive) {
|
|
272
|
+
this.keepAlive = interval(5000)
|
|
273
|
+
.pipe(tap(() => {
|
|
274
|
+
this._connection$.next("keepalive");
|
|
275
|
+
}))
|
|
276
|
+
.subscribe();
|
|
277
|
+
}
|
|
278
|
+
return this._connection$;
|
|
279
|
+
}
|
|
280
|
+
destroy() {
|
|
281
|
+
if (this.keepAlive) {
|
|
282
|
+
this.keepAlive.unsubscribe();
|
|
283
|
+
this.keepAlive = undefined;
|
|
284
|
+
}
|
|
285
|
+
if (this.subscription) {
|
|
286
|
+
this.subscription.unsubscribe();
|
|
287
|
+
this.subscription = undefined;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
// receive messages and internally pass them through to the correct function
|
|
292
|
+
worker.onmessage = (message) => {
|
|
293
|
+
const func = message.data.func;
|
|
294
|
+
const id = message.data.id;
|
|
295
|
+
const args = message.data.args;
|
|
296
|
+
switch (func) {
|
|
297
|
+
case "constructor":
|
|
298
|
+
const hdfEndpoint = args[0];
|
|
299
|
+
const sbfEndpoint = args[1];
|
|
300
|
+
signalViewerDataClientWorker = new SignalViewerDataClientWorker({
|
|
301
|
+
hdfEndpoint,
|
|
302
|
+
sbfEndpoint,
|
|
303
|
+
});
|
|
304
|
+
break;
|
|
305
|
+
case "fetchMetadata":
|
|
306
|
+
const file = args[0];
|
|
307
|
+
signalViewerDataClientWorker.fetchMetadata(file, id).then((response) => {
|
|
308
|
+
// Send to the main thread
|
|
309
|
+
worker.postMessage(response);
|
|
310
|
+
});
|
|
311
|
+
break;
|
|
312
|
+
case "fetchMeasurementData":
|
|
313
|
+
const requestedMeasurements = args[0];
|
|
314
|
+
signalViewerDataClientWorker
|
|
315
|
+
.fetchMeasurementData(requestedMeasurements, id)
|
|
316
|
+
.then((response) => {
|
|
317
|
+
// Send to the main thread
|
|
318
|
+
worker.postMessage(response);
|
|
319
|
+
});
|
|
320
|
+
break;
|
|
321
|
+
case "fetchOverlayData":
|
|
322
|
+
signalViewerDataClientWorker
|
|
323
|
+
.fetchOverlayData(args[0], id)
|
|
324
|
+
.then((response) => {
|
|
325
|
+
// Send to the main thread
|
|
326
|
+
worker.postMessage(response);
|
|
327
|
+
});
|
|
328
|
+
break;
|
|
329
|
+
break;
|
|
330
|
+
case "fetchReqData":
|
|
331
|
+
signalViewerDataClientWorker
|
|
332
|
+
.fetchReqData(args[0], id)
|
|
333
|
+
.then((response) => {
|
|
334
|
+
// Send to the main thread
|
|
335
|
+
worker.postMessage(response);
|
|
336
|
+
});
|
|
337
|
+
break;
|
|
338
|
+
case "destroy":
|
|
339
|
+
signalViewerDataClientWorker.destroy();
|
|
340
|
+
break;
|
|
341
|
+
}
|
|
342
|
+
};
|
|
212
343
|
//# sourceMappingURL=SignalViewerDataClient.worker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignalViewerDataClient.worker.js","sourceRoot":"","sources":["../../../src/client/signalviewer/SignalViewerDataClient.worker.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAgB,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"SignalViewerDataClient.worker.js","sourceRoot":"","sources":["../../../src/client/signalviewer/SignalViewerD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CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface CloseIconProps extends React.HTMLAttributes<HTMLOrSVGElement> {
|
|
3
|
-
color?: string;
|
|
4
|
-
size?: number;
|
|
5
|
-
}
|
|
6
|
-
export declare const CloseIcon: ({ ...props }: CloseIconProps) => React.ReactElement;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface CloseIconProps extends React.HTMLAttributes<HTMLOrSVGElement> {
|
|
3
|
+
color?: string;
|
|
4
|
+
size?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const CloseIcon: ({ ...props }: CloseIconProps) => React.ReactElement;
|
|
7
7
|
//# sourceMappingURL=CloseIcon.d.ts.map
|