@abi-software/mapintegratedvuer 1.20.1 → 1.21.1
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/cypress.config.js +8 -7
- package/dist/ConnectivityGraph-CZMROk9r.js +121 -0
- package/dist/ContentMixin-Vn34n5t2.js +1672 -0
- package/dist/DynamicMarkerMixin-BS6t7w_i.js +50 -0
- package/dist/Flatmap-BejxA0uz.js +193 -0
- package/dist/Iframe-BWbhTjCR.js +18 -0
- package/dist/MultiFlatmap-nlmsH-Ib.js +303 -0
- package/dist/Plot-ChbPsDZX.js +28 -0
- package/dist/Scaffold-C6f7c7Ha.js +308 -0
- package/dist/Simulation-DcJScRYo.js +25 -0
- package/dist/connectivities-UXTqf7_0.js +35743 -0
- package/dist/mapintegratedvuer.js +43234 -3
- package/dist/mapintegratedvuer.umd.cjs +556 -297
- package/dist/style.css +2 -1
- package/eslint.config.js +33 -0
- package/package.json +61 -76
- package/src/assets/fonts.scss +2 -0
- package/src/assets/header-icon.scss +2 -1
- package/src/assets/styles.scss +2 -3
- package/src/components/CustomSplitter.vue +3 -3
- package/src/components/SearchControls.vue +1 -1
- package/src/components/index.js +1 -0
- package/src/components/scripts/simulation_data.js +461 -0
- package/src/components/viewers/Flatmap.vue +11 -7
- package/src/components/viewers/MultiFlatmap.vue +12 -8
- package/src/components.d.ts +6 -2
- package/src/main.js +2 -1
- package/src/mixins/DynamicMarkerMixin.js +3 -3
- package/vite.bundle-build.js +19 -4
- package/vite.config.js +16 -1
- package/babel.config.js +0 -0
- package/dist/ConnectivityGraph-C2SH21O2.js +0 -123
- package/dist/ContentMixin-DyNQa5V5.js +0 -1725
- package/dist/Flatmap-2O4GdIZV.js +0 -203
- package/dist/Iframe-ComVJ_Ev.js +0 -20
- package/dist/MultiFlatmap-oVdJqKEz.js +0 -317
- package/dist/Plot-CYyVTjHQ.js +0 -25
- package/dist/Scaffold-DXGZqxdu.js +0 -305
- package/dist/Simulation-DNOubbSn.js +0 -28
- package/dist/index-BkejiyeA.js +0 -79223
- package/dist/style-3VbUVJif.js +0 -57
- package/static.json +0 -7
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
let minF = undefined;
|
|
2
|
+
let maxF = undefined;
|
|
3
|
+
let minVol = undefined;
|
|
4
|
+
let maxVol = undefined;
|
|
5
|
+
|
|
6
|
+
const fvData = {
|
|
7
|
+
"compartments": [
|
|
8
|
+
{
|
|
9
|
+
"flow": 0.049699,
|
|
10
|
+
"name": "RUL Anterior",
|
|
11
|
+
"number": 1,
|
|
12
|
+
"volumes": [
|
|
13
|
+
{
|
|
14
|
+
"time": 1.0,
|
|
15
|
+
"volume": 181987.21791976015
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"time": 3.0,
|
|
19
|
+
"volume": 190654.20796455297
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"time": 5.0,
|
|
23
|
+
"volume": 197903.5873118482
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"flow": 0.0612,
|
|
29
|
+
"name": "RUL Posterior",
|
|
30
|
+
"number": 2,
|
|
31
|
+
"volumes": [
|
|
32
|
+
{
|
|
33
|
+
"time": 1.0,
|
|
34
|
+
"volume": 201042.2999957783
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"time": 3.0,
|
|
38
|
+
"volume": 223166.3550326552
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"time": 5.0,
|
|
42
|
+
"volume": 224107.48977724495
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"flow": 0.082407,
|
|
48
|
+
"name": "RUL Apical",
|
|
49
|
+
"number": 3,
|
|
50
|
+
"volumes": [
|
|
51
|
+
{
|
|
52
|
+
"time": 1.0,
|
|
53
|
+
"volume": 245471.83628595909
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"time": 3.0,
|
|
57
|
+
"volume": 257765.65591976934
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"time": 5.0,
|
|
61
|
+
"volume": 268162.69688902283
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"flow": 0.046921,
|
|
67
|
+
"name": "RML Lateral",
|
|
68
|
+
"number": 4,
|
|
69
|
+
"volumes": [
|
|
70
|
+
{
|
|
71
|
+
"time": 1.0,
|
|
72
|
+
"volume": 136749.2302777965
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"time": 3.0,
|
|
76
|
+
"volume": 142354.54619401656
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"time": 5.0,
|
|
80
|
+
"volume": 144871.90605963918
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"flow": 0.041519,
|
|
86
|
+
"name": "RML Medial",
|
|
87
|
+
"number": 5,
|
|
88
|
+
"volumes": [
|
|
89
|
+
{
|
|
90
|
+
"time": 1.0,
|
|
91
|
+
"volume": 149373.3982901215
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"time": 3.0,
|
|
95
|
+
"volume": 157328.6444732329
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"time": 5.0,
|
|
99
|
+
"volume": 158140.25438088493
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"flow": 0.063307,
|
|
105
|
+
"name": "RLL Posterior",
|
|
106
|
+
"number": 6,
|
|
107
|
+
"volumes": [
|
|
108
|
+
{
|
|
109
|
+
"time": 1.0,
|
|
110
|
+
"volume": 186775.46800209297
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"time": 3.0,
|
|
114
|
+
"volume": 192966.52104661157
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"time": 5.0,
|
|
118
|
+
"volume": 205857.97557974615
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"flow": 0.065394,
|
|
124
|
+
"name": "RLL Medial",
|
|
125
|
+
"number": 7,
|
|
126
|
+
"volumes": [
|
|
127
|
+
{
|
|
128
|
+
"time": 1.0,
|
|
129
|
+
"volume": 194824.7466953374
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"time": 3.0,
|
|
133
|
+
"volume": 217874.6619392152
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"time": 5.0,
|
|
137
|
+
"volume": 217381.52321902165
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"flow": 0.056798,
|
|
143
|
+
"name": "RLL Anterior",
|
|
144
|
+
"number": 8,
|
|
145
|
+
"volumes": [
|
|
146
|
+
{
|
|
147
|
+
"time": 1.0,
|
|
148
|
+
"volume": 215680.0182455645
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"time": 3.0,
|
|
152
|
+
"volume": 219453.77944698493
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"time": 5.0,
|
|
156
|
+
"volume": 231581.60138050313
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"flow": 0.081373,
|
|
162
|
+
"name": "RLL Superior",
|
|
163
|
+
"number": 9,
|
|
164
|
+
"volumes": [
|
|
165
|
+
{
|
|
166
|
+
"time": 1.0,
|
|
167
|
+
"volume": 244625.5581985565
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"time": 3.0,
|
|
171
|
+
"volume": 266792.0850557373
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"time": 5.0,
|
|
175
|
+
"volume": 284087.3333850801
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"flow": 0.056684,
|
|
181
|
+
"name": "LUL Posterior",
|
|
182
|
+
"number": 10,
|
|
183
|
+
"volumes": [
|
|
184
|
+
{
|
|
185
|
+
"time": 1.0,
|
|
186
|
+
"volume": 172196.7437707655
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"time": 3.0,
|
|
190
|
+
"volume": 181443.25253755006
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"time": 5.0,
|
|
194
|
+
"volume": 191012.60480114556
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"flow": 0.038741,
|
|
200
|
+
"name": "LUL Anterior",
|
|
201
|
+
"number": 11,
|
|
202
|
+
"volumes": [
|
|
203
|
+
{
|
|
204
|
+
"time": 1.0,
|
|
205
|
+
"volume": 167290.43470213015
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"time": 3.0,
|
|
209
|
+
"volume": 181601.44836610503
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"time": 5.0,
|
|
213
|
+
"volume": 186127.32231959977
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"flow": 0.038449,
|
|
219
|
+
"name": "LUL Lingular",
|
|
220
|
+
"number": 12,
|
|
221
|
+
"volumes": [
|
|
222
|
+
{
|
|
223
|
+
"time": 1.0,
|
|
224
|
+
"volume": 141906.787889736
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"time": 3.0,
|
|
228
|
+
"volume": 141671.55047498783
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"time": 5.0,
|
|
232
|
+
"volume": 152307.21920357717
|
|
233
|
+
}
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"flow": 0.055762,
|
|
238
|
+
"name": "LUL Apical",
|
|
239
|
+
"number": 13,
|
|
240
|
+
"volumes": [
|
|
241
|
+
{
|
|
242
|
+
"time": 1.0,
|
|
243
|
+
"volume": 218466.22444789423
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"time": 3.0,
|
|
247
|
+
"volume": 251686.08493242075
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"time": 5.0,
|
|
251
|
+
"volume": 250175.1790429858
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"flow": 0.045985,
|
|
257
|
+
"name": "LLL Posterior",
|
|
258
|
+
"number": 14,
|
|
259
|
+
"volumes": [
|
|
260
|
+
{
|
|
261
|
+
"time": 1.0,
|
|
262
|
+
"volume": 138039.9756600753
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"time": 3.0,
|
|
266
|
+
"volume": 137909.5791278306
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"time": 5.0,
|
|
270
|
+
"volume": 160653.0149818861
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"flow": 0.057459,
|
|
276
|
+
"name": "LLL Superior",
|
|
277
|
+
"number": 15,
|
|
278
|
+
"volumes": [
|
|
279
|
+
{
|
|
280
|
+
"time": 1.0,
|
|
281
|
+
"volume": 193934.96452631807
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"time": 3.0,
|
|
285
|
+
"volume": 218445.44410386705
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"time": 5.0,
|
|
289
|
+
"volume": 220963.58880308812
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"flow": 0.053836,
|
|
295
|
+
"name": "LLL Medial",
|
|
296
|
+
"number": 16,
|
|
297
|
+
"volumes": [
|
|
298
|
+
{
|
|
299
|
+
"time": 1.0,
|
|
300
|
+
"volume": 201521.12178046367
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"time": 3.0,
|
|
304
|
+
"volume": 233287.44183763085
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"time": 5.0,
|
|
308
|
+
"volume": 203887.33003463238
|
|
309
|
+
}
|
|
310
|
+
]
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"flow": 0.051704,
|
|
314
|
+
"name": "LLL Anterior",
|
|
315
|
+
"number": 17,
|
|
316
|
+
"volumes": [
|
|
317
|
+
{
|
|
318
|
+
"time": 1.0,
|
|
319
|
+
"volume": 188226.65055088204
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"time": 3.0,
|
|
323
|
+
"volume": 189234.8102624248
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"time": 5.0,
|
|
327
|
+
"volume": 211763.78024920568
|
|
328
|
+
}
|
|
329
|
+
]
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"flow": 0.052762,
|
|
333
|
+
"name": "LLL Lateral",
|
|
334
|
+
"number": 18,
|
|
335
|
+
"volumes": [
|
|
336
|
+
{
|
|
337
|
+
"time": 1.0,
|
|
338
|
+
"volume": 157340.55375980627
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"time": 3.0,
|
|
342
|
+
"volume": 160912.90618797182
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"time": 5.0,
|
|
346
|
+
"volume": 193000.8440869187
|
|
347
|
+
}
|
|
348
|
+
]
|
|
349
|
+
}
|
|
350
|
+
],
|
|
351
|
+
"left lung": {
|
|
352
|
+
"flow": 0.45138,
|
|
353
|
+
"sum compartment flow": 0.45138199999999995,
|
|
354
|
+
"volumes": [
|
|
355
|
+
{
|
|
356
|
+
"sum compartment volume": 1578923.4570880714,
|
|
357
|
+
"time": 1.0,
|
|
358
|
+
"volume": 3335453.2309989794
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"sum compartment volume": 1696192.517830789,
|
|
362
|
+
"time": 3.0,
|
|
363
|
+
"volume": 3564548.974903552
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"sum compartment volume": 1769890.8835230393,
|
|
367
|
+
"time": 5.0,
|
|
368
|
+
"volume": 3701985.251506051
|
|
369
|
+
}
|
|
370
|
+
]
|
|
371
|
+
},
|
|
372
|
+
"right lung": {
|
|
373
|
+
"flow": 0.54862,
|
|
374
|
+
"sum compartment flow": 0.5486179999999999,
|
|
375
|
+
"volumes": [
|
|
376
|
+
{
|
|
377
|
+
"sum compartment volume": 1756529.773910967,
|
|
378
|
+
"time": 1.0,
|
|
379
|
+
"volume": 3335453.2309989794
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"sum compartment volume": 1868356.4570727758,
|
|
383
|
+
"time": 3.0,
|
|
384
|
+
"volume": 3564548.974903552
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"sum compartment volume": 1932094.367982991,
|
|
388
|
+
"time": 5.0,
|
|
389
|
+
"volume": 3701985.251506051
|
|
390
|
+
}
|
|
391
|
+
]
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
const getFlowAndVolume = (compartment, time) => {
|
|
396
|
+
if (compartment) {
|
|
397
|
+
const entry = fvData.compartments.find(
|
|
398
|
+
element => element.name === compartment);
|
|
399
|
+
if (!entry) return {};
|
|
400
|
+
|
|
401
|
+
const min = 1.0, max = 5.0;
|
|
402
|
+
const range = max - min;
|
|
403
|
+
const nT = time / 100.0 * range + min;
|
|
404
|
+
const v3 = entry.volumes.find(element => element.time === 3.0);
|
|
405
|
+
let volume = 0;
|
|
406
|
+
const flow = entry.flow;
|
|
407
|
+
if (1.0 <= nT && nT <= 3.0) {
|
|
408
|
+
const v1 = entry.volumes.find(element => element.time === 1.0);
|
|
409
|
+
const ratio = (nT - 1.0) / 2.0;
|
|
410
|
+
volume = (1.0 - ratio) * v1.volume + ratio * v3.volume;
|
|
411
|
+
} else {
|
|
412
|
+
const v5 = entry.volumes.find(element => element.time === 5.0);
|
|
413
|
+
const ratio = (nT - 3.0) / 2.0;
|
|
414
|
+
volume = (1.0 - ratio) * v3.volume + ratio * v5.volume;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
return { flow, volume };
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
const calculateMinMax = () => {
|
|
422
|
+
if (minVol === undefined) {
|
|
423
|
+
fvData.compartments.forEach((ele) => {
|
|
424
|
+
const vol = ele.volumes.find(v => v.time === 1.0).volume;
|
|
425
|
+
const flow = ele.flow;
|
|
426
|
+
console.log(vol, flow)
|
|
427
|
+
if (minVol === undefined || vol < minVol) {
|
|
428
|
+
minVol = vol;
|
|
429
|
+
}
|
|
430
|
+
if (maxVol === undefined || vol > maxVol) {
|
|
431
|
+
maxVol = vol;
|
|
432
|
+
}
|
|
433
|
+
if (minF === undefined || flow < minF) {
|
|
434
|
+
minF = flow;
|
|
435
|
+
}
|
|
436
|
+
if (maxF === undefined || flow > maxF) {
|
|
437
|
+
maxF = flow;
|
|
438
|
+
}
|
|
439
|
+
})
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
const getMockData = (compartment) => {
|
|
444
|
+
if (compartment) {
|
|
445
|
+
const entry = fvData.compartments.find(
|
|
446
|
+
element => element.name === compartment);
|
|
447
|
+
if (!entry) return undefined;
|
|
448
|
+
calculateMinMax();
|
|
449
|
+
const vol = entry.volumes.find(v => v.time === 1.0).volume;
|
|
450
|
+
const flow = entry.flow;
|
|
451
|
+
const i = (vol - minVol) / (maxVol - minVol) * 9 + 1;
|
|
452
|
+
const e = (flow - minF) / (maxF - minF) * 9 + 1;
|
|
453
|
+
|
|
454
|
+
return { "Inspiration time": i, "Expiration time": e };
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export {
|
|
459
|
+
getFlowAndVolume,
|
|
460
|
+
getMockData,
|
|
461
|
+
}
|
|
@@ -204,7 +204,9 @@ export default {
|
|
|
204
204
|
}
|
|
205
205
|
},
|
|
206
206
|
changeViewingMode: function (modeName) {
|
|
207
|
-
this.$refs.flatmap
|
|
207
|
+
if (this.$refs.flatmap) {
|
|
208
|
+
this.$refs.flatmap.changeViewingMode(modeName);
|
|
209
|
+
}
|
|
208
210
|
},
|
|
209
211
|
updateViewerSettings: function () {
|
|
210
212
|
const {
|
|
@@ -218,12 +220,14 @@ export default {
|
|
|
218
220
|
|
|
219
221
|
const currentFlatmap = this.$refs.flatmap;
|
|
220
222
|
|
|
221
|
-
currentFlatmap
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
223
|
+
if (currentFlatmap) {
|
|
224
|
+
currentFlatmap.changeViewingMode(viewingMode);
|
|
225
|
+
currentFlatmap.setFlightPath3D(flightPathDisplay);
|
|
226
|
+
currentFlatmap.setColour(organsDisplay);
|
|
227
|
+
currentFlatmap.setOutlines(outlinesDisplay);
|
|
228
|
+
currentFlatmap.backgroundChangeCallback(backgroundDisplay);
|
|
229
|
+
currentFlatmap.setConnectionType(connectionType);
|
|
230
|
+
}
|
|
227
231
|
},
|
|
228
232
|
setVisibilityFilter: function (payload) {
|
|
229
233
|
if (this?.alive) {
|
|
@@ -335,8 +335,10 @@ export default {
|
|
|
335
335
|
* Change the view mode of the current flatmap
|
|
336
336
|
*/
|
|
337
337
|
changeViewingMode: function (modeName) {
|
|
338
|
-
const flatmap = this.$refs.multiflatmap
|
|
339
|
-
flatmap
|
|
338
|
+
const flatmap = this.$refs.multiflatmap?.getCurrentFlatmap();
|
|
339
|
+
if (flatmap) {
|
|
340
|
+
flatmap.changeViewingMode(modeName);
|
|
341
|
+
}
|
|
340
342
|
},
|
|
341
343
|
showConnectivity: function (payload) {
|
|
342
344
|
if (this?.alive && this.flatmapReady && this.$refs.multiflatmap) {
|
|
@@ -387,12 +389,14 @@ export default {
|
|
|
387
389
|
if (this.flatmapReady) {
|
|
388
390
|
const currentFlatmap = this.$refs.multiflatmap.getCurrentFlatmap();
|
|
389
391
|
|
|
390
|
-
currentFlatmap
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
392
|
+
if (currentFlatmap) {
|
|
393
|
+
currentFlatmap.changeViewingMode(viewingMode);
|
|
394
|
+
currentFlatmap.setFlightPath3D(flightPathDisplay);
|
|
395
|
+
currentFlatmap.setColour(organsDisplay);
|
|
396
|
+
currentFlatmap.setOutlines(outlinesDisplay);
|
|
397
|
+
currentFlatmap.backgroundChangeCallback(backgroundDisplay);
|
|
398
|
+
currentFlatmap.setConnectionType(connectionType);
|
|
399
|
+
}
|
|
396
400
|
}
|
|
397
401
|
},
|
|
398
402
|
setVisibilityFilter: function (payload) {
|
package/src/components.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
/* prettier-ignore */
|
|
3
2
|
// @ts-nocheck
|
|
3
|
+
// biome-ignore lint: disable
|
|
4
|
+
// oxlint-disable
|
|
5
|
+
// ------
|
|
4
6
|
// Generated by unplugin-vue-components
|
|
5
7
|
// Read more: https://github.com/vuejs/core/pull/3399
|
|
8
|
+
|
|
6
9
|
export {}
|
|
7
10
|
|
|
11
|
+
/* prettier-ignore */
|
|
8
12
|
declare module 'vue' {
|
|
9
13
|
export interface GlobalComponents {
|
|
10
14
|
CellDLViewer: typeof import('./components/viewers/CellDLViewer.vue')['default']
|
|
@@ -58,7 +62,7 @@ declare module 'vue' {
|
|
|
58
62
|
SplitDialog: typeof import('./components/SplitDialog.vue')['default']
|
|
59
63
|
SplitFlow: typeof import('./components/SplitFlow.vue')['default']
|
|
60
64
|
}
|
|
61
|
-
export interface
|
|
65
|
+
export interface GlobalDirectives {
|
|
62
66
|
vLoading: typeof import('element-plus/es')['ElLoadingDirective']
|
|
63
67
|
}
|
|
64
68
|
}
|
package/src/main.js
CHANGED
|
@@ -4,6 +4,7 @@ import { createPinia } from 'pinia'
|
|
|
4
4
|
import * as VueRouter from 'vue-router'
|
|
5
5
|
import App from './App.vue'
|
|
6
6
|
import { useMainStore } from './stores/index'
|
|
7
|
+
import './assets/fonts.scss'
|
|
7
8
|
|
|
8
9
|
const routes = [
|
|
9
10
|
{ path: '/' },
|
|
@@ -29,4 +30,4 @@ if (mainStore && token) {
|
|
|
29
30
|
mainStore.setUserToken(token.split("=")[1])
|
|
30
31
|
}
|
|
31
32
|
|
|
32
|
-
app.mount('#app')
|
|
33
|
+
app.mount('#app')
|
|
@@ -9,7 +9,7 @@ const removeDuplicates = function (arrayOfAnything) {
|
|
|
9
9
|
JSON.parse(e)
|
|
10
10
|
)
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
/* eslint-disable no-alert, no-console */
|
|
14
14
|
export default {
|
|
15
15
|
computed: {
|
|
@@ -43,8 +43,8 @@ export default {
|
|
|
43
43
|
let markers = this.settingsStore.globalSettings.displayMarkers ? this.settingsStore.markers : [];
|
|
44
44
|
markers = removeDuplicates(markers);
|
|
45
45
|
flatmapImp.clearMarkers();
|
|
46
|
-
flatmapImp.
|
|
47
|
-
flatmapImp.
|
|
46
|
+
flatmapImp.clearClusteredAnatomicalMarkers();
|
|
47
|
+
flatmapImp.addClusteredAnatomicalMarkers(markers);
|
|
48
48
|
|
|
49
49
|
// Set the featured markers
|
|
50
50
|
if (this.entry.type === "MultiFlatmap") {
|
package/vite.bundle-build.js
CHANGED
|
@@ -7,13 +7,23 @@ export default defineConfig((configEnv) => {
|
|
|
7
7
|
const config = rootConfig(configEnv);
|
|
8
8
|
config.build = {
|
|
9
9
|
lib: {
|
|
10
|
-
entry: path.resolve(
|
|
10
|
+
entry: path.resolve(import.meta.dirname, "./src/components/index.js"),
|
|
11
11
|
name: "MapintegratedVuer",
|
|
12
12
|
fileName: "mapintegratedvuer",
|
|
13
13
|
},
|
|
14
14
|
rollupOptions: {
|
|
15
|
-
external: [
|
|
16
|
-
"
|
|
15
|
+
external: [
|
|
16
|
+
"vue",
|
|
17
|
+
"pinia",
|
|
18
|
+
"@abi-software/flatmapvuer",
|
|
19
|
+
"@abi-software/plotvuer",
|
|
20
|
+
"@abi-software/scaffoldvuer",
|
|
21
|
+
"@abi-software/simulationvuer",
|
|
22
|
+
"@abi-software/flatmapvuer/dist/style.css",
|
|
23
|
+
"@abi-software/plotvuer/dist/style.css",
|
|
24
|
+
"@abi-software/scaffoldvuer/dist/style.css",
|
|
25
|
+
"@abi-software/simulationvuer/dist/style.css",
|
|
26
|
+
],
|
|
17
27
|
output: {
|
|
18
28
|
globals: {
|
|
19
29
|
vue: "Vue",
|
|
@@ -23,9 +33,14 @@ export default defineConfig((configEnv) => {
|
|
|
23
33
|
"@abi-software/scaffoldvuer": "scaffoldvuer",
|
|
24
34
|
"@abi-software/simulationvuer": "simulationvuer",
|
|
25
35
|
},
|
|
36
|
+
// keep css output name stable for the "./dist/style.css" export/import paths
|
|
37
|
+
assetFileNames: (assetInfo) =>
|
|
38
|
+
assetInfo.name?.endsWith(".css")
|
|
39
|
+
? "style.css"
|
|
40
|
+
: "assets/[name][extname]",
|
|
26
41
|
},
|
|
27
42
|
},
|
|
28
43
|
};
|
|
29
|
-
|
|
44
|
+
|
|
30
45
|
return config;
|
|
31
46
|
})
|
package/vite.config.js
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
1
3
|
import { defineConfig } from "vite";
|
|
2
4
|
import vue from "@vitejs/plugin-vue";
|
|
3
5
|
import Components from "unplugin-vue-components/vite";
|
|
4
6
|
import { ElementPlusResolver } from "unplugin-vue-components/resolvers";
|
|
5
7
|
|
|
8
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
const pathSrc = path.resolve(__dirname, "./src");
|
|
10
|
+
|
|
6
11
|
// https://vitejs.dev/config/
|
|
7
12
|
export default defineConfig(({ command, mode }) => {
|
|
8
13
|
const config = {
|
|
9
14
|
css: {
|
|
10
15
|
preprocessorOptions: {
|
|
11
16
|
scss: {
|
|
12
|
-
|
|
17
|
+
api: 'modern-compiler',
|
|
18
|
+
additionalData: `@use '@/assets/styles' as *;`,
|
|
13
19
|
},
|
|
14
20
|
},
|
|
15
21
|
},
|
|
@@ -36,11 +42,20 @@ export default defineConfig(({ command, mode }) => {
|
|
|
36
42
|
optimizeDeps: {
|
|
37
43
|
exclude: ["vue-router"],
|
|
38
44
|
},
|
|
45
|
+
resolve: {
|
|
46
|
+
alias: {
|
|
47
|
+
"@": pathSrc,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
39
50
|
};
|
|
40
51
|
|
|
41
52
|
if (command === "serve") {
|
|
42
53
|
config.server = {
|
|
43
54
|
port: 8081,
|
|
55
|
+
headers: {
|
|
56
|
+
"Cross-Origin-Opener-Policy": "same-origin",
|
|
57
|
+
"Cross-Origin-Embedder-Policy": "credentialless",
|
|
58
|
+
},
|
|
44
59
|
};
|
|
45
60
|
config.define = {
|
|
46
61
|
"process.env.HTTP_PROXY": 8081,
|
package/babel.config.js
DELETED
|
File without changes
|