Skip to main content
Version: 3.10.0-beta.80 (Latest)

Measurements

panelMeasurement.disableEditing

IDpanelMeasurement.disableEditing
Description
Determines whether editing measurements in the viewport is disabled after SR hydration
Default Value
false
Example

window.config = {
  // rest of window config
  customizationService: [
    {
      'panelMeasurement.disableEditing': {
        $set: true, // Disables editing measurements in the panel
      },
    },
  ],
};
  

cornerstone.measurements

IDcornerstone.measurements
Description
Defines configuration for measurement tools, including display text and reporting options.
Default Value
{
  "Angle": {
    "displayText": [],
    "report": []
  },
  "CobbAngle": {
    "displayText": [],
    "report": []
  },
  "ArrowAnnotate": {
    "displayText": [],
    "report": []
  },
  "RectangleROi": {
    "displayText": [],
    "report": []
  },
  "CircleROI": {
    "displayText": [],
    "report": []
  },
  "EllipticalROI": {
    "displayText": [],
    "report": []
  },
  "Bidirectional": {
    "displayText": [],
    "report": []
  },
  "Length": {
    "displayText": [],
    "report": []
  },
  "LivewireContour": {
    "displayText": [],
    "report": []
  },
  "SplineROI": {
    "displayText": [
      {
        "displayName": "Area",
        "value": "area",
        "type": "value"
      },
      {
        "value": "areaUnits",
        "for": [
          "area"
        ],
        "type": "unit"
      }
    ],
    "report": [
      {
        "displayName": "Area",
        "value": "area",
        "type": "value"
      },
      {
        "displayName": "Unit",
        "value": "areaUnits",
        "type": "value"
      }
    ]
  },
  "PlanarFreehandROI": {
    "displayTextOpen": [
      {
        "displayName": "Length",
        "value": "length",
        "type": "value"
      }
    ],
    "displayText": [
      {
        "displayName": "Mean",
        "value": "mean",
        "type": "value"
      },
      {
        "displayName": "Max",
        "value": "max",
        "type": "value"
      },
      {
        "displayName": "Area",
        "value": "area",
        "type": "value"
      },
      {
        "value": "pixelValueUnits",
        "for": [
          "mean",
          "max"
        ],
        "type": "unit"
      },
      {
        "value": "areaUnits",
        "for": [
          "area"
        ],
        "type": "unit"
      }
    ],
    "report": [
      {
        "displayName": "Mean",
        "value": "mean",
        "type": "value"
      },
      {
        "displayName": "Max",
        "value": "max",
        "type": "value"
      },
      {
        "displayName": "Area",
        "value": "area",
        "type": "value"
      },
      {
        "displayName": "Unit",
        "value": "unit",
        "type": "value"
      }
    ]
  }
}
Example

window.config = {
  // rest of window config
  customizationService: [
    {
      'cornerstone.measurements': {
        $set: {
          SplineROI: {
            displayText: [
              {
                displayName: 'Area',
                value: 'area',
                type: 'value',
              },
              {
                value: 'areaUnits',
                for: ['area'],
                type: 'unit',
              },
            ],
            report: [
              {
                displayName: 'Area',
                value: 'area',
                type: 'value',
              },
              {
                displayName: 'Unit',
                value: 'areaUnits',
                type: 'value',
              },
            ],
          },
          PlanarFreehandROI: {
            displayTextOpen: [
              {
                displayName: 'Length',
                value: 'length',
                type: 'value',
              },
            ],
            displayText: [
              {
                displayName: 'Mean',
                value: 'mean',
                type: 'value',
              },
              {
                displayName: 'Max',
                value: 'max',
                type: 'value',
              },
              {
                displayName: 'Area',
                value: 'area',
                type: 'value',
              },
              {
                value: 'pixelValueUnits',
                for: ['mean', 'max'],
                type: 'unit',
              },
              {
                value: 'areaUnits',
                for: ['area'],
                type: 'unit',
              },
            ],
            report: [
              {
                displayName: 'Mean',
                value: 'mean',
                type: 'value',
              },
              {
                displayName: 'Max',
                value: 'max',
                type: 'value',
              },
              {
                displayName: 'Area',
                value: 'area',
                type: 'value',
              },
              {
                displayName: 'Unit',
                value: 'unit',
                type: 'value',
              },
            ],
          },
        },
      },
    },
  ],
};