Skip to content

Commit 509557f

Browse files
committed
Update package version and documentation
1 parent 3dfb58d commit 509557f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+73
-70
lines changed

docs/annotation.AnnotationGroup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="annota
11941194
<br class="clear">
11951195

11961196
<footer>
1197-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:28:05 GMT-0400 (Eastern Daylight Time)
1197+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 17:56:50 GMT-0400 (Eastern Daylight Time)
11981198
</footer>
11991199

12001200
<script> prettyPrint(); </script>

docs/annotation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="annota
131131
<br class="clear">
132132

133133
<footer>
134-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:28:05 GMT-0400 (Eastern Daylight Time)
134+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 17:56:50 GMT-0400 (Eastern Daylight Time)
135135
</footer>
136136

137137
<script> prettyPrint(); </script>

docs/annotation.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="annota
772772
<br class="clear">
773773

774774
<footer>
775-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:28:05 GMT-0400 (Eastern Daylight Time)
775+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 17:56:50 GMT-0400 (Eastern Daylight Time)
776776
</footer>
777777

778778
<script> prettyPrint(); </script>

docs/annotations__AnnotationManager.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="annota
228228
<br class="clear">
229229

230230
<footer>
231-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:28:05 GMT-0400 (Eastern Daylight Time)
231+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 17:56:50 GMT-0400 (Eastern Daylight Time)
232232
</footer>
233233

234234
<script> prettyPrint(); </script>

docs/annotations_markups__MarkupManager.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="annota
553553
<br class="clear">
554554

555555
<footer>
556-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:28:05 GMT-0400 (Eastern Daylight Time)
556+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 17:56:50 GMT-0400 (Eastern Daylight Time)
557557
</footer>
558558

559559
<script> prettyPrint(); </script>

docs/api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="annota
125125
<br class="clear">
126126

127127
<footer>
128-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:28:05 GMT-0400 (Eastern Daylight Time)
128+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 17:56:50 GMT-0400 (Eastern Daylight Time)
129129
</footer>
130130

131131
<script> prettyPrint(); </script>

docs/color.PaletteColorLookupTable.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ <h5>Type:</h5>
523523

524524
<dt class="tag-source">Source:</dt>
525525
<dd class="tag-source"><ul class="dummy"><li>
526-
<a href="color.js.html">color.js</a>, <a href="color.js.html#line330">line 330</a>
526+
<a href="color.js.html">color.js</a>, <a href="color.js.html#line331">line 331</a>
527527
</li></ul></dd>
528528

529529

@@ -595,7 +595,7 @@ <h5>Type:</h5>
595595

596596
<dt class="tag-source">Source:</dt>
597597
<dd class="tag-source"><ul class="dummy"><li>
598-
<a href="color.js.html">color.js</a>, <a href="color.js.html#line407">line 407</a>
598+
<a href="color.js.html">color.js</a>, <a href="color.js.html#line410">line 410</a>
599599
</li></ul></dd>
600600

601601

@@ -667,7 +667,7 @@ <h5>Type:</h5>
667667

668668
<dt class="tag-source">Source:</dt>
669669
<dd class="tag-source"><ul class="dummy"><li>
670-
<a href="color.js.html">color.js</a>, <a href="color.js.html#line319">line 319</a>
670+
<a href="color.js.html">color.js</a>, <a href="color.js.html#line320">line 320</a>
671671
</li></ul></dd>
672672

673673

@@ -707,7 +707,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="annota
707707
<br class="clear">
708708

709709
<footer>
710-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:28:05 GMT-0400 (Eastern Daylight Time)
710+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 17:56:50 GMT-0400 (Eastern Daylight Time)
711711
</footer>
712712

713713
<script> prettyPrint(); </script>

docs/color.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="annota
662662
<br class="clear">
663663

664664
<footer>
665-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:28:05 GMT-0400 (Eastern Daylight Time)
665+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 17:56:50 GMT-0400 (Eastern Daylight Time)
666666
</footer>
667667

668668
<script> prettyPrint(); </script>

docs/color.js.html

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ <h1 class="page-title">Source: color.js</h1>
320320
const startpoint = lut[offset - 1]
321321
const step = (endpoint - startpoint) / (length - 1)
322322
for (let j = 0; j &lt; length; j++) {
323-
lut[offset + j] = startpoint + Math.round(j * step)
323+
const value = startpoint + Math.round(j * step)
324+
lut[offset + j] = value
324325
}
325326
offset += length
326327
} else if (opcode === 2) {
@@ -396,17 +397,23 @@ <h1 class="page-title">Source: color.js</h1>
396397
)
397398
}
398399

399-
if (this[_attrs].bitsPerEntry === 16) {
400+
const maxValues = [
401+
Math.max(...redLUT),
402+
Math.max(...greenLUT),
403+
Math.max(...blueLUT)
404+
]
405+
const maxInput = Math.max(...maxValues)
406+
const maxOutput = 255
407+
if (this[_attrs].bitsPerEntry === 16 &amp;&amp; maxInput > 255) {
400408
/*
401409
* Only palettes with 256 entries and 8 bit per entry are supported for
402410
* display. Therefore, data need to rescaled and resampled.
403411
*/
404-
const maxInput = Math.pow(2, 16) - 1
405-
const maxOutput = Math.pow(2, 8) - 1
406-
const steps = Math.pow(2, 16) / Math.pow(2, 8)
407-
this[_attrs].data = new Array(steps)
408-
for (let i = 0; i &lt; steps; i++) {
409-
const j = i * steps
412+
const n = 256
413+
const step = this[_attrs].numberOfEntries / n
414+
this[_attrs].data = new Array(n)
415+
for (let i = 0; i &lt; n; i++) {
416+
const j = i * step
410417
this[_attrs].data[i] = [
411418
Math.round(rescale(redLUT[j], 0, maxInput, 0, maxOutput)),
412419
Math.round(rescale(greenLUT[j], 0, maxInput, 0, maxOutput)),
@@ -416,11 +423,7 @@ <h1 class="page-title">Source: color.js</h1>
416423
} else {
417424
this[_attrs].data = new Array(this[_attrs].numberOfEntries)
418425
for (let i = 0; i &lt; this[_attrs].numberOfEntries; i++) {
419-
this[_attrs].data[i] = [
420-
redLUT[i],
421-
greenLUT[i],
422-
blueLUT[i]
423-
]
426+
this[_attrs].data[i] = [redLUT[i], greenLUT[i], blueLUT[i]]
424427
}
425428
}
426429
}
@@ -459,7 +462,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="annota
459462
<br class="clear">
460463

461464
<footer>
462-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:28:05 GMT-0400 (Eastern Daylight Time)
465+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 17:56:50 GMT-0400 (Eastern Daylight Time)
463466
</footer>
464467

465468
<script> prettyPrint(); </script>

docs/dicom-microscopy-viewer.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="annota
238238
<br class="clear">
239239

240240
<footer>
241-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:28:05 GMT-0400 (Eastern Daylight Time)
241+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 17:56:50 GMT-0400 (Eastern Daylight Time)
242242
</footer>
243243

244244
<script> prettyPrint(); </script>

0 commit comments

Comments
 (0)