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");
specifies the unit of the annotation.
number
specifies the depth of the volume annotation.
specifies the unit of the annotation.
number
specifies the scale ratio of the annotation.