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
@@ -50,10 +50,11 @@ import { areCodedConceptsEqual, getContentItemNameCodedConcept } from '../utils'
50
50
  const { Marker, Markup } = Enums
51
51
 
52
52
  class _AnnotationManager {
53
- constructor ({ map, pyramid } = {}) {
53
+ constructor ({ map, pyramid, drawingSource } = {}) {
54
54
  const markupManager = new _MarkupManager({
55
55
  map,
56
56
  pyramid,
57
+ drawingSource,
57
58
  formatters: {
58
59
  [Marker.Arrow]: arrowFormat,
59
60
  [Markup.Measurement]: measurementFormat,
@@ -149,6 +150,16 @@ class _AnnotationManager {
149
150
  this.props.markupManager.setVisible(isVisible)
150
151
  }
151
152
 
153
+ /**
154
+ * Set markup visibility.
155
+ *
156
+ * @param {string} id The markup id
157
+ * @param {boolean} isVisible The markup visibility
158
+ */
159
+ setMarkupVisibility (id, isVisible) {
160
+ this.props.markupManager.setVisibility(id, isVisible)
161
+ }
162
+
152
163
  onAdd (feature) {
153
164
  /**
154
165
  * Add properties to ROI feature before triggering
@@ -217,7 +228,7 @@ export default _AnnotationManager
217
228
  <br class="clear">
218
229
 
219
230
  <footer>
220
- 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)
231
+ 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)
221
232
  </footer>
222
233
 
223
234
  <script> prettyPrint(); </script>
@@ -211,7 +211,7 @@ export default ArrowMarker
211
211
  <br class="clear">
212
212
 
213
213
  <footer>
214
- 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)
214
+ 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)
215
215
  </footer>
216
216
 
217
217
  <script> prettyPrint(); </script>
@@ -43,10 +43,11 @@ import { coordinateWithOffset } from '../../scoord3dUtils'
43
43
  import defaultStyles from '../styles'
44
44
 
45
45
  class _MarkupManager {
46
- constructor ({ map, pyramid, formatters, onClick, onStyle } = {}) {
46
+ constructor ({ map, pyramid, drawingSource, formatters, onClick, onStyle } = {}) {
47
47
  this._map = map
48
48
  this._pyramid = pyramid
49
49
  this._formatters = formatters
50
+ this._drawingSource = drawingSource;
50
51
 
51
52
  this.onClick = onClick
52
53
  this.onStyle = onStyle
@@ -138,6 +139,34 @@ class _MarkupManager {
138
139
  return id
139
140
  }
140
141
 
142
+ /**
143
+ * Set markup visibility.
144
+ *
145
+ * @param {string} id The markup id
146
+ * @param {boolean} isVisible The markup visibility
147
+ */
148
+ setVisibility (id, isVisible) {
149
+ const markup = this.get(id)
150
+ if (!markup) {
151
+ return;
152
+ }
153
+
154
+ const links = this._links.getArray()
155
+ const link = links.find((feature) => feature.getId() === id)
156
+
157
+ const feature = this._drawingSource.getFeatureById(id);
158
+
159
+ if (!isVisible) {
160
+ this._map.removeOverlay(markup.overlay)
161
+ this._links.remove(link)
162
+ } else {
163
+ this._map.addOverlay(markup.overlay)
164
+ this._drawLink(feature)
165
+ }
166
+
167
+ return isVisible
168
+ }
169
+
141
170
  /**
142
171
  * Creates a new markup
143
172
  *
@@ -464,7 +493,7 @@ export default _MarkupManager
464
493
  <br class="clear">
465
494
 
466
495
  <footer>
467
- 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)
496
+ 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)
468
497
  </footer>
469
498
 
470
499
  <script> prettyPrint(); </script>
@@ -117,7 +117,7 @@ export default MeasurementMarkup
117
117
  <br class="clear">
118
118
 
119
119
  <footer>
120
- 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)
120
+ 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)
121
121
  </footer>
122
122
 
123
123
  <script> prettyPrint(); </script>
@@ -175,7 +175,7 @@ export default TextEvaluationMarkup
175
175
  <br class="clear">
176
176
 
177
177
  <footer>
178
- 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)
178
+ 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)
179
179
  </footer>
180
180
 
181
181
  <script> prettyPrint(); </script>
@@ -87,7 +87,7 @@ export default getShortestLineBetweenOverlayAndFeature
87
87
  <br class="clear">
88
88
 
89
89
  <footer>
90
- 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)
90
+ 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)
91
91
  </footer>
92
92
 
93
93
  <script> prettyPrint(); </script>
package/docs/api.html CHANGED
@@ -125,7 +125,7 @@
125
125
  <br class="clear">
126
126
 
127
127
  <footer>
128
- 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)
128
+ 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)
129
129
  </footer>
130
130
 
131
131
  <script> prettyPrint(); </script>
@@ -162,7 +162,7 @@ with Image Type VOLUME.</div>
162
162
  <br class="clear">
163
163
 
164
164
  <footer>
165
- 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)
165
+ 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)
166
166
  </footer>
167
167
 
168
168
  <script> prettyPrint(); </script>
@@ -1760,7 +1760,7 @@ This is called at every zoom interaction.
1760
1760
  <br class="clear">
1761
1761
 
1762
1762
  <footer>
1763
- 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)
1763
+ 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)
1764
1764
  </footer>
1765
1765
 
1766
1766
  <script> prettyPrint(); </script>
@@ -631,8 +631,8 @@ class _Channel {
631
631
  imagePixelSpacings.push(pixelSpacing)
632
632
 
633
633
  physicalSizes.push([
634
- (totalPixelMatrixColumns * pixelSpacing[0]).toFixed(4),
635
- (totalPixelMatrixRows * pixelSpacing[1]).toFixed(4)
634
+ (totalPixelMatrixColumns * pixelSpacing[1]).toFixed(4),
635
+ (totalPixelMatrixRows * pixelSpacing[0]).toFixed(4)
636
636
  ])
637
637
  /*
638
638
  * Compute the resolution at each pyramid level, since the zoom
@@ -845,7 +845,7 @@ export { _Channel, BlendingInformation }
845
845
  <br class="clear">
846
846
 
847
847
  <footer>
848
- 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)
848
+ 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)
849
849
  </footer>
850
850
 
851
851
  <script> prettyPrint(); </script>
@@ -153,7 +153,7 @@ export { api, events, metadata, roi, scoord3d, utils, viewer }
153
153
  <br class="clear">
154
154
 
155
155
  <footer>
156
- 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)
156
+ 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)
157
157
  </footer>
158
158
 
159
159
  <script> prettyPrint(); </script>
package/docs/events.html CHANGED
@@ -123,7 +123,7 @@
123
123
  <br class="clear">
124
124
 
125
125
  <footer>
126
- 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)
126
+ 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)
127
127
  </footer>
128
128
 
129
129
  <script> prettyPrint(); </script>
@@ -64,7 +64,7 @@ export default EVENTS
64
64
  <br class="clear">
65
65
 
66
66
  <footer>
67
- 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)
67
+ 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)
68
68
  </footer>
69
69
 
70
70
  <script> prettyPrint(); </script>
package/docs/global.html CHANGED
@@ -6357,7 +6357,7 @@ distance between a given overlay and a feature.
6357
6357
  <br class="clear">
6358
6358
 
6359
6359
  <footer>
6360
- 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)
6360
+ 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)
6361
6361
  </footer>
6362
6362
 
6363
6363
  <script> prettyPrint(); </script>
package/docs/index.html CHANGED
@@ -178,7 +178,7 @@ npm test
178
178
  <br class="clear">
179
179
 
180
180
  <footer>
181
- 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)
181
+ 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)
182
182
  </footer>
183
183
 
184
184
  <script> prettyPrint(); </script>
@@ -162,7 +162,7 @@
162
162
  <br class="clear">
163
163
 
164
164
  <footer>
165
- 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)
165
+ 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)
166
166
  </footer>
167
167
 
168
168
  <script> prettyPrint(); </script>
@@ -163,7 +163,7 @@
163
163
  <br class="clear">
164
164
 
165
165
  <footer>
166
- 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)
166
+ 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)
167
167
  </footer>
168
168
 
169
169
  <script> prettyPrint(); </script>
@@ -617,7 +617,7 @@ Bulkdata elements will be skipped.
617
617
  <br class="clear">
618
618
 
619
619
  <footer>
620
- 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)
620
+ 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)
621
621
  </footer>
622
622
 
623
623
  <script> prettyPrint(); </script>
@@ -306,7 +306,7 @@ export {
306
306
  <br class="clear">
307
307
 
308
308
  <footer>
309
- 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)
309
+ 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)
310
310
  </footer>
311
311
 
312
312
  <script> prettyPrint(); </script>
@@ -1103,7 +1103,7 @@ https://en.wikipedia.org/wiki/Magic_number_(programming)#Magic_numbers_in_files
1103
1103
  <br class="clear">
1104
1104
 
1105
1105
  <footer>
1106
- 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)
1106
+ 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)
1107
1107
  </footer>
1108
1108
 
1109
1109
  <script> prettyPrint(); </script>
@@ -1019,7 +1019,7 @@ export {
1019
1019
  <br class="clear">
1020
1020
 
1021
1021
  <footer>
1022
- 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)
1022
+ 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)
1023
1023
  </footer>
1024
1024
 
1025
1025
  <script> prettyPrint(); </script>
package/docs/roi.ROI.html CHANGED
@@ -656,7 +656,7 @@
656
656
  <br class="clear">
657
657
 
658
658
  <footer>
659
- 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)
659
+ 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)
660
660
  </footer>
661
661
 
662
662
  <script> prettyPrint(); </script>
package/docs/roi.html CHANGED
@@ -130,7 +130,7 @@
130
130
  <br class="clear">
131
131
 
132
132
  <footer>
133
- 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)
133
+ 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)
134
134
  </footer>
135
135
 
136
136
  <script> prettyPrint(); </script>
package/docs/roi.js.html CHANGED
@@ -154,7 +154,7 @@ export { ROI }
154
154
  <br class="clear">
155
155
 
156
156
  <footer>
157
- 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)
157
+ 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)
158
158
  </footer>
159
159
 
160
160
  <script> prettyPrint(); </script>
@@ -664,7 +664,7 @@ forth coordinates represent the endpoints of the minor axis.</div>
664
664
  <br class="clear">
665
665
 
666
666
  <footer>
667
- 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)
667
+ 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)
668
668
  </footer>
669
669
 
670
670
  <script> prettyPrint(); </script>
@@ -665,7 +665,7 @@ sixth coordinates represent the endpoints of the third axis.</div>
665
665
  <br class="clear">
666
666
 
667
667
  <footer>
668
- 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)
668
+ 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)
669
669
  </footer>
670
670
 
671
671
  <script> prettyPrint(); </script>
@@ -662,7 +662,7 @@ represent individual points.</div>
662
662
  <br class="clear">
663
663
 
664
664
  <footer>
665
- 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)
665
+ 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)
666
666
  </footer>
667
667
 
668
668
  <script> prettyPrint(); </script>
@@ -661,7 +661,7 @@
661
661
  <br class="clear">
662
662
 
663
663
  <footer>
664
- 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)
664
+ 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)
665
665
  </footer>
666
666
 
667
667
  <script> prettyPrint(); </script>
@@ -663,7 +663,7 @@ The first and last coordinate should be identical.</div>
663
663
  <br class="clear">
664
664
 
665
665
  <footer>
666
- 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)
666
+ 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)
667
667
  </footer>
668
668
 
669
669
  <script> prettyPrint(); </script>
@@ -662,7 +662,7 @@ represent vertices of connected line segments.</div>
662
662
  <br class="clear">
663
663
 
664
664
  <footer>
665
- 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)
665
+ 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)
666
666
  </footer>
667
667
 
668
668
  <script> prettyPrint(); </script>
@@ -145,7 +145,7 @@
145
145
  <br class="clear">
146
146
 
147
147
  <footer>
148
- 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)
148
+ 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)
149
149
  </footer>
150
150
 
151
151
  <script> prettyPrint(); </script>
@@ -106,7 +106,7 @@ class Point extends Scoord3D {
106
106
  throw new Error('coordinates of Point must be an array of length 3')
107
107
  }
108
108
  if (options.coordinates.some(c => c &lt; 0)) {
109
- throw new Error('coordinates of Point must be positive numbers')
109
+ console.warn('coordinates of Point are negative numbers')
110
110
  }
111
111
  super({
112
112
  coordinates: options.coordinates,
@@ -151,7 +151,7 @@ class Multipoint extends Scoord3D {
151
151
  throw new Error('coordinates of Multipoint must be an array of (X,Y,Z) triplets')
152
152
  }
153
153
  if (options.coordinates.find(c => c.some(item => item &lt; 0))) {
154
- throw new Error('coordinates of Multipoint must be positive numbers')
154
+ console.warn('coordinates of Multipoint contain positive numbers')
155
155
  }
156
156
  super({
157
157
  coordinates: options.coordinates,
@@ -188,7 +188,7 @@ class Polyline extends Scoord3D {
188
188
  throw new Error('coordinates of Polyline must be an array of (X,Y,Z) triplets')
189
189
  }
190
190
  if (options.coordinates.find(c => c.some(item => item &lt; 0))) {
191
- throw new Error('coordinates of Polyline must be positive numbers')
191
+ console.warn('coordinates of Polyline contain negative numbers')
192
192
  }
193
193
  super({
194
194
  coordinates: options.coordinates,
@@ -226,7 +226,7 @@ class Polygon extends Scoord3D {
226
226
  throw new Error('coordinates of Polygon must be an array of (X,Y,Z) triplets')
227
227
  }
228
228
  if (options.coordinates.find(c => c.some(item => item &lt; 0))) {
229
- throw new Error('coordinates of Polygon must be positive numbers')
229
+ console.warn('coordinates of Polygon contain negative numbers')
230
230
  }
231
231
  const n = options.coordinates.length
232
232
  if ((options.coordinates[0][0] !== options.coordinates[n - 1][0]) ||
@@ -275,7 +275,7 @@ class Ellipsoid extends Scoord3D {
275
275
  throw new Error('coordinates of Ellipsoid must be an array of (X,Y,Z) triplets')
276
276
  }
277
277
  if (options.coordinates.find(c => c.some(item => item &lt; 0))) {
278
- throw new Error('coordinates of Ellipsoid must be positive numbers')
278
+ console.warn('coordinates of Ellipsoid contain negative numbers')
279
279
  }
280
280
  super({
281
281
  coordinates: options.coordinates,
@@ -317,7 +317,7 @@ class Ellipse extends Scoord3D {
317
317
  throw new Error('coordinates of Ellipse must be an array of (X,Y,Z) triplets')
318
318
  }
319
319
  if (options.coordinates.find(c => c.some(item => item &lt; 0))) {
320
- throw new Error('coordinates of Ellipse must be positive numbers')
320
+ console.warn('coordinates of Ellipse contain negative numbers')
321
321
  }
322
322
  const firstAxis = [
323
323
  options.coordinates[0][0] - options.coordinates[1][0],
@@ -377,7 +377,7 @@ export { Point, Multipoint, Polyline, Polygon, Ellipse, Ellipsoid }
377
377
  <br class="clear">
378
378
 
379
379
  <footer>
380
- 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)
380
+ 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)
381
381
  </footer>
382
382
 
383
383
  <script> prettyPrint(); </script>
package/docs/utils.html CHANGED
@@ -683,7 +683,7 @@ to 3D (X, Y, Z) slide coordinates in the Frame of Reference.
683
683
  <br class="clear">
684
684
 
685
685
  <footer>
686
- 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)
686
+ 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)
687
687
  </footer>
688
688
 
689
689
  <script> prettyPrint(); </script>
@@ -549,7 +549,7 @@ export {
549
549
  <br class="clear">
550
550
 
551
551
  <footer>
552
- 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)
552
+ 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)
553
553
  </footer>
554
554
 
555
555
  <script> prettyPrint(); </script>
@@ -365,7 +365,7 @@ with Image Type LABEL.</div>
365
365
 
366
366
  <dt class="tag-source">Source:</dt>
367
367
  <dd class="tag-source"><ul class="dummy"><li>
368
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2412">line 2412</a>
368
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2445">line 2445</a>
369
369
  </li></ul></dd>
370
370
 
371
371
 
@@ -433,7 +433,7 @@ with Image Type LABEL.</div>
433
433
  <br class="clear">
434
434
 
435
435
  <footer>
436
- 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)
436
+ 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)
437
437
  </footer>
438
438
 
439
439
  <script> prettyPrint(); </script>
@@ -365,7 +365,7 @@ with Image Type OVERVIEW.</div>
365
365
 
366
366
  <dt class="tag-source">Source:</dt>
367
367
  <dd class="tag-source"><ul class="dummy"><li>
368
- <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2387">line 2387</a>
368
+ <a href="viewer.js.html">viewer.js</a>, <a href="viewer.js.html#line2420">line 2420</a>
369
369
  </li></ul></dd>
370
370
 
371
371
 
@@ -433,7 +433,7 @@ with Image Type OVERVIEW.</div>
433
433
  <br class="clear">
434
434
 
435
435
  <footer>
436
- 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)
436
+ 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)
437
437
  </footer>
438
438
 
439
439
  <script> prettyPrint(); </script>