@ohif/app 3.8.0-beta.5 → 3.8.0-beta.51

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 (55) hide show
  1. package/dist/{12.bundle.1c0fcebb2e63f538b03b.js → 12.bundle.505ff8d33e3b91db6c4b.js} +9 -11
  2. package/dist/{125.bundle.253395f320b72180da63.js → 125.bundle.df666cb677e5a8982157.js} +4 -5
  3. package/dist/{663.bundle.68a67d3504dc24cccc1a.js → 170.bundle.3364dca0af95fde51ec6.js} +97 -89
  4. package/dist/{181.bundle.2ddc6f90740895a3949c.js → 181.bundle.aff453c348111303ceac.js} +107 -74
  5. package/dist/181.css +1 -1
  6. package/dist/{370.bundle.085badd6055e8feea84f.js → 185.bundle.892c8cbfeaaa14540821.js} +338 -209
  7. package/dist/{19.bundle.05ccf775cb70682dfcdf.js → 19.bundle.15ee26f7912d361e90b6.js} +127 -136
  8. package/dist/{99.bundle.51efd3493cd1de6bf63c.js → 199.bundle.a6fc393364e32b43a307.js} +215 -162
  9. package/dist/202.bundle.495cba6bbee744cf8f72.js +18239 -0
  10. package/dist/20fc4c659b85ccd2a9c0.wasm +0 -0
  11. package/dist/{220.bundle.f7e1c96c94245e70f2be.js → 223.bundle.d4ac6ef2cfe47a9c4afc.js} +4422 -3671
  12. package/dist/{23.bundle.e008ad788170f2ed5569.js → 23.bundle.9d989522a6e4fdcb9c72.js} +1 -1
  13. package/dist/{250.bundle.8084960e3318cda37317.js → 250.bundle.577da106dd763c7bf9d0.js} +22 -27
  14. package/dist/{281.bundle.64640869327edc0d2cae.js → 281.bundle.849a5e58fb2c0a9012dc.js} +23 -25
  15. package/dist/{82.bundle.9e269153bafc15562988.js → 290.bundle.744ac8d04daee807702f.js} +1244 -695
  16. package/dist/{359.bundle.e2f5680a854894c32944.js → 359.bundle.59878f46325c60f5d603.js} +27 -30
  17. package/dist/{410.bundle.8bb12b01e1f838340950.js → 410.bundle.ac46ff16910fa2785bcc.js} +24 -28
  18. package/dist/{417.bundle.af0a207c29b109f84159.js → 417.bundle.5c66801d23d0e98c00e6.js} +2 -2
  19. package/dist/{451.bundle.9fd36f52ff69594f0669.js → 451.bundle.311cd3be9916e08450e9.js} +28 -41
  20. package/dist/{221.bundle.da7732c6f158b6f2b0d8.js → 466.bundle.43f3b29a2e1665bb9a65.js} +161 -151
  21. package/dist/{471.bundle.b3d77b83b1593c09a504.js → 471.bundle.eeb78105b59e688832a6.js} +31 -35
  22. package/dist/{788.bundle.428c065311327135d817.js → 483.bundle.3a3d61f78d5f1f8ad574.js} +131 -180
  23. package/dist/{506.bundle.c3d01c4b6cc01096ce9e.js → 506.bundle.97b3dd0fd0f4467dc21c.js} +13 -18
  24. package/dist/{530.bundle.a03b6f942ace3e1baa1e.js → 530.bundle.f904325ef4195d69ac0e.js} +10 -3
  25. package/dist/{613.bundle.de79995392c3fd2e9637.js → 613.bundle.72d635ed76fa208309f7.js} +76 -50
  26. package/dist/{774.bundle.4b2dc46a35012b898e1a.js → 661.bundle.949c984fe2f9f753b65c.js} +1851 -8944
  27. package/dist/{686.bundle.dccef1f36e4bc79bcc48.js → 686.bundle.62c827fe4f0d054c164e.js} +4 -5
  28. package/dist/{687.bundle.763e03b2624b6cc03ad2.js → 687.bundle.a0c6c77073595745e58e.js} +19 -35
  29. package/dist/{342.bundle.22d2df5cf6d83b24acee.js → 738.bundle.bf1d2c76e385a091999d.js} +938 -571
  30. package/dist/{814.bundle.d45ba7f8b856fbd4e75d.js → 814.bundle.477d51b23a2fe79a5b96.js} +9 -11
  31. package/dist/{822.bundle.891f2e57b1b7bc2f4cb4.js → 822.bundle.8b745e28bc9eb9afbc61.js} +14 -16
  32. package/dist/{757.bundle.ec8301d8e70d2b990f65.js → 831.bundle.127a3064e8844d6d2c82.js} +1 -368
  33. package/dist/{886.bundle.d5116d9b8ea4964b68a0.js → 886.bundle.94a4536167d0f8cae1ae.js} +19 -23
  34. package/dist/95.bundle.2236101be3cc36b322e8.js +8769 -0
  35. package/dist/{236.bundle.09d155c6f44b5a44e4bf.js → 965.bundle.5a31aeb079b7e72cec9c.js} +104 -126
  36. package/dist/app.bundle.css +11 -11
  37. package/dist/{app.bundle.671d2bb084d88c0cf3b7.js → app.bundle.ef06991fb9bbafce36ed.js} +185194 -61390
  38. package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
  39. package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
  40. package/dist/{dicom-microscopy-viewer.bundle.2c146384eb9466d02ff8.js → dicom-microscopy-viewer.bundle.a7d5060eead13771e784.js} +1 -1
  41. package/dist/index.html +1 -1
  42. package/dist/{index.worker.e62ecca63f1a2e124230.worker.js → index.worker.64c896c4316fcd506666.worker.js} +2 -2
  43. package/dist/index.worker.64c896c4316fcd506666.worker.js.map +1 -0
  44. package/dist/serve.json +12 -0
  45. package/dist/sw.js +1 -1
  46. package/package.json +21 -21
  47. package/dist/202.bundle.d3490836f71e001dd30f.js +0 -6336
  48. package/dist/604.bundle.a51f83e64004bca5f497.js +0 -1848
  49. package/dist/743.bundle.489f7df3a089d4d374e1.js +0 -78007
  50. package/dist/75788f12450d4c5ed494.wasm +0 -0
  51. package/dist/775.bundle.2285e7e0e67878948c0d.js +0 -1009
  52. package/dist/957.bundle.9ea4506963ef8b2d84ba.js +0 -30077
  53. package/dist/index.worker.e62ecca63f1a2e124230.worker.js.map +0 -1
  54. /package/dist/{82.css → 290.css} +0 -0
  55. /package/dist/{221.css → 466.css} +0 -0
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- (self["webpackChunk"] = self["webpackChunk"] || []).push([[613],{
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[613],{
3
3
 
4
4
  /***/ 32613:
5
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
@@ -20,8 +20,8 @@ const package_namespaceObject = JSON.parse('{"u2":"@ohif/mode-segmentation"}');
20
20
 
21
21
  const id = package_namespaceObject.u2;
22
22
 
23
- // EXTERNAL MODULE: ../../ui/src/index.js + 485 modules
24
- var ui_src = __webpack_require__(71783);
23
+ // EXTERNAL MODULE: ../../ui/src/index.js + 487 modules
24
+ var ui_src = __webpack_require__(18414);
25
25
  ;// CONCATENATED MODULE: ../../../modes/segmentation/src/toolbarButtons.ts
26
26
 
27
27
 
@@ -220,8 +220,8 @@ const toolbarButtons = [
220
220
  commandName: 'flipViewportHorizontal',
221
221
  commandOptions: {},
222
222
  context: 'CORNERSTONE'
223
- }], 'Flip Horizontal'), _createToggleButton('StackImageSync', 'link', 'Stack Image Sync', [{
224
- commandName: 'toggleStackImageSync',
223
+ }], 'Flip Horizontal'), _createToggleButton('ImageSliceSync', 'link', 'Stack Image Sync', [{
224
+ commandName: 'toggleImageSliceSync',
225
225
  commandOptions: {},
226
226
  context: 'CORNERSTONE'
227
227
  }]), _createToggleButton('ReferenceLines', 'tool-referenceLines',
@@ -258,22 +258,6 @@ const toolbarButtons = [
258
258
  }];
259
259
  /* harmony default export */ const src_toolbarButtons = (toolbarButtons);
260
260
  ;// CONCATENATED MODULE: ../../../modes/segmentation/src/initToolGroups.ts
261
- const brushInstanceNames = {
262
- CircularBrush: 'CircularBrush',
263
- CircularEraser: 'CircularEraser',
264
- SphereBrush: 'SphereBrush',
265
- SphereEraser: 'SphereEraser',
266
- ThresholdCircularBrush: 'ThresholdCircularBrush',
267
- ThresholdSphereBrush: 'ThresholdSphereBrush'
268
- };
269
- const brushStrategies = {
270
- CircularBrush: 'FILL_INSIDE_CIRCLE',
271
- CircularEraser: 'ERASE_INSIDE_CIRCLE',
272
- SphereBrush: 'FILL_INSIDE_SPHERE',
273
- SphereEraser: 'ERASE_INSIDE_SPHERE',
274
- ThresholdCircularBrush: 'THRESHOLD_INSIDE_CIRCLE',
275
- ThresholdSphereBrush: 'THRESHOLD_INSIDE_SPHERE'
276
- };
277
261
  function createTools(utilityModule) {
278
262
  const {
279
263
  toolNames,
@@ -299,13 +283,53 @@ function createTools(utilityModule) {
299
283
  toolName: toolNames.StackScrollMouseWheel,
300
284
  bindings: []
301
285
  }],
302
- passive: Object.keys(brushInstanceNames).map(brushName => ({
303
- toolName: brushName,
286
+ passive: [{
287
+ toolName: 'CircularBrush',
288
+ parentTool: 'Brush',
289
+ configuration: {
290
+ activeStrategy: 'FILL_INSIDE_CIRCLE'
291
+ }
292
+ }, {
293
+ toolName: 'CircularEraser',
304
294
  parentTool: 'Brush',
305
295
  configuration: {
306
- activeStrategy: brushStrategies[brushName]
296
+ activeStrategy: 'ERASE_INSIDE_CIRCLE'
307
297
  }
308
- })).concat([{
298
+ }, {
299
+ toolName: 'SphereBrush',
300
+ parentTool: 'Brush',
301
+ configuration: {
302
+ activeStrategy: 'FILL_INSIDE_SPHERE'
303
+ }
304
+ }, {
305
+ toolName: 'SphereEraser',
306
+ parentTool: 'Brush',
307
+ configuration: {
308
+ activeStrategy: 'ERASE_INSIDE_SPHERE'
309
+ }
310
+ }, {
311
+ toolName: 'ThresholdCircularBrush',
312
+ parentTool: 'Brush',
313
+ configuration: {
314
+ activeStrategy: 'THRESHOLD_INSIDE_CIRCLE',
315
+ strategySpecificConfiguration: {
316
+ THRESHOLD: {
317
+ threshold: [-500, 500]
318
+ }
319
+ }
320
+ }
321
+ }, {
322
+ toolName: 'ThresholdSphereBrush',
323
+ parentTool: 'Brush',
324
+ configuration: {
325
+ activeStrategy: 'THRESHOLD_INSIDE_SPHERE',
326
+ strategySpecificConfiguration: {
327
+ THRESHOLD: {
328
+ threshold: [-500, 500]
329
+ }
330
+ }
331
+ }
332
+ }, {
309
333
  toolName: toolNames.CircleScissors
310
334
  }, {
311
335
  toolName: toolNames.RectangleScissors
@@ -317,7 +341,7 @@ function createTools(utilityModule) {
317
341
  toolName: toolNames.Magnify
318
342
  }, {
319
343
  toolName: toolNames.SegmentationDisplay
320
- }]),
344
+ }],
321
345
  disabled: [{
322
346
  toolName: toolNames.ReferenceLines
323
347
  }]
@@ -381,10 +405,9 @@ const extensionDependencies = {
381
405
  '@ohif/extension-cornerstone': '^3.0.0',
382
406
  '@ohif/extension-cornerstone-dicom-seg': '^3.0.0'
383
407
  };
384
- function modeFactory(_ref) {
385
- let {
386
- modeConfiguration
387
- } = _ref;
408
+ function modeFactory({
409
+ modeConfiguration
410
+ }) {
388
411
  return {
389
412
  /**
390
413
  * Mode ID, which should be unique among modes used by the viewer. This ID
@@ -401,12 +424,11 @@ function modeFactory(_ref) {
401
424
  * Runs when the Mode Route is mounted to the DOM. Usually used to initialize
402
425
  * Services and other resources.
403
426
  */
404
- onModeEnter: _ref2 => {
405
- let {
406
- servicesManager,
407
- extensionManager,
408
- commandsManager
409
- } = _ref2;
427
+ onModeEnter: ({
428
+ servicesManager,
429
+ extensionManager,
430
+ commandsManager
431
+ }) => {
410
432
  const {
411
433
  measurementService,
412
434
  toolbarService,
@@ -444,10 +466,9 @@ function modeFactory(_ref) {
444
466
  toolbarService.addButtons(src_toolbarButtons);
445
467
  toolbarService.createButtonSection('primary', ['Zoom', 'WindowLevel', 'Pan', 'Capture', 'Layout', 'MPR', 'Crosshairs', 'MoreTools']);
446
468
  },
447
- onModeExit: _ref3 => {
448
- let {
449
- servicesManager
450
- } = _ref3;
469
+ onModeExit: ({
470
+ servicesManager
471
+ }) => {
451
472
  const {
452
473
  toolGroupService,
453
474
  syncGroupService,
@@ -467,12 +488,18 @@ function modeFactory(_ref) {
467
488
  },
468
489
  /**
469
490
  * A boolean return value that indicates whether the mode is valid for the
470
- * modalities of the selected studies. For instance a PET/CT mode should be
491
+ * modalities of the selected studies. Currently we don't have stack viewport
492
+ * segmentations and we should exclude them
471
493
  */
472
- isValidMode: _ref4 => {
473
- let {
474
- modalities
475
- } = _ref4;
494
+ isValidMode: ({
495
+ modalities
496
+ }) => {
497
+ // Don't show the mode if the selected studies have only one modality
498
+ // that is not supported by the mode
499
+ const modalitiesArray = modalities.split('\\');
500
+ if (modalitiesArray.length === 1) {
501
+ return !['SM', 'US', 'MG', 'OT', 'DOC', 'CR'].includes(modalitiesArray[0]);
502
+ }
476
503
  return true;
477
504
  },
478
505
  /**
@@ -489,11 +516,10 @@ function modeFactory(_ref) {
489
516
  */
490
517
  routes: [{
491
518
  path: 'template',
492
- layoutTemplate: _ref5 => {
493
- let {
494
- location,
495
- servicesManager
496
- } = _ref5;
519
+ layoutTemplate: ({
520
+ location,
521
+ servicesManager
522
+ }) => {
497
523
  return {
498
524
  id: ohif.layout,
499
525
  props: {