Nutrient Web SDK

ReferenceMeasurementValueConfiguration

Interface MeasurementValueConfiguration

Interface

Properties

compoundUnits

OptionalStandalone
{ … }[]

Standalone only.

Optional compound (mixed-unit) chain appended to the scale's primary unit, as an ordered list of progressively smaller units. For example, a metres scale with [{ unitTo: CENTIMETERS }, { unitTo: MILLIMETERS }] renders measurements as 2 m 0 cm 0 mm.

PropertyDescription
precision
unitTo

name

Optional
string

Your custom configuration name. It has to be unique.


    | "whole"
    | "oneDp"
    | "twoDp"
    | "threeDp"
    | "fourDp"
    | "1/2"
    | "1/4"
    | "1/8"
    | "1/16"

Precision values for the length of measurement annotations

{ … }

The custom scale passed in the configuration, it represent the scale used in the document

PropertyDescription
fromDescription
fromValue
toDescription
toValue
unitFrom
unitTo

selected

Optional
boolean

Whether a custom scale is selected or not.