diff --git a/.webpack/webpack.base.js b/.webpack/webpack.base.js index 08c3aa7f0c..6efedd0d2c 100644 --- a/.webpack/webpack.base.js +++ b/.webpack/webpack.base.js @@ -113,7 +113,9 @@ module.exports = (env, argv, { SRC_DIR, ENTRY }) => { }, }, cssToJavaScript, - stylusToJavaScript, + // Note: Only uncomment the following if you are using the old style of stylus in v2 + // Also you need to uncomment this platform/app/.webpack/rules/extractStyleChunks.js + // stylusToJavaScript, { test: /\.wasm/, type: 'asset/resource', diff --git a/extensions/cornerstone-dicom-seg/package.json b/extensions/cornerstone-dicom-seg/package.json index 487471f6d1..df8edf5438 100644 --- a/extensions/cornerstone-dicom-seg/package.json +++ b/extensions/cornerstone-dicom-seg/package.json @@ -43,7 +43,6 @@ "react-router-dom": "^6.8.1" }, "dependencies": { - "@cornerstonejs/tools": "^1.16.0", "@babel/runtime": "^7.20.13", "@cornerstonejs/adapters": "^1.20.3", "@cornerstonejs/tools": "^1.20.3", diff --git a/extensions/cornerstone-dicom-seg/src/panels/Toolbox/ThresholdSettingsPreset.tsx b/extensions/cornerstone-dicom-seg/src/panels/Toolbox/ThresholdSettingsPreset.tsx deleted file mode 100644 index f708233c30..0000000000 --- a/extensions/cornerstone-dicom-seg/src/panels/Toolbox/ThresholdSettingsPreset.tsx +++ /dev/null @@ -1,88 +0,0 @@ -import React, { useState } from 'react'; -import { InputDoubleRange, Select } from '@ohif/ui'; - -const defaultOptions = [ - { - value: 'Soft tissue', - label: 'Soft tissue', - range: [-160, 240] as [number, number], - }, - { - value: 'Lung', - label: 'Lung', - range: [-1350, 150] as [number, number], - }, - { - value: 'Liver', - label: 'Liver', - range: [15, 165] as [number, number], - }, - { - value: 'Bone', - label: 'Bone', - range: [-770, 1730] as [number, number], - }, - { - value: 'Brain', - label: 'Brain', - range: [0, 80] as [number, number], - }, -]; - -function ThresholdSettings({ onRangeChange }) { - const [options, setOptions] = useState(defaultOptions); - const [selectedPreset, setSelectedPreset] = useState(defaultOptions[0].value); - - const handleRangeChange = newRange => { - const selectedOption = options.find(o => o.value === selectedPreset); - - if (newRange[0] === selectedOption.range[0] && newRange[1] === selectedOption.range[1]) { - return; - } - - onRangeChange(newRange); - - const updatedOptions = options.map(o => { - if (o.value === selectedPreset) { - return { - ...o, - range: newRange, - }; - } - return o; - }); - - setOptions(updatedOptions); - }; - - const selectedPresetRange = options.find(ds => ds.value === selectedPreset).range; - - return ( -
-
-
Threshold
-
-