MeasurementSettings
23 Sep 20251 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.
depth number
specifies the depth of the volume annotation.
displayUnit CalibrationUnit
specifies the unit of the annotation in UI.
scaleRatio number
specifies the scale ratio of the annotation.