bianyueyan
bianyueyan
The error is not from OHIF Viewer, but the dependent library "react-cornerstone-viewport". You can change var wwwc = "W: ".concat(windowWidth.toFixed(0), " L: ").concat(windowCenter.toFixed(0)); into var wwwc = "W: ".concat(Number(windowWidth).toFixed(0), "...
I changed rescaleIntercept: instance.RescaleIntercept, rescaleSlope: instance.RescaleSlope, to rescaleIntercept: Number(instance.RescaleIntercept), rescaleSlope: Number(instance.RescaleSlope), in the "MetadataProvider.js" it is working for CT modalities.
> OHIF uses webpack to bundle all the libraries together. If you'd rather have several smaller files to download instead of one large one, you can use the [SplitChunksPlugin](https://webpack.js.org/plugins/split-chunks-plugin/). >...