dicom-microscopy-viewer 0.36.3 → 0.36.4

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 (65) hide show
  1. package/README.md +44 -42
  2. package/dist/dicom-microscopy-viewer.js +1 -1
  3. package/docs/annotation.AnnotationGroup.html +142 -43
  4. package/docs/annotation.html +2 -2
  5. package/docs/annotation.js.html +47 -34
  6. package/docs/annotations__AnnotationManager.js.html +2 -2
  7. package/docs/annotations_markups__MarkupManager.js.html +2 -2
  8. package/docs/api.html +2 -2
  9. package/docs/color.PaletteColorLookupTable.html +42 -14
  10. package/docs/color.html +6 -6
  11. package/docs/color.js.html +14 -14
  12. package/docs/dicom-microscopy-viewer.js.html +2 -2
  13. package/docs/events.html +316 -2
  14. package/docs/events.js.html +13 -4
  15. package/docs/index.html +44 -44
  16. package/docs/mapping.ParameterMapping.html +342 -27
  17. package/docs/mapping.Transformation.html +221 -14
  18. package/docs/mapping.html +2 -2
  19. package/docs/mapping.js.html +41 -32
  20. package/docs/metadata.Comprehensive3DSR.html +254 -5
  21. package/docs/metadata.MicroscopyBulkSimpleAnnotations.html +254 -5
  22. package/docs/metadata.ParametricMap.html +254 -5
  23. package/docs/metadata.SOPClass.html +399 -0
  24. package/docs/metadata.Segmentation.html +254 -5
  25. package/docs/metadata.VLWholeSlideMicroscopyImage.html +255 -7
  26. package/docs/metadata.html +14 -32
  27. package/docs/metadata.js.html +55 -21
  28. package/docs/opticalPath.OpticalPath.html +453 -26
  29. package/docs/opticalPath.html +2 -2
  30. package/docs/opticalPath.js.html +16 -17
  31. package/docs/pyramid.js.html +2 -2
  32. package/docs/roi.ROI.html +317 -25
  33. package/docs/roi.html +2 -2
  34. package/docs/roi.js.html +26 -19
  35. package/docs/scoord3d.Ellipse.html +14 -18
  36. package/docs/scoord3d.Ellipsoid.html +14 -18
  37. package/docs/scoord3d.Multipoint.html +14 -18
  38. package/docs/scoord3d.Point.html +13 -17
  39. package/docs/scoord3d.Polygon.html +14 -18
  40. package/docs/scoord3d.Polyline.html +14 -18
  41. package/docs/scoord3d.Scoord3D.html +608 -0
  42. package/docs/scoord3d.html +5 -2
  43. package/docs/scoord3d.js.html +101 -54
  44. package/docs/segment.Segment.html +160 -48
  45. package/docs/segment.html +2 -2
  46. package/docs/segment.js.html +37 -33
  47. package/docs/utils.html +148 -4
  48. package/docs/utils.js.html +6 -6
  49. package/docs/viewer.LabelImageViewer.html +14 -15
  50. package/docs/viewer.OverviewImageViewer.html +15 -15
  51. package/docs/viewer.VolumeImageViewer.html +215 -282
  52. package/docs/viewer.html +2 -2
  53. package/docs/viewer.js.html +150 -133
  54. package/package.json +1 -1
  55. package/src/annotation.js +45 -32
  56. package/src/color.js +12 -12
  57. package/src/events.js +11 -2
  58. package/src/mapping.js +39 -30
  59. package/src/metadata.js +53 -19
  60. package/src/opticalPath.js +14 -15
  61. package/src/roi.js +24 -17
  62. package/src/scoord3d.js +99 -52
  63. package/src/segment.js +35 -31
  64. package/src/utils.js +4 -4
  65. package/src/viewer.js +148 -131
@@ -314,7 +314,8 @@ function _getInteractionBindingCondition (bindings) {
314
314
  * slide coordinate system (X, Y, Z), i.e. it express in which direction one
315
315
  * is moving in the slide coordinate system when the ROW index changes.
316
316
  *
317
- * @param {object} metadata - Metadata of a DICOM VL Whole Slide Microscopy Image instance
317
+ * @param {metadata.VLWholeSlideMicroscopyImage} metadata - Metadata of a DICOM
318
+ * VL Whole Slide Microscopy Image instance
318
319
  *
319
320
  * @returns {number} Rotation in radians
320
321
  *
@@ -367,13 +368,13 @@ function _getWindowSize () {
367
368
  /**
368
369
  * Map style options to OpenLayers style.
369
370
  *
370
- * @param {object} styleOptions - Style options
371
- * @param {object} styleOptions.stroke - Style options for the outline of the geometry
371
+ * @param {Object} styleOptions - Style options
372
+ * @param {Object} styleOptions.stroke - Style options for the outline of the geometry
372
373
  * @param {number[]} styleOptions.stroke.color - RGBA color of the outline
373
374
  * @param {number} styleOptions.stroke.width - Width of the outline
374
- * @param {object} styleOptions.fill - Style options for body the geometry
375
+ * @param {Object} styleOptions.fill - Style options for body the geometry
375
376
  * @param {number[]} styleOptions.fill.color - RGBA color of the body
376
- * @param {object} styleOptions.image - Style options for image
377
+ * @param {Object} styleOptions.image - Style options for image
377
378
  * @return {Style} OpenLayers style
378
379
  *
379
380
  * @private
@@ -423,12 +424,12 @@ function _getOpenLayersStyle (styleOptions) {
423
424
  /**
424
425
  * Add ROI properties to feature in a safe way
425
426
  *
426
- * @param {object} feature - The feature instance that represents the ROI
427
- * @param {object} properties -Valid ROI properties
428
- * @param {object} properties.measurements - ROI measurements
429
- * @param {object} properties.evaluations - ROI evaluations
430
- * @param {object} properties.label - ROI label
431
- * @param {object} properties.marker - ROI marker (this is used while we don't have presentation states)
427
+ * @param {Object} feature - The feature instance that represents the ROI
428
+ * @param {Object} properties -Valid ROI properties
429
+ * @param {Object} properties.measurements - ROI measurements
430
+ * @param {Object} properties.evaluations - ROI evaluations
431
+ * @param {Object} properties.label - ROI label
432
+ * @param {Object} properties.marker - ROI marker (this is used while we don't have presentation states)
432
433
  * @param {boolean} optSilent - Opt silent update
433
434
  *
434
435
  * @private
@@ -457,9 +458,9 @@ function _addROIPropertiesToFeature (feature, properties, optSilent) {
457
458
  * Wire measurements and qualitative evaluations to generate content items
458
459
  * based on OpenLayers feature properties and geometry.
459
460
  *
460
- * @param {object} map - The map instance
461
- * @param {object} feature - The feature instance
462
- * @param {object} pyramid - The pyramid metadata
461
+ * @param {Object} map - The map instance
462
+ * @param {Object} feature - The feature instance
463
+ * @param {Object} pyramid - The pyramid metadata
463
464
  * @returns {void}
464
465
  *
465
466
  * @private
@@ -526,9 +527,9 @@ function _updateFeatureEvaluations (feature) {
526
527
  /**
527
528
  * Generate feature measurements from its measurement properties
528
529
  *
529
- * @param {object} map - The map instance
530
- * @param {object} feature - The feature instance
531
- * @param {object} pyramid - The pyramid metadata
530
+ * @param {Object} map - The map instance
531
+ * @param {Object} feature - The feature instance
532
+ * @param {Object} pyramid - The pyramid metadata
532
533
  * @returns {void}
533
534
  *
534
535
  * @private
@@ -620,13 +621,13 @@ function _updateFeatureMeasurements (map, feature, pyramid) {
620
621
  /**
621
622
  * Updates the style of a feature.
622
623
  *
623
- * @param {object} styleOptions - Style options
624
- * @param {object} styleOptions.stroke - Style options for the outline of the geometry
624
+ * @param {Object} styleOptions - Style options
625
+ * @param {Object} styleOptions.stroke - Style options for the outline of the geometry
625
626
  * @param {number[]} styleOptions.stroke.color - RGBA color of the outline
626
627
  * @param {number} styleOptions.stroke.width - Width of the outline
627
- * @param {object} styleOptions.fill - Style options for body the geometry
628
+ * @param {Object} styleOptions.fill - Style options for body the geometry
628
629
  * @param {number[]} styleOptions.fill.color - RGBA color of the body
629
- * @param {object} styleOptions.image - Style options for image
630
+ * @param {Object} styleOptions.image - Style options for image
630
631
  *
631
632
  * @private
632
633
  */
@@ -647,12 +648,12 @@ function _setFeatureStyle (feature, styleOptions) {
647
648
  /**
648
649
  * Build OpenLayers style expression for coloring a WebGL TileLayer.
649
650
  *
650
- * @param {object} styleOptions - Style options
651
+ * @param {Object} styleOptions - Style options
651
652
  * @param {number} styleOptions.windowCenter - Center of the window used for contrast stretching
652
653
  * @param {number} styleOptions.windowWidth - Width of the window used for contrast stretching
653
654
  * @param {number[][]} styleOptions.colormap - RGB color triplets
654
655
  *
655
- * @returns {object} color style expression and corresponding variables
656
+ * @returns {Object} color style expression and corresponding variables
656
657
  *
657
658
  * @private
658
659
  */
@@ -724,13 +725,13 @@ function _getColorPaletteStyleForTileLayer ({
724
725
  /**
725
726
  * Build OpenLayers style expression for coloring a WebGL PointLayer.
726
727
  *
727
- * @param {object} styleOptions - Style options
728
+ * @param {Object} styleOptions - Style options
728
729
  * @param {string} styleOptions.name - Name of a property for which values should be colorized
729
730
  * @param {number} styleOptions.minValue - Mininum value of the output range
730
731
  * @param {number} styleOptions.maxValue - Maxinum value of the output range
731
732
  * @param {number[][]} styleOptions.colormap - RGB color triplets
732
733
  *
733
- * @returns {object} color style expression
734
+ * @returns {Object} color style expression
734
735
  *
735
736
  * @private
736
737
  */
@@ -818,14 +819,18 @@ class VolumeImageViewer {
818
819
  /**
819
820
  * Create a viewer instance for displaying VOLUME images.
820
821
  *
821
- * @param {object} options
822
- * @param {object} options.client - A DICOMwebClient instance for interacting with an origin server over HTTP
823
- * @param {object[]} options.metadata - An array of DICOM JSON metadata objects
824
- * The array shall contain the metadata of all image instances that should be displayed.
825
- * @param {object} options.styleOptions - Default style options for annotations.
826
- * @param {string[]} [options.controls=[]] - Names of viewer control elements that should be included in the viewport
827
- * @param {boolean} [options.debug=false] - Whether debug features should be turned on (e.g., display of tile boundaries)
828
- * @param {number} [options.tilesCacheSize=512] - initial cache size for a TileImage
822
+ * @param {Object} options
823
+ * @param {Object} options.client - A DICOMwebClient instance for interacting
824
+ * with an origin server over HTTP
825
+ * @param {metadata.VLWholeSlideMicroscopyImage[]} options.metadata -
826
+ * Metadata of DICOM VL Whole Slide Microscopy Image instances that should be
827
+ * diplayed.
828
+ * @param {string[]} [options.controls=[]] - Names of viewer control elements
829
+ * that should be included in the viewport
830
+ * @param {boolean} [options.debug=false] - Whether debug features should be
831
+ * turned on (e.g., display of tile boundaries)
832
+ * @param {number} [options.tilesCacheSize=1000] - Number of tiles that should
833
+ * be cached to avoid repeated retrieval for the DICOMweb server
829
834
  */
830
835
  constructor (options) {
831
836
  this[_options] = options
@@ -838,10 +843,6 @@ class VolumeImageViewer {
838
843
  this[_options].tilesCacheSize = 1000
839
844
  }
840
845
 
841
- if (this[_options].overview == null) {
842
- this[_options].overview = {}
843
- }
844
-
845
846
  if (this[_options].controls == null) {
846
847
  this[_options].controls = []
847
848
  }
@@ -1373,6 +1374,7 @@ class VolumeImageViewer {
1373
1374
  * We need to reuse them here to avoid duplications.
1374
1375
  * Enabling or disabling interactions could cause side effects on
1375
1376
  * OverviewMap since it also uses the same interactions in the map
1377
+ * @private
1376
1378
  */
1377
1379
  this[_interactions] = {
1378
1380
  draw: undefined,
@@ -1437,7 +1439,7 @@ class VolumeImageViewer {
1437
1439
  * linear interpolation.
1438
1440
  *
1439
1441
  * @param {string} opticalPathIdentifier - Optical Path Identifier
1440
- * @param {object} styleOptions
1442
+ * @param {Object} styleOptions
1441
1443
  * @param {number[]} styleOptions.color - RGB color triplet
1442
1444
  * @param {number} styleOptions.opacity - Opacity
1443
1445
  * @param {number[]} styleOptions.limitValues - Upper and lower windowing limits
@@ -1527,7 +1529,7 @@ class VolumeImageViewer {
1527
1529
  * Get the style of an optical path.
1528
1530
  *
1529
1531
  * @param {string} opticalPathIdentifier - Optical Path Identifier
1530
- * @return {object} Style of optical path
1532
+ * @return {Object} Style of optical path
1531
1533
  */
1532
1534
  getOpticalPathStyle (opticalPathIdentifier) {
1533
1535
  const opticalPath = this[_opticalPaths][opticalPathIdentifier]
@@ -1574,7 +1576,7 @@ class VolumeImageViewer {
1574
1576
  /**
1575
1577
  * Get all optical paths.
1576
1578
  *
1577
- * @return {OpticalPath[]}
1579
+ * @return {opticalPath.OpticalPath[]}
1578
1580
  */
1579
1581
  getAllOpticalPaths () {
1580
1582
  const opticalPaths = []
@@ -1652,7 +1654,7 @@ class VolumeImageViewer {
1652
1654
  * Show an optical path.
1653
1655
  *
1654
1656
  * @param {string} opticalPathIdentifier - Optical Path Identifier
1655
- * @param {object} styleOptions
1657
+ * @param {Object} styleOptions
1656
1658
  * @param {number[]} styleOptions.color - RGB color triplet
1657
1659
  * @param {number} styleOptions.opacity - Opacity
1658
1660
  * @param {number[]} styleOptions.limitValues - Upper and lower clipping values
@@ -1753,7 +1755,7 @@ class VolumeImageViewer {
1753
1755
  /**
1754
1756
  * Render the images in the specified viewport container.
1755
1757
  *
1756
- * @param {object} options - Rendering options.
1758
+ * @param {Object} options - Rendering options.
1757
1759
  * @param {(string|HTMLElement)} options.container - HTML Element in which the viewer should be injected.
1758
1760
  */
1759
1761
  render (options) {
@@ -1912,19 +1914,19 @@ class VolumeImageViewer {
1912
1914
  /**
1913
1915
  * Activate the draw interaction for graphic annotation of regions of interest.
1914
1916
  *
1915
- * @param {object} options - Drawing options
1917
+ * @param {Object} options - Drawing options
1916
1918
  * @param {string} options.geometryType - Name of the geometry type (point, circle, box, polygon, freehandpolygon, line, freehandline)
1917
1919
  * @param {string} options.marker - Marker
1918
1920
  * @param {string} options.markup - Markup
1919
1921
  * @param {number} options.maxPoints - Geometry max points
1920
1922
  * @param {number} options.minPoints - Geometry min points
1921
- * @param {object} options.styleOptions - Style options
1922
- * @param {object} options.styleOptions.stroke - Style options for the outline of the geometry
1923
+ * @param {Object} options.styleOptions - Style options
1924
+ * @param {Object} options.styleOptions.stroke - Style options for the outline of the geometry
1923
1925
  * @param {number[]} options.styleOptions.stroke.color - RGBA color of the outline
1924
1926
  * @param {number} options.styleOptions.stroke.width - Width of the outline
1925
- * @param {object} options.styleOptions.fill - Style options for body the geometry
1927
+ * @param {Object} options.styleOptions.fill - Style options for body the geometry
1926
1928
  * @param {number[]} options.styleOptions.fill.color - RGBA color of the body
1927
- * @param {object} options.styleOptions.image - Style options for image
1929
+ * @param {Object} options.styleOptions.image - Style options for image
1928
1930
  */
1929
1931
  activateDrawInteraction (options = {}) {
1930
1932
  this.deactivateDrawInteraction()
@@ -2057,25 +2059,25 @@ class VolumeImageViewer {
2057
2059
  /**
2058
2060
  * Whether draw interaction is active
2059
2061
  *
2060
- * @return {boolean}
2062
+ * @type boolean
2061
2063
  */
2062
2064
  get isDrawInteractionActive () {
2063
2065
  return this[_interactions].draw !== undefined
2064
2066
  }
2065
2067
 
2066
2068
  /**
2067
- * Whether dragPan interaction is active.
2069
+ * Whether drag pan interaction is active.
2068
2070
  *
2069
- * @type {boolean}
2071
+ * @type boolean
2070
2072
  */
2071
2073
  get isDragPanInteractionActive () {
2072
2074
  return this[_interactions].dragPan !== undefined
2073
2075
  }
2074
2076
 
2075
2077
  /**
2076
- * Whether dragZoom interaction is active.
2078
+ * Whether drag zoom interaction is active.
2077
2079
  *
2078
- * @type {boolean}
2080
+ * @type boolean
2079
2081
  */
2080
2082
  get isDragZoomInteractionActive () {
2081
2083
  return this[_interactions].dragZoom !== undefined
@@ -2084,7 +2086,7 @@ class VolumeImageViewer {
2084
2086
  /**
2085
2087
  * Whether translate interaction is active.
2086
2088
  *
2087
- * @type {boolean}
2089
+ * @type boolean
2088
2090
  */
2089
2091
  get isTranslateInteractionActive () {
2090
2092
  return this[_interactions].translate !== undefined
@@ -2120,10 +2122,10 @@ class VolumeImageViewer {
2120
2122
  /**
2121
2123
  * Extract and transform the region of interest (ROI).
2122
2124
  *
2123
- * @param {object} feature - Openlayers Feature
2125
+ * @param {Object} feature - Openlayers Feature
2124
2126
  * @param {Object[]} pyramid - Metadata for resolution levels of image pyramid
2125
2127
  * @param {Object} context - Context
2126
- * @returns {ROI} Region of interest
2128
+ * @returns {roi.ROI} Region of interest
2127
2129
  * @private
2128
2130
  */
2129
2131
  _getROIFromFeature (feature, pyramid) {
@@ -2181,9 +2183,9 @@ class VolumeImageViewer {
2181
2183
  }
2182
2184
 
2183
2185
  /**
2184
- * Activate dragZoom interaction.
2186
+ * Activate drag zoom interaction.
2185
2187
  *
2186
- * @param {object} options - DragZoom options.
2188
+ * @param {Object} options - Options.
2187
2189
  */
2188
2190
  activateDragZoomInteraction (options = {}) {
2189
2191
  this.deactivateDragZoomInteraction()
@@ -2208,7 +2210,7 @@ class VolumeImageViewer {
2208
2210
  }
2209
2211
 
2210
2212
  /**
2211
- * Deactivate dragZoom interaction.
2213
+ * Deactivate drag zoom interaction.
2212
2214
  */
2213
2215
  deactivateDragZoomInteraction () {
2214
2216
  console.info('deactivate "dragZoom" interaction')
@@ -2221,7 +2223,7 @@ class VolumeImageViewer {
2221
2223
  /**
2222
2224
  * Activate select interaction.
2223
2225
  *
2224
- * @param {object} options selection options.
2226
+ * @param {Object} options selection options.
2225
2227
  */
2226
2228
  activateSelectInteraction (options = {}) {
2227
2229
  this.deactivateSelectInteraction()
@@ -2267,9 +2269,9 @@ class VolumeImageViewer {
2267
2269
  }
2268
2270
 
2269
2271
  /**
2270
- * Activate dragpan interaction.
2272
+ * Activate drag pan interaction.
2271
2273
  *
2272
- * @param {Object} options - DragPan options.
2274
+ * @param {Object} options - Options.
2273
2275
  */
2274
2276
  activateDragPanInteraction (options = {}) {
2275
2277
  this.deactivateDragPanInteraction()
@@ -2296,7 +2298,7 @@ class VolumeImageViewer {
2296
2298
  }
2297
2299
 
2298
2300
  /**
2299
- * Deactivate dragpan interaction.
2301
+ * Deactivate drag pan interaction.
2300
2302
  */
2301
2303
  deactivateDragPanInteraction () {
2302
2304
  console.info('deactivate "drag pan" interaction')
@@ -2335,7 +2337,7 @@ class VolumeImageViewer {
2335
2337
  /**
2336
2338
  * Whether select interaction is active.
2337
2339
  *
2338
- * @return {boolean}
2340
+ * @type boolean
2339
2341
  */
2340
2342
  get isSelectInteractionActive () {
2341
2343
  return this[_interactions].select !== undefined
@@ -2344,7 +2346,7 @@ class VolumeImageViewer {
2344
2346
  /**
2345
2347
  * Activate modify interaction.
2346
2348
  *
2347
- * @param {object} options - Modification options.
2349
+ * @param {Object} options - Modification options.
2348
2350
  */
2349
2351
  activateModifyInteraction (options = {}) {
2350
2352
  this.deactivateModifyInteraction()
@@ -2397,7 +2399,7 @@ class VolumeImageViewer {
2397
2399
  /**
2398
2400
  * Whether modify interaction is active.
2399
2401
  *
2400
- * @return {boolean}
2402
+ * @type boolean
2401
2403
  */
2402
2404
  get isModifyInteractionActive () {
2403
2405
  return this[_interactions].modify !== undefined
@@ -2406,7 +2408,7 @@ class VolumeImageViewer {
2406
2408
  /**
2407
2409
  * Get all annotated regions of interest.
2408
2410
  *
2409
- * @returns {ROI[]} Array of regions of interest.
2411
+ * @returns {roi.ROI[]} Array of regions of interest.
2410
2412
  */
2411
2413
  getAllROIs () {
2412
2414
  console.info('get all ROIs')
@@ -2438,7 +2440,7 @@ class VolumeImageViewer {
2438
2440
  * Get an individual annotated region of interest.
2439
2441
  *
2440
2442
  * @param {string} uid - Unique identifier of the region of interest
2441
- * @returns {ROI} Region of interest.
2443
+ * @returns {roi.ROI} Region of interest.
2442
2444
  */
2443
2445
  getROI (uid) {
2444
2446
  console.info(`get ROI ${uid}`)
@@ -2450,7 +2452,7 @@ class VolumeImageViewer {
2450
2452
  * Add a measurement to a region of interest.
2451
2453
  *
2452
2454
  * @param {string} uid - Unique identifier of the region of interest
2453
- * @param {object} item - NUM content item representing a measurement
2455
+ * @param {Object} item - NUM content item representing a measurement
2454
2456
  */
2455
2457
  addROIMeasurement (uid, item) {
2456
2458
  const meaning = item.ConceptNameCodeSequence[0].CodeMeaning
@@ -2473,7 +2475,7 @@ class VolumeImageViewer {
2473
2475
  * Add a qualitative evaluation to a region of interest.
2474
2476
  *
2475
2477
  * @param {string} uid - Unique identifier of the region of interest
2476
- * @param {object} item - CODE content item representing a qualitative evaluation
2478
+ * @param {Object} item - CODE content item representing a qualitative evaluation
2477
2479
  */
2478
2480
  addROIEvaluation (uid, item) {
2479
2481
  const meaning = item.ConceptNameCodeSequence[0].CodeMeaning
@@ -2495,7 +2497,7 @@ class VolumeImageViewer {
2495
2497
  /**
2496
2498
  * Pop the most recently annotated regions of interest.
2497
2499
  *
2498
- * @returns {ROI} Regions of interest.
2500
+ * @returns {roi.ROI} Regions of interest.
2499
2501
  */
2500
2502
  popROI () {
2501
2503
  console.info('pop ROI')
@@ -2506,14 +2508,14 @@ class VolumeImageViewer {
2506
2508
  /**
2507
2509
  * Add a regions of interest.
2508
2510
  *
2509
- * @param {ROI} roi - Regions of interest
2510
- * @param {object} styleOptions - Style options
2511
- * @param {object} styleOptions.stroke - Style options for the outline of the geometry
2511
+ * @param {roi.ROI} roi - Regions of interest
2512
+ * @param {Object} styleOptions - Style options
2513
+ * @param {Object} styleOptions.stroke - Style options for the outline of the geometry
2512
2514
  * @param {number[]} styleOptions.stroke.color - RGBA color of the outline
2513
2515
  * @param {number} styleOptions.stroke.width - Width of the outline
2514
- * @param {object} styleOptions.fill - Style options for body the geometry
2516
+ * @param {Object} styleOptions.fill - Style options for body the geometry
2515
2517
  * @param {number[]} styleOptions.fill.color - RGBA color of the body
2516
- * @param {object} styleOptions.image - Style options for image
2518
+ * @param {Object} styleOptions.image - Style options for image
2517
2519
  *
2518
2520
  */
2519
2521
  addROI (roi, styleOptions = {}) {
@@ -2550,13 +2552,13 @@ class VolumeImageViewer {
2550
2552
  /**
2551
2553
  * Update properties of a region of interest.
2552
2554
  *
2553
- * @param {object} roi - ROI to be updated
2555
+ * @param {Object} roi - ROI to be updated
2554
2556
  * @param {string} roi.uid - Unique identifier of the region of interest
2555
- * @param {object} roi.properties - ROI properties
2556
- * @param {object} roi.properties.measurements - ROI measurements
2557
- * @param {object} roi.properties.evaluations - ROI evaluations
2558
- * @param {object} roi.properties.label - ROI label
2559
- * @param {object} roi.properties.marker - ROI marker
2557
+ * @param {Object} roi.properties - ROI properties
2558
+ * @param {Object} roi.properties.measurements - ROI measurements
2559
+ * @param {Object} roi.properties.evaluations - ROI evaluations
2560
+ * @param {Object} roi.properties.label - ROI label
2561
+ * @param {Object} roi.properties.marker - ROI marker
2560
2562
  */
2561
2563
  updateROI ({ uid, properties = {} }) {
2562
2564
  if (!uid) return
@@ -2574,7 +2576,7 @@ class VolumeImageViewer {
2574
2576
  *
2575
2577
  * @param {string} uid - Unique identifier of the regions of interest
2576
2578
  *
2577
- * @returns {object} - Style settings
2579
+ * @returns {Object} - Style settings
2578
2580
  */
2579
2581
  getROIStyle (uid) {
2580
2582
  const feature = this[_features].getArray().find((feature) => {
@@ -2601,11 +2603,11 @@ class VolumeImageViewer {
2601
2603
  * Set the style of a region of interest.
2602
2604
  *
2603
2605
  * @param {string} uid - Unique identifier of the regions of interest
2604
- * @param {object} styleOptions - Style options
2605
- * @param {object} styleOptions.stroke - Style options for the outline of the geometry
2606
+ * @param {Object} styleOptions - Style options
2607
+ * @param {Object} styleOptions.stroke - Style options for the outline of the geometry
2606
2608
  * @param {number[]} styleOptions.stroke.color - RGBA color of the outline
2607
2609
  * @param {number} styleOptions.stroke.width - Width of the outline
2608
- * @param {object} styleOptions.fill - Style options for body the geometry
2610
+ * @param {Object} styleOptions.fill - Style options for body the geometry
2609
2611
  * @param {number[]} styleOptions.fill.color - RGBA color of the body
2610
2612
  *
2611
2613
  */
@@ -2623,8 +2625,8 @@ class VolumeImageViewer {
2623
2625
  /**
2624
2626
  * Add a new viewport overlay.
2625
2627
  *
2626
- * @param {object} options Overlay options
2627
- * @param {object} options.element The custom overlay HTML element
2628
+ * @param {Object} options Overlay options
2629
+ * @param {Object} options.element The custom overlay HTML element
2628
2630
  * @param {string} options.className Class to style the overlay container
2629
2631
  * @param {number[]} options.offset Horizontal and vertical offset of the overlay container in pixels
2630
2632
  */
@@ -2697,7 +2699,8 @@ class VolumeImageViewer {
2697
2699
  /**
2698
2700
  * Add annotation groups.
2699
2701
  *
2700
- * @param {MicroscopyBulkSimpleAnnotations} metadata - Metadata of a DICOM Microscopy Simple Bulk Annotations instance
2702
+ * @param {metadata.MicroscopyBulkSimpleAnnotations} metadata - Metadata of a
2703
+ * DICOM Microscopy Simple Bulk Annotations instance
2701
2704
  */
2702
2705
  addAnnotationGroups (metadata) {
2703
2706
  const refImage = this[_pyramid].metadata[0]
@@ -2925,7 +2928,7 @@ class VolumeImageViewer {
2925
2928
  * Show an annotation group.
2926
2929
  *
2927
2930
  * @param {string} annotationGroupUID - Unique identifier of an annotation group
2928
- * @param {object} styleOptions
2931
+ * @param {Object} styleOptions
2929
2932
  * @param {number} styleOptions.measurement - Selected measurement for colorizing annotations
2930
2933
  */
2931
2934
  showAnnotationGroup (annotationGroupUID, styleOptions = {}) {
@@ -3084,7 +3087,7 @@ class VolumeImageViewer {
3084
3087
  * Set style of an annotation group.
3085
3088
  *
3086
3089
  * @param {string} annotationGroupUID - Unique identifier of an annotation group
3087
- * @param {object} styleOptions - Style options
3090
+ * @param {Object} styleOptions - Style options
3088
3091
  * @param {number} styleOptions.opacity - Opacity
3089
3092
  * @param {number} styleOptions.measurement - Selected measurement for colorizing annotations
3090
3093
  */
@@ -3179,7 +3182,7 @@ class VolumeImageViewer {
3179
3182
  *
3180
3183
  * @param {string} annotationGroupUID - Unique identifier of an annotation group
3181
3184
  *
3182
- * @returns {object} - Style settings
3185
+ * @returns {Object} - Style settings
3183
3186
  */
3184
3187
  getAnnotationGroupStyle (annotationGroupUID) {
3185
3188
  if (!(annotationGroupUID in this[_annotationGroups])) {
@@ -3198,7 +3201,7 @@ class VolumeImageViewer {
3198
3201
  /**
3199
3202
  * Get all annotation groups.
3200
3203
  *
3201
- * @returns {AnnotationGroup[]} - Annotation groups
3204
+ * @returns {annotation.AnnotationGroup[]}
3202
3205
  */
3203
3206
  getAllAnnotationGroups () {
3204
3207
  const groups = []
@@ -3213,7 +3216,8 @@ class VolumeImageViewer {
3213
3216
  *
3214
3217
  * @param {string} annotationGroupUID - Unique identifier of an annotation group
3215
3218
  *
3216
- * @returns {MicroscopyBulkSimpleAnnotations[]} - Metadata of DICOM Microscopy Bulk Simple Annotations instances
3219
+ * @returns {metadata.MicroscopyBulkSimpleAnnotations} - Metadata of DICOM
3220
+ * Microscopy Bulk Simple Annotations instance
3217
3221
  */
3218
3222
  getAnnotationGroupMetadata (annotationGroupUID) {
3219
3223
  if (!(annotationGroupUID in this[_annotationGroups])) {
@@ -3229,7 +3233,7 @@ class VolumeImageViewer {
3229
3233
  /**
3230
3234
  * Add segments.
3231
3235
  *
3232
- * @param {Segmentation[]} metadata - Metadata of one or more DICOM Segmentation instances
3236
+ * @param {metadata.Segmentation[]} metadata - Metadata of one or more DICOM Segmentation instances
3233
3237
  */
3234
3238
  addSegments (metadata) {
3235
3239
  if (metadata.length === 0) {
@@ -3427,7 +3431,7 @@ class VolumeImageViewer {
3427
3431
  * Show a segment.
3428
3432
  *
3429
3433
  * @param {string} segmentUID - Unique tracking identifier of a segment
3430
- * @param {object} styleOptions
3434
+ * @param {Object} styleOptions
3431
3435
  * @param {number} styleOptions.opacity - Opacity
3432
3436
  */
3433
3437
  showSegment (segmentUID, styleOptions = {}) {
@@ -3480,7 +3484,7 @@ class VolumeImageViewer {
3480
3484
  * Set the style of a segment.
3481
3485
  *
3482
3486
  * @param {string} segmentUID - Unique tracking identifier of segment
3483
- * @param {object} styleOptions - Style options
3487
+ * @param {Object} styleOptions - Style options
3484
3488
  * @param {number} styleOptions.opacity - Opacity
3485
3489
  */
3486
3490
  setSegmentStyle (segmentUID, styleOptions = {}) {
@@ -3544,7 +3548,8 @@ class VolumeImageViewer {
3544
3548
  * Get the style of a segment.
3545
3549
  *
3546
3550
  * @param {string} segmentUID - Unique tracking identifier of segment
3547
- * @returns {object} Style settings
3551
+ *
3552
+ * @returns {Object} Style settings
3548
3553
  */
3549
3554
  getSegmentStyle (segmentUID) {
3550
3555
  if (!(segmentUID in this[_segments])) {
@@ -3565,7 +3570,8 @@ class VolumeImageViewer {
3565
3570
  * Get image metadata for a segment.
3566
3571
  *
3567
3572
  * @param {string} segmentUID - Unique tracking identifier of segment
3568
- * @returns {Segmentation[]} Segmentation image metadata
3573
+ *
3574
+ * @returns {metadata.Segmentation[]} Metadata of DICOM Segmentation instances
3569
3575
  */
3570
3576
  getSegmentMetadata (segmentUID) {
3571
3577
  if (!(segmentUID in this[_segments])) {
@@ -3581,7 +3587,7 @@ class VolumeImageViewer {
3581
3587
  /**
3582
3588
  * Get all segments.
3583
3589
  *
3584
- * @return {Segment[]}
3590
+ * @return {segment.Segment[]}
3585
3591
  */
3586
3592
  getAllSegments () {
3587
3593
  const segments = []
@@ -3855,7 +3861,7 @@ class VolumeImageViewer {
3855
3861
  * Show a parameter mapping.
3856
3862
  *
3857
3863
  * @param {string} mappingUID - Unique tracking identifier of a mapping
3858
- * @param {object} styleOptions
3864
+ * @param {Object} styleOptions
3859
3865
  * @param {number} styleOptions.opacity - Opacity
3860
3866
  * @param {number} styleOptions.limitValues - Opacity
3861
3867
  */
@@ -3909,7 +3915,7 @@ class VolumeImageViewer {
3909
3915
  * Set the style of a parameter mapping.
3910
3916
  *
3911
3917
  * @param {string} mappingUID - Unique tracking identifier of mapping
3912
- * @param {object} styleOptions
3918
+ * @param {Object} styleOptions
3913
3919
  * @param {number} styleOptions.opacity - Opacity
3914
3920
  */
3915
3921
  setParameterMappingStyle (mappingUID, styleOptions = {}) {
@@ -3989,7 +3995,7 @@ class VolumeImageViewer {
3989
3995
  * Get the style of a parameter mapping.
3990
3996
  *
3991
3997
  * @param {string} mappingUID - Unique tracking identifier of mapping
3992
- * @returns {object} Style Options
3998
+ * @returns {Object} Style Options
3993
3999
  */
3994
4000
  getParameterMappingStyle (mappingUID) {
3995
4001
  if (!(mappingUID in this[_mappings])) {
@@ -4011,7 +4017,9 @@ class VolumeImageViewer {
4011
4017
  * Get image metadata for a parameter mapping.
4012
4018
  *
4013
4019
  * @param {string} mappingUID - Unique tracking identifier of mapping
4014
- * @returns {ParametricMap[]} Parametric Map image metadata
4020
+ *
4021
+ * @returns {metadata.ParametricMap[]} Metadata of DICOM Parametric Map
4022
+ * instances
4015
4023
  */
4016
4024
  getParameterMappingMetadata (mappingUID) {
4017
4025
  if (!(mappingUID in this[_mappings])) {
@@ -4027,7 +4035,7 @@ class VolumeImageViewer {
4027
4035
  /**
4028
4036
  * Get all parameter mappings.
4029
4037
  *
4030
- * @return {ParameterMapping[]}
4038
+ * @return {mapping.ParameterMapping[]}
4031
4039
  */
4032
4040
  getAllParameterMappings () {
4033
4041
  const mappings = []
@@ -4043,18 +4051,22 @@ class VolumeImageViewer {
4043
4051
  * with Image Type other than VOLUME.
4044
4052
  *
4045
4053
  * @class
4054
+ * @abstract
4046
4055
  * @private
4047
4056
  */
4048
4057
  class _NonVolumeImageViewer {
4049
4058
  /**
4050
- * Creates a viewer instance for displaying non-VOLUME images.
4051
- *
4052
- * @param {object} options
4053
- * @param {object} options.client - A DICOMwebClient instance for interacting with an origin server over HTTP.
4054
- * @param {object} options.metadata - DICOM JSON metadata object for a VL Whole Slide Microscopy Image instance.
4055
- * @param {string} options.orientation - Orientation of the slide (vertical: label on top, or horizontal: label on right side).
4056
- * @param {number} [options.resizeFactor=1] - To which extent image should be reduced in size (fraction).
4057
- * @param {boolean} [options.includeIccProfile=false] - Whether ICC Profile should be included for correction of image colors.
4059
+ * @param {Object} options
4060
+ * @param {Object} options.client - A DICOMwebClient instance for interacting
4061
+ * with an origin server over HTTP.
4062
+ * @param {metadata.VLWholeSlideMicroscopyImage[]} options.metadata -
4063
+ * Metadata of DICOM VL Whole Slide Microscopy Image instances
4064
+ * @param {string} options.orientation - Orientation of the slide (vertical:
4065
+ * label on top, or horizontal: label on right side).
4066
+ * @param {number} [options.resizeFactor=1] - To which extent image should be
4067
+ * reduced in size (fraction).
4068
+ * @param {boolean} [options.includeIccProfile=false] - Whether ICC Profile
4069
+ * should be included for correction of image colors.
4058
4070
  */
4059
4071
  constructor (options) {
4060
4072
  // We also accept metadata in raw JSON format for backwards compatibility
@@ -4168,7 +4180,7 @@ class _NonVolumeImageViewer {
4168
4180
  /**
4169
4181
  * Render the image in the specified viewport container.
4170
4182
  *
4171
- * @param {object} options - Rendering options.
4183
+ * @param {Object} options - Rendering options.
4172
4184
  * @param {(string|HTMLElement)} options.container - HTML Element in which the viewer should be injected.
4173
4185
  */
4174
4186
  render (options) {
@@ -4226,15 +4238,18 @@ class _NonVolumeImageViewer {
4226
4238
  * @memberof viewer
4227
4239
  */
4228
4240
  class OverviewImageViewer extends _NonVolumeImageViewer {
4229
- /**
4230
- * Creates a viewer instance for displaying OVERVIEW images.
4231
- *
4232
- * @param {object} options
4233
- * @param {object} options.client - A DICOMwebClient instance for interacting with an origin server over HTTP.
4234
- * @param {object} options.metadata - DICOM JSON metadata object for a VL Whole Slide Microscopy Image instance.
4235
- * @param {string} [options.orientation='horizontal'] - Orientation of the slide (vertical: label on top, or horizontal: label on right side).
4236
- * @param {number} [options.resizeFactor=1] - To which extent image should be reduced in size (fraction).
4237
- * @param {boolean} [options.includeIccProfile=false] - Whether ICC Profile should be included for correction of image colors.
4241
+ /**
4242
+ * @param {Object} options
4243
+ * @param {Object} options.client - A DICOMwebClient instance for interacting
4244
+ * with an origin server over HTTP.
4245
+ * @param {metadata.VLWholeSlideMicroscopyImage[]} options.metadata -
4246
+ * Metadata of DICOM VL Whole Slide Microscopy Image instances
4247
+ * @param {string} [options.orientation='horizontal'] - Orientation of the
4248
+ * slide (vertical: label on top, or horizontal: label on right side).
4249
+ * @param {number} [options.resizeFactor=1] - To which extent image should be
4250
+ * reduced in size (fraction).
4251
+ * @param {boolean} [options.includeIccProfile=false] - Whether ICC Profile
4252
+ * should be included for correction of image colors.
4238
4253
  */
4239
4254
  constructor (options) {
4240
4255
  if (options.orientation === undefined) {
@@ -4252,15 +4267,17 @@ class OverviewImageViewer extends _NonVolumeImageViewer {
4252
4267
  * @memberof viewer
4253
4268
  */
4254
4269
  class LabelImageViewer extends _NonVolumeImageViewer {
4255
- /**
4256
- * Creates a viewer instance for displaying LABEL images.
4257
- *
4258
- * @param {object} options
4259
- * @param {object} options.client - A DICOMwebClient instance for interacting with an origin server over HTTP
4260
- * @param {object} options.metadata - DICOM JSON metadata object for a VL Whole Slide Microscopy Image instance
4261
- * @param {string} [options.orientation='vertical'] - Orientation of the slide (vertical: label on top, or horizontal: label on right side)
4262
- * @param {number} [options.resizeFactor=1] - To which extent image should be reduced in size (fraction)
4263
- * @param {boolean} [options.includeIccProfile=false] - Whether ICC Profile should be included for correction of image colors
4270
+ /**
4271
+ * @param {Object} options - Options
4272
+ * @param {Object} options.client - A DICOMwebClient instance for interacting with an origin server over HTTP
4273
+ * @param {metadata.VLWholeSlideMicroscopyImage[]} options.metadata -
4274
+ * Metadata of DICOM VL Whole Slide Microscopy Image instances
4275
+ * @param {string} [options.orientation='vertical'] - Orientation of the
4276
+ * slide (vertical: label on top, or horizontal: label on right side)
4277
+ * @param {number} [options.resizeFactor=1] - To which extent image should be
4278
+ * reduced in size (fraction)
4279
+ * @param {boolean} [options.includeIccProfile=false] - Whether ICC Profile
4280
+ * should be included for correction of image colors
4264
4281
  */
4265
4282
  constructor (options) {
4266
4283
  if (options.orientation === undefined) {
@@ -4281,13 +4298,13 @@ export { LabelImageViewer, OverviewImageViewer, VolumeImageViewer }
4281
4298
  </div>
4282
4299
 
4283
4300
  <nav>
4284
- <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="annotation.html">annotation</a></li><li><a href="api.html">api</a></li><li><a href="color.html">color</a></li><li><a href="events.html">events</a></li><li><a href="mapping.html">mapping</a></li><li><a href="metadata.html">metadata</a></li><li><a href="opticalPath.html">opticalPath</a></li><li><a href="roi.html">roi</a></li><li><a href="scoord3d.html">scoord3d</a></li><li><a href="segment.html">segment</a></li><li><a href="utils.html">utils</a></li><li><a href="viewer.html">viewer</a></li></ul><h3>Classes</h3><ul><li><a href="annotation.AnnotationGroup.html">AnnotationGroup</a></li><li><a href="color.PaletteColorLookupTable.html">PaletteColorLookupTable</a></li><li><a href="mapping.ParameterMapping.html">ParameterMapping</a></li><li><a href="mapping.Transformation.html">Transformation</a></li><li><a href="metadata.Comprehensive3DSR.html">Comprehensive3DSR</a></li><li><a href="metadata.MicroscopyBulkSimpleAnnotations.html">MicroscopyBulkSimpleAnnotations</a></li><li><a href="metadata.ParametricMap.html">ParametricMap</a></li><li><a href="metadata.Segmentation.html">Segmentation</a></li><li><a href="metadata.VLWholeSlideMicroscopyImage.html">VLWholeSlideMicroscopyImage</a></li><li><a href="opticalPath.OpticalPath.html">OpticalPath</a></li><li><a href="roi.ROI.html">ROI</a></li><li><a href="scoord3d.Ellipse.html">Ellipse</a></li><li><a href="scoord3d.Ellipsoid.html">Ellipsoid</a></li><li><a href="scoord3d.Multipoint.html">Multipoint</a></li><li><a href="scoord3d.Point.html">Point</a></li><li><a href="scoord3d.Polygon.html">Polygon</a></li><li><a href="scoord3d.Polyline.html">Polyline</a></li><li><a href="segment.Segment.html">Segment</a></li><li><a href="viewer.LabelImageViewer.html">LabelImageViewer</a></li><li><a href="viewer.OverviewImageViewer.html">OverviewImageViewer</a></li><li><a href="viewer.VolumeImageViewer.html">VolumeImageViewer</a></li></ul>
4301
+ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="annotation.html">annotation</a></li><li><a href="api.html">api</a></li><li><a href="color.html">color</a></li><li><a href="events.html">events</a></li><li><a href="mapping.html">mapping</a></li><li><a href="metadata.html">metadata</a></li><li><a href="opticalPath.html">opticalPath</a></li><li><a href="roi.html">roi</a></li><li><a href="scoord3d.html">scoord3d</a></li><li><a href="segment.html">segment</a></li><li><a href="utils.html">utils</a></li><li><a href="viewer.html">viewer</a></li></ul><h3>Classes</h3><ul><li><a href="annotation.AnnotationGroup.html">AnnotationGroup</a></li><li><a href="color.PaletteColorLookupTable.html">PaletteColorLookupTable</a></li><li><a href="mapping.ParameterMapping.html">ParameterMapping</a></li><li><a href="mapping.Transformation.html">Transformation</a></li><li><a href="metadata.Comprehensive3DSR.html">Comprehensive3DSR</a></li><li><a href="metadata.MicroscopyBulkSimpleAnnotations.html">MicroscopyBulkSimpleAnnotations</a></li><li><a href="metadata.ParametricMap.html">ParametricMap</a></li><li><a href="metadata.Segmentation.html">Segmentation</a></li><li><a href="metadata.SOPClass.html">SOPClass</a></li><li><a href="metadata.VLWholeSlideMicroscopyImage.html">VLWholeSlideMicroscopyImage</a></li><li><a href="opticalPath.OpticalPath.html">OpticalPath</a></li><li><a href="roi.ROI.html">ROI</a></li><li><a href="scoord3d.Ellipse.html">Ellipse</a></li><li><a href="scoord3d.Ellipsoid.html">Ellipsoid</a></li><li><a href="scoord3d.Multipoint.html">Multipoint</a></li><li><a href="scoord3d.Point.html">Point</a></li><li><a href="scoord3d.Polygon.html">Polygon</a></li><li><a href="scoord3d.Polyline.html">Polyline</a></li><li><a href="scoord3d.Scoord3D.html">Scoord3D</a></li><li><a href="segment.Segment.html">Segment</a></li><li><a href="viewer.LabelImageViewer.html">LabelImageViewer</a></li><li><a href="viewer.OverviewImageViewer.html">OverviewImageViewer</a></li><li><a href="viewer.VolumeImageViewer.html">VolumeImageViewer</a></li></ul>
4285
4302
  </nav>
4286
4303
 
4287
4304
  <br class="clear">
4288
4305
 
4289
4306
  <footer>
4290
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Fri Mar 11 2022 17:11:29 GMT-0500 (Eastern Standard Time)
4307
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Sat Mar 12 2022 12:50:08 GMT-0500 (Eastern Standard Time)
4291
4308
  </footer>
4292
4309
 
4293
4310
  <script> prettyPrint(); </script>