cloudmr-ux 4.3.8 → 4.4.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.
@@ -18,10 +18,11 @@ export interface NiivueContrastAdjustmentsProps {
18
18
  setMax: (max: number) => void;
19
19
  /**
20
20
  * Scaling factors used to convert between real space and the display (render)
21
- * space shown in the dual-range input boxes.
21
+ * space used for thumb positioning on the dual-range track (matches legacy
22
+ * NiivuePanel / TestKarts-style masking).
22
23
  *
23
- * Transform: `renderValue = a * realValue - a * b`
24
- * Inverse: `realValue = renderValue / a + b`
24
+ * Transform: `renderValue = realValue / a + b`
25
+ * Inverse: `realValue = a * renderValue - a * b`
25
26
  *
26
27
  * Pass `{ a: 1, b: 0 }` for a 1-to-1 mapping (no scientific-notation scaling).
27
28
  */
@@ -65,7 +65,7 @@ export function NiivueContrastAdjustments(_a) {
65
65
  nv.refreshLayers(v, 0);
66
66
  nv.drawScene();
67
67
  setMax(newMax);
68
- }, transform: function (x) { return a * x - a * b; }, inverse: function (y) { return y / a + b; }, step: 0.001, precision: 3, accentColor: accentColor }), _jsxs("div", __assign({ style: { marginTop: 20, marginBottom: 15 } }, { children: [_jsxs(CmrLabel, __assign({ style: { display: "block", marginBottom: 6 } }, { children: ["Gamma: ", gamma.toFixed(2)] })), _jsx("input", { id: "gamma", type: "range", min: 0.1, max: 3.0, step: 0.05, value: gamma, onChange: function (e) {
68
+ }, transform: function (x) { return x / a + b; }, inverse: function (y) { return a * y - a * b; }, step: 0.001, precision: 3, accentColor: accentColor }), _jsxs("div", __assign({ style: { marginTop: 20, marginBottom: 15 } }, { children: [_jsxs(CmrLabel, __assign({ style: { display: "block", marginBottom: 6 } }, { children: ["Gamma: ", gamma.toFixed(2)] })), _jsx("input", { id: "gamma", type: "range", min: 0.1, max: 3.0, step: 0.05, value: gamma, onChange: function (e) {
69
69
  var val = Number(e.target.value);
70
70
  setGamma(val);
71
71
  nv.setGamma(val);
@@ -59,6 +59,12 @@ var CMRSelectUpload = function (props) {
59
59
  };
60
60
  var selectionDialog = _jsxs(Dialog, __assign({ open: open, onClose: handleClose }, { children: [_jsx(DialogTitle, { children: "Select or Upload" }), _jsxs(DialogContent, __assign({ sx: { width: 520 } }, { children: [_jsx(DialogContentText, __assign({ sx: { pl: 1, pr: 1, pb: 0 } }, { children: (uploading) ? "Please wait for the upload to finish." : "" })), _jsx(Box, __assign({ sx: { p: 1 } }, { children: _jsx(Select, { classNamePrefix: "cmr-select", isDisabled: uploading, options: props.fileSelection
61
61
  .filter(function (file) { return checkExtension(file.fileName, props.fileExtension); })
62
+ .sort(function (a, b) {
63
+ return a.fileName.localeCompare(b.fileName, undefined, {
64
+ sensitivity: 'base',
65
+ numeric: true
66
+ });
67
+ })
62
68
  .map(function (file) { return ({
63
69
  value: file.id,
64
70
  label: file.fileName
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudmr-ux",
3
- "version": "4.3.8",
3
+ "version": "4.4.0",
4
4
  "author": "erosmontin@gmail.com",
5
5
  "license": "MIT",
6
6
  "repository": "erosmontin/cloudmr-ux",