dicom-microscopy-viewer 0.34.0 → 0.35.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.
Files changed (46) hide show
  1. package/build/dicom-microscopy-viewer.js +257 -104
  2. package/docs/annotations__AnnotationManager.js.html +13 -2
  3. package/docs/annotations_markers_arrow.js.html +1 -1
  4. package/docs/annotations_markups__MarkupManager.js.html +31 -2
  5. package/docs/annotations_markups_measurement.js.html +1 -1
  6. package/docs/annotations_markups_textEvaluation.js.html +1 -1
  7. package/docs/annotations_markups_utils_getShortestLineBetweenOverlayAndFeature.js.html +1 -1
  8. package/docs/api.html +1 -1
  9. package/docs/channel.BlendingInformation.html +1 -1
  10. package/docs/channel._Channel.html +1 -1
  11. package/docs/channel.js.html +3 -3
  12. package/docs/dicom-microscopy-viewer.js.html +1 -1
  13. package/docs/events.html +1 -1
  14. package/docs/events.js.html +1 -1
  15. package/docs/global.html +1 -1
  16. package/docs/index.html +1 -1
  17. package/docs/metadata.Comprehensive3DSR.html +1 -1
  18. package/docs/metadata.VLWholeSlideMicroscopyImage.html +1 -1
  19. package/docs/metadata.html +1 -1
  20. package/docs/metadata.js.html +1 -1
  21. package/docs/renderingEngine.RenderingEngine.html +1 -1
  22. package/docs/renderingEngine.js.html +1 -1
  23. package/docs/roi.ROI.html +1 -1
  24. package/docs/roi.html +1 -1
  25. package/docs/roi.js.html +1 -1
  26. package/docs/scoord3d.Ellipse.html +1 -1
  27. package/docs/scoord3d.Ellipsoid.html +1 -1
  28. package/docs/scoord3d.Multipoint.html +1 -1
  29. package/docs/scoord3d.Point.html +1 -1
  30. package/docs/scoord3d.Polygon.html +1 -1
  31. package/docs/scoord3d.Polyline.html +1 -1
  32. package/docs/scoord3d.html +1 -1
  33. package/docs/scoord3d.js.html +7 -7
  34. package/docs/utils.html +1 -1
  35. package/docs/utils.js.html +1 -1
  36. package/docs/viewer.LabelImageViewer.html +2 -2
  37. package/docs/viewer.OverviewImageViewer.html +2 -2
  38. package/docs/viewer.VolumeImageViewer.html +54 -54
  39. package/docs/viewer.html +1 -1
  40. package/docs/viewer.js.html +42 -9
  41. package/package.json +2 -2
  42. package/src/annotations/_AnnotationManager.js +12 -1
  43. package/src/annotations/markups/_MarkupManager.js +30 -1
  44. package/src/channel.js +2 -2
  45. package/src/scoord3d.js +6 -6
  46. package/src/viewer.js +41 -8
@@ -610,7 +610,7 @@ with Image Type VOLUME.</div>
610
610
 
611
611
  <dt class="tag-source">Source:</dt>
612
612
  <dd class="tag-source"><ul class="dummy"><li>
613
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2198">line 2198</a>
613
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2230">line 2230</a>
614
614
  </li></ul></dd>
615
615
 
616
616
 
@@ -672,7 +672,7 @@ with Image Type VOLUME.</div>
672
672
 
673
673
  <dt class="tag-source">Source:</dt>
674
674
  <dd class="tag-source"><ul class="dummy"><li>
675
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2207">line 2207</a>
675
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2239">line 2239</a>
676
676
  </li></ul></dd>
677
677
 
678
678
 
@@ -744,7 +744,7 @@ with Image Type VOLUME.</div>
744
744
 
745
745
  <dt class="tag-source">Source:</dt>
746
746
  <dd class="tag-source"><ul class="dummy"><li>
747
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1631">line 1631</a>
747
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1655">line 1655</a>
748
748
  </li></ul></dd>
749
749
 
750
750
 
@@ -816,7 +816,7 @@ with Image Type VOLUME.</div>
816
816
 
817
817
  <dt class="tag-source">Source:</dt>
818
818
  <dd class="tag-source"><ul class="dummy"><li>
819
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1640">line 1640</a>
819
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1664">line 1664</a>
820
820
  </li></ul></dd>
821
821
 
822
822
 
@@ -878,7 +878,7 @@ with Image Type VOLUME.</div>
878
878
 
879
879
  <dt class="tag-source">Source:</dt>
880
880
  <dd class="tag-source"><ul class="dummy"><li>
881
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1622">line 1622</a>
881
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1646">line 1646</a>
882
882
  </li></ul></dd>
883
883
 
884
884
 
@@ -940,7 +940,7 @@ with Image Type VOLUME.</div>
940
940
 
941
941
  <dt class="tag-source">Source:</dt>
942
942
  <dd class="tag-source"><ul class="dummy"><li>
943
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1951">line 1951</a>
943
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1979">line 1979</a>
944
944
  </li></ul></dd>
945
945
 
946
946
 
@@ -1002,7 +1002,7 @@ with Image Type VOLUME.</div>
1002
1002
 
1003
1003
  <dt class="tag-source">Source:</dt>
1004
1004
  <dd class="tag-source"><ul class="dummy"><li>
1005
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1903">line 1903</a>
1005
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1931">line 1931</a>
1006
1006
  </li></ul></dd>
1007
1007
 
1008
1008
 
@@ -1074,7 +1074,7 @@ with Image Type VOLUME.</div>
1074
1074
 
1075
1075
  <dt class="tag-source">Source:</dt>
1076
1076
  <dd class="tag-source"><ul class="dummy"><li>
1077
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1649">line 1649</a>
1077
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1673">line 1673</a>
1078
1078
  </li></ul></dd>
1079
1079
 
1080
1080
 
@@ -1136,7 +1136,7 @@ with Image Type VOLUME.</div>
1136
1136
 
1137
1137
  <dt class="tag-source">Source:</dt>
1138
1138
  <dd class="tag-source"><ul class="dummy"><li>
1139
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1982">line 1982</a>
1139
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2010">line 2010</a>
1140
1140
  </li></ul></dd>
1141
1141
 
1142
1142
 
@@ -1198,7 +1198,7 @@ with Image Type VOLUME.</div>
1198
1198
 
1199
1199
  <dt class="tag-source">Source:</dt>
1200
1200
  <dd class="tag-source"><ul class="dummy"><li>
1201
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1374">line 1374</a>
1201
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1378">line 1378</a>
1202
1202
  </li></ul></dd>
1203
1203
 
1204
1204
 
@@ -1278,7 +1278,7 @@ with Image Type VOLUME.</div>
1278
1278
 
1279
1279
  <dt class="tag-source">Source:</dt>
1280
1280
  <dd class="tag-source"><ul class="dummy"><li>
1281
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line983">line 983</a>
1281
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line987">line 987</a>
1282
1282
  </li></ul></dd>
1283
1283
 
1284
1284
 
@@ -1366,7 +1366,7 @@ with Image Type VOLUME.</div>
1366
1366
 
1367
1367
  <dt class="tag-source">Source:</dt>
1368
1368
  <dd class="tag-source"><ul class="dummy"><li>
1369
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1243">line 1243</a>
1369
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1247">line 1247</a>
1370
1370
  </li></ul></dd>
1371
1371
 
1372
1372
 
@@ -1476,7 +1476,7 @@ with Image Type VOLUME.</div>
1476
1476
 
1477
1477
  <dt class="tag-source">Source:</dt>
1478
1478
  <dd class="tag-source"><ul class="dummy"><li>
1479
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line959">line 959</a>
1479
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line963">line 963</a>
1480
1480
  </li></ul></dd>
1481
1481
 
1482
1482
 
@@ -1613,7 +1613,7 @@ with Image Type VOLUME.</div>
1613
1613
 
1614
1614
  <dt class="tag-source">Source:</dt>
1615
1615
  <dd class="tag-source"><ul class="dummy"><li>
1616
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line940">line 940</a>
1616
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line944">line 944</a>
1617
1617
  </li></ul></dd>
1618
1618
 
1619
1619
 
@@ -1750,7 +1750,7 @@ with Image Type VOLUME.</div>
1750
1750
 
1751
1751
  <dt class="tag-source">Source:</dt>
1752
1752
  <dd class="tag-source"><ul class="dummy"><li>
1753
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1833">line 1833</a>
1753
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1861">line 1861</a>
1754
1754
  </li></ul></dd>
1755
1755
 
1756
1756
 
@@ -1887,7 +1887,7 @@ with Image Type VOLUME.</div>
1887
1887
 
1888
1888
  <dt class="tag-source">Source:</dt>
1889
1889
  <dd class="tag-source"><ul class="dummy"><li>
1890
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1744">line 1744</a>
1890
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1772">line 1772</a>
1891
1891
  </li></ul></dd>
1892
1892
 
1893
1893
 
@@ -2427,7 +2427,7 @@ with Image Type VOLUME.</div>
2427
2427
 
2428
2428
  <dt class="tag-source">Source:</dt>
2429
2429
  <dd class="tag-source"><ul class="dummy"><li>
2430
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1487">line 1487</a>
2430
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1511">line 1511</a>
2431
2431
  </li></ul></dd>
2432
2432
 
2433
2433
 
@@ -2564,7 +2564,7 @@ with Image Type VOLUME.</div>
2564
2564
 
2565
2565
  <dt class="tag-source">Source:</dt>
2566
2566
  <dd class="tag-source"><ul class="dummy"><li>
2567
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1911">line 1911</a>
2567
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1939">line 1939</a>
2568
2568
  </li></ul></dd>
2569
2569
 
2570
2570
 
@@ -2701,7 +2701,7 @@ with Image Type VOLUME.</div>
2701
2701
 
2702
2702
  <dt class="tag-source">Source:</dt>
2703
2703
  <dd class="tag-source"><ul class="dummy"><li>
2704
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1302">line 1302</a>
2704
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1306">line 1306</a>
2705
2705
  </li></ul></dd>
2706
2706
 
2707
2707
 
@@ -2838,7 +2838,7 @@ with Image Type VOLUME.</div>
2838
2838
 
2839
2839
  <dt class="tag-source">Source:</dt>
2840
2840
  <dd class="tag-source"><ul class="dummy"><li>
2841
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1783">line 1783</a>
2841
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1811">line 1811</a>
2842
2842
  </li></ul></dd>
2843
2843
 
2844
2844
 
@@ -2975,7 +2975,7 @@ with Image Type VOLUME.</div>
2975
2975
 
2976
2976
  <dt class="tag-source">Source:</dt>
2977
2977
  <dd class="tag-source"><ul class="dummy"><li>
2978
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1875">line 1875</a>
2978
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1903">line 1903</a>
2979
2979
  </li></ul></dd>
2980
2980
 
2981
2981
 
@@ -3112,7 +3112,7 @@ with Image Type VOLUME.</div>
3112
3112
 
3113
3113
  <dt class="tag-source">Source:</dt>
3114
3114
  <dd class="tag-source"><ul class="dummy"><li>
3115
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1658">line 1658</a>
3115
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1682">line 1682</a>
3116
3116
  </li></ul></dd>
3117
3117
 
3118
3118
 
@@ -3488,7 +3488,7 @@ with Image Type VOLUME.</div>
3488
3488
 
3489
3489
  <dt class="tag-source">Source:</dt>
3490
3490
  <dd class="tag-source"><ul class="dummy"><li>
3491
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2067">line 2067</a>
3491
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2095">line 2095</a>
3492
3492
  </li></ul></dd>
3493
3493
 
3494
3494
 
@@ -3648,7 +3648,7 @@ with Image Type VOLUME.</div>
3648
3648
 
3649
3649
  <dt class="tag-source">Source:</dt>
3650
3650
  <dd class="tag-source"><ul class="dummy"><li>
3651
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2027">line 2027</a>
3651
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2055">line 2055</a>
3652
3652
  </li></ul></dd>
3653
3653
 
3654
3654
 
@@ -3808,7 +3808,7 @@ with Image Type VOLUME.</div>
3808
3808
 
3809
3809
  <dt class="tag-source">Source:</dt>
3810
3810
  <dd class="tag-source"><ul class="dummy"><li>
3811
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2004">line 2004</a>
3811
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2032">line 2032</a>
3812
3812
  </li></ul></dd>
3813
3813
 
3814
3814
 
@@ -4017,7 +4017,7 @@ with Image Type VOLUME.</div>
4017
4017
 
4018
4018
  <dt class="tag-source">Source:</dt>
4019
4019
  <dd class="tag-source"><ul class="dummy"><li>
4020
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2138">line 2138</a>
4020
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2170">line 2170</a>
4021
4021
  </li></ul></dd>
4022
4022
 
4023
4023
 
@@ -4105,7 +4105,7 @@ with Image Type VOLUME.</div>
4105
4105
 
4106
4106
  <dt class="tag-source">Source:</dt>
4107
4107
  <dd class="tag-source"><ul class="dummy"><li>
4108
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1862">line 1862</a>
4108
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1890">line 1890</a>
4109
4109
  </li></ul></dd>
4110
4110
 
4111
4111
 
@@ -4211,7 +4211,7 @@ with Image Type VOLUME.</div>
4211
4211
 
4212
4212
  <dt class="tag-source">Source:</dt>
4213
4213
  <dd class="tag-source"><ul class="dummy"><li>
4214
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1770">line 1770</a>
4214
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1798">line 1798</a>
4215
4215
  </li></ul></dd>
4216
4216
 
4217
4217
 
@@ -4317,7 +4317,7 @@ with Image Type VOLUME.</div>
4317
4317
 
4318
4318
  <dt class="tag-source">Source:</dt>
4319
4319
  <dd class="tag-source"><ul class="dummy"><li>
4320
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1609">line 1609</a>
4320
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1633">line 1633</a>
4321
4321
  </li></ul></dd>
4322
4322
 
4323
4323
 
@@ -4423,7 +4423,7 @@ with Image Type VOLUME.</div>
4423
4423
 
4424
4424
  <dt class="tag-source">Source:</dt>
4425
4425
  <dd class="tag-source"><ul class="dummy"><li>
4426
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1938">line 1938</a>
4426
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1966">line 1966</a>
4427
4427
  </li></ul></dd>
4428
4428
 
4429
4429
 
@@ -4560,7 +4560,7 @@ with Image Type VOLUME.</div>
4560
4560
 
4561
4561
  <dt class="tag-source">Source:</dt>
4562
4562
  <dd class="tag-source"><ul class="dummy"><li>
4563
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1314">line 1314</a>
4563
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1318">line 1318</a>
4564
4564
  </li></ul></dd>
4565
4565
 
4566
4566
 
@@ -4648,7 +4648,7 @@ with Image Type VOLUME.</div>
4648
4648
 
4649
4649
  <dt class="tag-source">Source:</dt>
4650
4650
  <dd class="tag-source"><ul class="dummy"><li>
4651
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1820">line 1820</a>
4651
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1848">line 1848</a>
4652
4652
  </li></ul></dd>
4653
4653
 
4654
4654
 
@@ -4754,7 +4754,7 @@ with Image Type VOLUME.</div>
4754
4754
 
4755
4755
  <dt class="tag-source">Source:</dt>
4756
4756
  <dd class="tag-source"><ul class="dummy"><li>
4757
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1890">line 1890</a>
4757
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1918">line 1918</a>
4758
4758
  </li></ul></dd>
4759
4759
 
4760
4760
 
@@ -4860,7 +4860,7 @@ with Image Type VOLUME.</div>
4860
4860
 
4861
4861
  <dt class="tag-source">Source:</dt>
4862
4862
  <dd class="tag-source"><ul class="dummy"><li>
4863
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1731">line 1731</a>
4863
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1759">line 1759</a>
4864
4864
  </li></ul></dd>
4865
4865
 
4866
4866
 
@@ -4966,7 +4966,7 @@ with Image Type VOLUME.</div>
4966
4966
 
4967
4967
  <dt class="tag-source">Source:</dt>
4968
4968
  <dd class="tag-source"><ul class="dummy"><li>
4969
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1960">line 1960</a>
4969
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1988">line 1988</a>
4970
4970
  </li></ul></dd>
4971
4971
 
4972
4972
 
@@ -5125,7 +5125,7 @@ with Image Type VOLUME.</div>
5125
5125
 
5126
5126
  <dt class="tag-source">Source:</dt>
5127
5127
  <dd class="tag-source"><ul class="dummy"><li>
5128
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1294">line 1294</a>
5128
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1298">line 1298</a>
5129
5129
  </li></ul></dd>
5130
5130
 
5131
5131
 
@@ -5284,7 +5284,7 @@ with Image Type VOLUME.</div>
5284
5284
 
5285
5285
  <dt class="tag-source">Source:</dt>
5286
5286
  <dd class="tag-source"><ul class="dummy"><li>
5287
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1182">line 1182</a>
5287
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1186">line 1186</a>
5288
5288
  </li></ul></dd>
5289
5289
 
5290
5290
 
@@ -5443,7 +5443,7 @@ with Image Type VOLUME.</div>
5443
5443
 
5444
5444
  <dt class="tag-source">Source:</dt>
5445
5445
  <dd class="tag-source"><ul class="dummy"><li>
5446
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1214">line 1214</a>
5446
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1218">line 1218</a>
5447
5447
  </li></ul></dd>
5448
5448
 
5449
5449
 
@@ -5602,7 +5602,7 @@ with Image Type VOLUME.</div>
5602
5602
 
5603
5603
  <dt class="tag-source">Source:</dt>
5604
5604
  <dd class="tag-source"><ul class="dummy"><li>
5605
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1992">line 1992</a>
5605
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2020">line 2020</a>
5606
5606
  </li></ul></dd>
5607
5607
 
5608
5608
 
@@ -5761,7 +5761,7 @@ with Image Type VOLUME.</div>
5761
5761
 
5762
5762
  <dt class="tag-source">Source:</dt>
5763
5763
  <dd class="tag-source"><ul class="dummy"><li>
5764
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1352">line 1352</a>
5764
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1356">line 1356</a>
5765
5765
  </li></ul></dd>
5766
5766
 
5767
5767
 
@@ -5850,7 +5850,7 @@ with Image Type VOLUME.</div>
5850
5850
 
5851
5851
  <dt class="tag-source">Source:</dt>
5852
5852
  <dd class="tag-source"><ul class="dummy"><li>
5853
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2177">line 2177</a>
5853
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2209">line 2209</a>
5854
5854
  </li></ul></dd>
5855
5855
 
5856
5856
 
@@ -5987,7 +5987,7 @@ with Image Type VOLUME.</div>
5987
5987
 
5988
5988
  <dt class="tag-source">Source:</dt>
5989
5989
  <dd class="tag-source"><ul class="dummy"><li>
5990
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1327">line 1327</a>
5990
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1331">line 1331</a>
5991
5991
  </li></ul></dd>
5992
5992
 
5993
5993
 
@@ -6097,7 +6097,7 @@ with Image Type VOLUME.</div>
6097
6097
 
6098
6098
  <dt class="tag-source">Source:</dt>
6099
6099
  <dd class="tag-source"><ul class="dummy"><li>
6100
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2048">line 2048</a>
6100
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2076">line 2076</a>
6101
6101
  </li></ul></dd>
6102
6102
 
6103
6103
 
@@ -6207,7 +6207,7 @@ with Image Type VOLUME.</div>
6207
6207
 
6208
6208
  <dt class="tag-source">Source:</dt>
6209
6209
  <dd class="tag-source"><ul class="dummy"><li>
6210
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2168">line 2168</a>
6210
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2200">line 2200</a>
6211
6211
  </li></ul></dd>
6212
6212
 
6213
6213
 
@@ -6362,7 +6362,7 @@ with Image Type VOLUME.</div>
6362
6362
 
6363
6363
  <dt class="tag-source">Source:</dt>
6364
6364
  <dd class="tag-source"><ul class="dummy"><li>
6365
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2147">line 2147</a>
6365
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2179">line 2179</a>
6366
6366
  </li></ul></dd>
6367
6367
 
6368
6368
 
@@ -6551,7 +6551,7 @@ with Image Type VOLUME.</div>
6551
6551
 
6552
6552
  <dt class="tag-source">Source:</dt>
6553
6553
  <dd class="tag-source"><ul class="dummy"><li>
6554
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1384">line 1384</a>
6554
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1388">line 1388</a>
6555
6555
  </li></ul></dd>
6556
6556
 
6557
6557
 
@@ -6639,7 +6639,7 @@ with Image Type VOLUME.</div>
6639
6639
 
6640
6640
  <dt class="tag-source">Source:</dt>
6641
6641
  <dd class="tag-source"><ul class="dummy"><li>
6642
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1365">line 1365</a>
6642
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1369">line 1369</a>
6643
6643
  </li></ul></dd>
6644
6644
 
6645
6645
 
@@ -6935,7 +6935,7 @@ with Image Type VOLUME.</div>
6935
6935
 
6936
6936
  <dt class="tag-source">Source:</dt>
6937
6937
  <dd class="tag-source"><ul class="dummy"><li>
6938
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1227">line 1227</a>
6938
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1231">line 1231</a>
6939
6939
  </li></ul></dd>
6940
6940
 
6941
6941
 
@@ -7311,7 +7311,7 @@ with Image Type VOLUME.</div>
7311
7311
 
7312
7312
  <dt class="tag-source">Source:</dt>
7313
7313
  <dd class="tag-source"><ul class="dummy"><li>
7314
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2122">line 2122</a>
7314
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2152">line 2152</a>
7315
7315
  </li></ul></dd>
7316
7316
 
7317
7317
 
@@ -7448,7 +7448,7 @@ with Image Type VOLUME.</div>
7448
7448
 
7449
7449
  <dt class="tag-source">Source:</dt>
7450
7450
  <dd class="tag-source"><ul class="dummy"><li>
7451
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1341">line 1341</a>
7451
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1345">line 1345</a>
7452
7452
  </li></ul></dd>
7453
7453
 
7454
7454
 
@@ -7537,7 +7537,7 @@ with Image Type VOLUME.</div>
7537
7537
 
7538
7538
  <dt class="tag-source">Source:</dt>
7539
7539
  <dd class="tag-source"><ul class="dummy"><li>
7540
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2187">line 2187</a>
7540
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2219">line 2219</a>
7541
7541
  </li></ul></dd>
7542
7542
 
7543
7543
 
@@ -7625,7 +7625,7 @@ with Image Type VOLUME.</div>
7625
7625
 
7626
7626
  <dt class="tag-source">Source:</dt>
7627
7627
  <dd class="tag-source"><ul class="dummy"><li>
7628
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1716">line 1716</a>
7628
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line1740">line 1740</a>
7629
7629
  </li></ul></dd>
7630
7630
 
7631
7631
 
@@ -7970,7 +7970,7 @@ with Image Type VOLUME.</div>
7970
7970
 
7971
7971
  <dt class="tag-source">Source:</dt>
7972
7972
  <dd class="tag-source"><ul class="dummy"><li>
7973
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2098">line 2098</a>
7973
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2128">line 2128</a>
7974
7974
  </li></ul></dd>
7975
7975
 
7976
7976
 
@@ -8022,7 +8022,7 @@ with Image Type VOLUME.</div>
8022
8022
  <br class="clear">
8023
8023
 
8024
8024
  <footer>
8025
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Wed Oct 06 2021 05:27:34 GMT-0400 (Eastern Daylight Time)
8025
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Fri Oct 15 2021 08:06:41 GMT-0400 (Eastern Daylight Time)
8026
8026
  </footer>
8027
8027
 
8028
8028
  <script> prettyPrint(); </script>
package/docs/viewer.html CHANGED
@@ -136,7 +136,7 @@
136
136
  <br class="clear">
137
137
 
138
138
  <footer>
139
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Wed Oct 06 2021 05:27:34 GMT-0400 (Eastern Daylight Time)
139
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Fri Oct 15 2021 08:06:41 GMT-0400 (Eastern Daylight Time)
140
140
  </footer>
141
141
 
142
142
  <script> prettyPrint(); </script>
@@ -765,7 +765,8 @@ class VolumeImageViewer {
765
765
  resolutions: this[_tileGrid].getResolutions(),
766
766
  rotation: this[_rotation],
767
767
  smoothResolutionConstraint: true,
768
- showFullExtent: true
768
+ showFullExtent: true,
769
+ extent: this[_referenceExtents]
769
770
  })
770
771
 
771
772
  // Create a rendering engine object for offscreen rendering
@@ -854,7 +855,9 @@ class VolumeImageViewer {
854
855
  rotation: this[_rotation],
855
856
  zoom: 0,
856
857
  minZoom: 0,
857
- maxZoom: 0
858
+ maxZoom: 0,
859
+ constrainOnlyCenter: true,
860
+ center: getCenter(this[_referenceExtents])
858
861
  })
859
862
 
860
863
  this[_overviewMap] = new OverviewMap({
@@ -872,7 +875,7 @@ class VolumeImageViewer {
872
875
  keyboardEventTarget: document
873
876
  })
874
877
 
875
- view.fit(this[_projection].getExtent(), this[_map].getSize())
878
+ view.fit(this[_projection].getExtent(), { size: this[_map].getSize() })
876
879
 
877
880
  /**
878
881
  * OpenLayer's map has default active interactions
@@ -922,7 +925,8 @@ class VolumeImageViewer {
922
925
 
923
926
  this[_annotationManager] = new _AnnotationManager({
924
927
  map: this[_map],
925
- pyramid: this[_pyramidMetadata]
928
+ pyramid: this[_pyramidMetadata],
929
+ drawingSource: this[_drawingSource]
926
930
  })
927
931
 
928
932
  // This updates the tiles offscreen rendering when zoom is applied to the view.
@@ -1416,7 +1420,7 @@ class VolumeImageViewer {
1416
1420
  this[_map].setTarget(options.container)
1417
1421
  const view = this[_map].getView()
1418
1422
  const projection = view.getProjection()
1419
- view.fit(projection.getExtent(), this[_map].getSize())
1423
+ view.fit(projection.getExtent(), { size: this[_map].getSize() })
1420
1424
 
1421
1425
  // Style scale element (overriding default Openlayers CSS "ol-scale-line")
1422
1426
  const scaleElement = this[_controls].scale.element
@@ -1443,6 +1447,26 @@ class VolumeImageViewer {
1443
1447
  scaleInnerElement.style.margin = '1px'
1444
1448
  scaleInnerElement.style.willChange = 'contents,width'
1445
1449
 
1450
+ const overviewElement = this[_overviewMap].element
1451
+ const overviewmapElement = Object.values(overviewElement.children).find(
1452
+ c => c.className === 'ol-overviewmap-map'
1453
+ )
1454
+ overviewmapElement.style.border = '1px solid black'
1455
+ // Try to fit the overview map into the target control overlay container
1456
+ const resizeFactor = 300
1457
+ let width = Math.abs(this[_referenceExtents][1]) / resizeFactor
1458
+ let height = Math.abs(this[_referenceExtents][2]) / resizeFactor
1459
+ if (width > 400 || height > 400) {
1460
+ width /= 2
1461
+ height /= 2
1462
+ }
1463
+ if (width &lt; 150 || height &lt; 150) {
1464
+ width *= 1.5
1465
+ height *= 1.5
1466
+ }
1467
+ overviewmapElement.style.width = `${width}px`
1468
+ overviewmapElement.style.height = `${height}px`
1469
+
1446
1470
  const container = this[_map].getTargetElement()
1447
1471
 
1448
1472
  this[_drawingSource].on(VectorEventType.ADDFEATURE, (e) => {
@@ -1749,6 +1773,10 @@ class VolumeImageViewer {
1749
1773
  return
1750
1774
  }
1751
1775
  this[_map].addControl(this[_overviewMap])
1776
+ const map = this[_overviewMap].getOverviewMap()
1777
+ const view = map.getView()
1778
+ const projection = view.getProjection()
1779
+ view.fit(projection.getExtent(), { size: map.getSize() })
1752
1780
  }
1753
1781
 
1754
1782
  /**
@@ -2110,6 +2138,8 @@ class VolumeImageViewer {
2110
2138
  this[_features].push(feature)
2111
2139
 
2112
2140
  _setFeatureStyle(feature, styleOptions)
2141
+ const isVisible = Object.keys(styleOptions).length !== 0
2142
+ this[_annotationManager].setMarkupVisibility(roi.uid, isVisible)
2113
2143
  }
2114
2144
 
2115
2145
  /**
@@ -2152,6 +2182,8 @@ class VolumeImageViewer {
2152
2182
  const id = feature.getId()
2153
2183
  if (id === uid) {
2154
2184
  _setFeatureStyle(feature, styleOptions)
2185
+ const isVisible = Object.keys(styleOptions).length !== 0
2186
+ this[_annotationManager].setMarkupVisibility(id, isVisible)
2155
2187
  }
2156
2188
  })
2157
2189
  }
@@ -2335,7 +2367,8 @@ class _NonVolumeImageViewer {
2335
2367
  const view = new View({
2336
2368
  center: getCenter(extent),
2337
2369
  rotation: rotation,
2338
- projection: projection
2370
+ projection: projection,
2371
+ extent: extent
2339
2372
  })
2340
2373
 
2341
2374
  // Creates the map with the defined layers and view and renders it.
@@ -2346,7 +2379,7 @@ class _NonVolumeImageViewer {
2346
2379
  keyboardEventTarget: document
2347
2380
  })
2348
2381
 
2349
- view.fit(projection.getExtent(), this[_map].getSize())
2382
+ view.fit(projection.getExtent(), { size: this[_map].getSize() })
2350
2383
  }
2351
2384
 
2352
2385
  /** Renders the image in the specified viewport container.
@@ -2360,7 +2393,7 @@ class _NonVolumeImageViewer {
2360
2393
  this[_map].setTarget(options.container)
2361
2394
  const view = this[_map].getView()
2362
2395
  const projection = view.getProjection()
2363
- view.fit(projection.getExtent(), this[_map].getSize())
2396
+ view.fit(projection.getExtent(), { size: this[_map].getSize() })
2364
2397
 
2365
2398
  this[_map].getInteractions().forEach((interaction) => {
2366
2399
  this[_map].removeInteraction(interaction)
@@ -2462,7 +2495,7 @@ export { LabelImageViewer, OverviewImageViewer, VolumeImageViewer }
2462
2495
  <br class="clear">
2463
2496
 
2464
2497
  <footer>
2465
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Wed Oct 06 2021 05:27:33 GMT-0400 (Eastern Daylight Time)
2498
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Fri Oct 15 2021 08:06:40 GMT-0400 (Eastern Daylight Time)
2466
2499
  </footer>
2467
2500
 
2468
2501
  <script> prettyPrint(); </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dicom-microscopy-viewer",
3
- "version": "0.34.0",
3
+ "version": "0.35.0",
4
4
  "description": "Interactive web-based viewer for DICOM Microscopy Images",
5
5
  "main": "./src/dicom-microscopy-viewer.js",
6
6
  "standard": {
@@ -65,7 +65,7 @@
65
65
  "dicomweb-client": "^0.8",
66
66
  "image-type": "^4.1",
67
67
  "mathjs": "^9.4",
68
- "ol": "^6.8"
68
+ "ol": "^6.9"
69
69
  },
70
70
  "config": {
71
71
  "puppeteer_skip_chromium_download": false