11import { VLWholeSlideMicroscopyImage , getFrameMapping } from './metadata.js'
22import *
3- as DICOMwebClient from 'dicomweb-client'
3+ as DICOMwebClient from 'dicomweb-client'
44import {
55 areNumbersAlmostEqual ,
66 are1DArraysAlmostEqual ,
@@ -272,7 +272,7 @@ class _Channel {
272272 const {
273273 thresholdValues,
274274 limitValues,
275- color,
275+ color
276276 } = this . blendingInformation
277277
278278 const frameData = {
@@ -283,7 +283,7 @@ class _Channel {
283283 thresholdValues,
284284 limitValues,
285285 color,
286- opacity : 1 , // the opacity is actually handled at OpenLayer level
286+ opacity : 1 , // handled by OpenLayers
287287 columns,
288288 rows
289289 }
@@ -334,7 +334,7 @@ class _Channel {
334334 const {
335335 thresholdValues,
336336 limitValues,
337- color,
337+ color
338338 } = this . blendingInformation
339339
340340 const frameData = {
@@ -345,7 +345,7 @@ class _Channel {
345345 thresholdValues,
346346 limitValues,
347347 color,
348- opacity : 1 , // the opacity is actually handled at OpenLayer level
348+ opacity : 1 , // handled by OpenLayers
349349 columns,
350350 rows
351351 }
@@ -364,7 +364,10 @@ class _Channel {
364364 sopInstanceUID,
365365 frameNumbers,
366366 mediaTypes : [
367- { mediaType : octetStreamMediaType , transferSyntaxUID : octetStreamTransferSyntaxUID }
367+ {
368+ mediaType : octetStreamMediaType ,
369+ transferSyntaxUID : octetStreamTransferSyntaxUID
370+ }
368371 ]
369372 }
370373 options . client . retrieveInstanceFrames ( retrieveOptions ) . then (
@@ -373,7 +376,7 @@ class _Channel {
373376 const {
374377 thresholdValues,
375378 limitValues,
376- color,
379+ color
377380 } = this . blendingInformation
378381
379382 const frameData = {
@@ -384,7 +387,7 @@ class _Channel {
384387 thresholdValues,
385388 limitValues,
386389 color,
387- opacity : 1 , // the opacity is actually handled at OpenLayer level
390+ opacity : 1 , // handled by OpenLayers
388391 columns,
389392 rows
390393 }
@@ -408,7 +411,7 @@ class _Channel {
408411 * NOTE: transition = 0 disable OpenLayer transition alpha opacity
409412 * NOTE: it is needed a very large initial cacheSize value
410413 * otherwise, the tile caches will be cleared at each zoom
411- * providing very bad perfomances.
414+ * providing very bad perfomances.
412415 */
413416 this . rasterSource = new TileImage ( {
414417 crossOrigin : 'Anonymous' ,
@@ -458,24 +461,24 @@ class _Channel {
458461 } )
459462
460463 if ( image . microscopyImages . length === 0 ) {
461- throw new Error ( 'No VOLUME image provided for Optioncal Path ID: ' +
464+ throw new Error ( 'No VOLUME image provided for Optioncal Path ID: ' +
462465 image . blendingInformation . opticalPathIdentifier )
463466 }
464467
465468 image . FrameOfReferenceUID = image . microscopyImages [ 0 ] . FrameOfReferenceUID
466469 for ( let i = 0 ; i < image . microscopyImages . length ; ++ i ) {
467470 if ( image . FrameOfReferenceUID !== image . microscopyImages [ i ] . FrameOfReferenceUID ) {
468- throw new Error ( 'Optioncal Path ID ' +
469- image . blendingInformation . opticalPathIdentifier +
471+ throw new Error ( 'Optioncal Path ID ' +
472+ image . blendingInformation . opticalPathIdentifier +
470473 ' has volume microscopy images with different FrameOfReferenceUID' )
471474 }
472475 }
473476
474477 image . ContainerIdentifier = image . microscopyImages [ 0 ] . ContainerIdentifier
475478 for ( let i = 0 ; i < image . microscopyImages . length ; ++ i ) {
476479 if ( image . ContainerIdentifier !== image . microscopyImages [ i ] . ContainerIdentifier ) {
477- throw new Error ( 'Optioncal Path ID ' +
478- image . blendingInformation . opticalPathIdentifier +
480+ throw new Error ( 'Optioncal Path ID ' +
481+ image . blendingInformation . opticalPathIdentifier +
479482 ' has volume microscopy images with different ContainerIdentifier' )
480483 }
481484 }
@@ -741,7 +744,7 @@ class _Channel {
741744 thresholdValues,
742745 limitValues,
743746 color,
744- opacity : 1 , // the opacity is actually handled at OpenLayer level
747+ opacity : 1 , // handled by OpenLayers
745748 columns,
746749 rows
747750 }
0 commit comments