MeasurementSettings
6 Jul 20261 minute to read
The MeasurementSettings module is used to provide the settings to measurement annotations.
<div id="pdfViewer" style="height: 100%;width: 100%;"></div> let viewer: PdfViewer = new PdfViewer();
// Change the measurement annotation settings.
viewer.measurementSettings = {
conversionUnit: 'cm',
displayUnit: 'cm',
scaleRatio: 1,
depth: 96
};
viewer.appendTo("#pdfViewer");Properties
conversionUnit CalibrationUnit
specifies the unit of the annotation.
Defaults to ‘in’
depth number
specifies the depth of the volume annotation.
Defaults to 96
displayUnit CalibrationUnit
specifies the unit of the annotation in UI.
Defaults to ‘in’
scaleRatio number
specifies the scale ratio of the annotation.
Defaults to 1