Gets the unique identifier of the measurement.
The unique identifier of the measurement.
Gets the pattern of the measurement.
The pattern of the measurement.
Gets the point IDs of the measurement.
The point IDs of the measurement.
Gets the type of the measurement.
The type of the measurement.
Gets whether the measurement is highlighted.
Whether the measurement is highlighted.
Gets whether the measurement is negative.
Whether the measurement is negative.
Sets whether the measurement is negative.
Whether the measurement is negative.
StaticcreateCreates a new measurement instance.
The unique identifier for the measurement.
The renderer associated with the measurement.
Optionalsettings: MeasurementSettingsOptional settings for the measurement.
Optionaldata: MeasurementDataOptional data for the measurement.
Optionaloptions: TakeoffBase | MeasurementsOptionsA promise that resolves to the new measurement instance.
Sets the draw order of the measurement.
The draw order to set.
Gets if the measurement is negative.
Gets the isometric lengths of the measurement.
The isometric lengths of the measurement.
Gets the segment lengths of the measurement.
The segment lengths of the measurement.
Sets the isometric lengths of the measurement.
The isometric lengths to set.
Finds the element ID in faces.
A promise that resolves to the element ID in faces.
Checks if the measurement is closed.
Whether the measurement is closed.
Sets whether the measurement is closed.
Whether the measurement is closed.
Closes the measurement.
Whether to close if length is present.
A promise that resolves to a boolean indicating success or failure.
Clears the labels of the measurement.
Reconstructs the labels of the measurement.
Updates the labels of the measurement.
Gets the number of points in the measurement.
The number of points in the measurement.
Gets the first point ID in the measurement.
The first point ID in the measurement.
Gets the last point ID in the measurement.
The last point ID in the measurement.
Gets the previous point ID of a given point ID.
The point ID to find the previous point for.
A promise that resolves to the previous point ID.
Gets the last line points and their lenght
A promise that resolves to an object containing the last line.
Clears the 3D coordinates of the arc point.
Adds a 3D arc point to the measurement.
The x-coordinate of the arc point.
The y-coordinate of the arc point.
The z-coordinate of the arc point.
Whether to use elevation for the arc point.
Optional face ID associated with the arc point.
A promise that resolves to a boolean indicating success or failure.
Terminates the 3D arc point.
Adds a 3D point to the measurement.
The x-coordinate of the point.
The y-coordinate of the point.
The z-coordinate of the point.
Whether to use elevation for the point.
Optional face ID associated with the point.
Whether the point is a control point.
A promise that resolves to the segment ID of the added point.
Adds a length override for the last point in the measurement.
The length to override.
Sets the length of a segment point in the measurement.
The point ID of the segment point.
The length to set.
Isometric Lengtgs contain Lenght Overrides
true if an isometric style measurement
Gets the dimensions of the last line image in the measurement.
A promise that resolves to an object containing the dimensions of the last line image.
Gets the length of the closest segment point to the given coordinates.
The x-coordinate.
The y-coordinate.
A promise that resolves to an object containing the point ID and length of the closest segment point.
Inserts a point into the measurement at the given coordinates.
The x-coordinate of the point.
The y-coordinate of the point.
Optional face ID associated with the point.
Whether the point is a control point.
Removes the last point from the measurement.
Deletes the current point in the measurement.
A promise that resolves to a boolean indicating success or failure.
Deletes a point in the measurement at the given screen coordinates.
The x-coordinate of the screen.
The y-coordinate of the screen.
A promise that resolves to a boolean indicating success or failure.
Destroys the measurement.
Moves the measurement to the specified offset.
The offset to move the measurement to.
Moves the current point in the measurement to the specified 3D coordinates.
The x-coordinate to move the point to.
The y-coordinate to move the point to.
The z-coordinate to move the point to.
A promise that resolves to a boolean indicating success or failure.
Moves the current point in the measurement to the specified screen coordinates.
The x-coordinate of the screen.
The y-coordinate of the screen.
OptionaldegreeSnapping: booleanOptional degree snapping flag.
Moves the current segment in the measurement to the specified coordinates.
The x-coordinate to move the segment to.
The y-coordinate to move the segment to.
A promise that resolves to a boolean indicating success or failure.
Sets the current point in the measurement to the point at the specified screen coordinates.
The x-coordinate of the screen.
The y-coordinate of the screen.
A promise that resolves to a boolean indicating success or failure.
Sets the current point in the measurement to the first point.
A promise that resolves to a boolean indicating success or failure.
Gets the current point ID in the measurement.
The current point ID in the measurement.
Gets the point at the specified index.
The index of the point to retrieve.
A promise that resolves to the point at the specified index, or null if not found.
Gets the current point in the measurement.
A promise that resolves to the current point in the measurement.
Gets the points of the current segment in the measurement.
A promise that resolves to an array of points in the current segment.
Checks if the specified screen coordinates are over a point in the measurement.
The x-coordinate of the screen.
The y-coordinate of the screen.
A promise that resolves to a boolean indicating whether the coordinates are over a point.
Checks if the specified screen coordinates are over a segment in the measurement.
The x-coordinate of the screen.
The y-coordinate of the screen.
A promise that resolves to a boolean indicating whether the coordinates are over a segment.
Computes the perpendicular points on a line, excluding a specified point.
The line data.
The point to exclude.
Whether to skip the current point.
A promise that resolves to an array of perpendicular points.
Computes the perpendicular points on a line.
The line data.
Whether to skip the current point.
A promise that resolves to an array of perpendicular points.
Sets whether the measurement is highlighted.
Whether the measurement is highlighted.
Optional flag to force the update.
Gets the total area of the measurement in square meters.
A promise that resolves to the total area in square meters.
Gets the total area of the measurement in square millimeters.
Optional extra point to include in the calculation.
A promise that resolves to the total area in square millimeters.
Gets the total length of the measurement in meters.
A promise that resolves to the total length in meters.
Gets the total length of the measurement in millimeters.
Optional extra point to include in the calculation.
A promise that resolves to the total length in millimeters.
Checks if the measurement contains a point with the specified coordinates.
The x-coordinate of the point.
The y-coordinate of the point.
The z-coordinate of the point.
A promise that resolves to the point ID if the point is found, or -1 if not found.
Checks if a point is accepted for addition to the measurement.
The current point ID.
A promise that resolves to a boolean indicating whether the point is accepted for addition.
Gets the pixel center of the measurement.
A promise that resolves to the pixel center of the measurement.
Gets the face ID associated with a point in the measurement.
The point ID.
The face ID associated with the point.
Finds or updates the normal vector behind the measurement.
Optional flag to force the update.
A promise that resolves to the normal vector.
Calculates the normal vector from the object behind the specified screen coordinates.
The x-coordinate on the screen.
The y-coordinate on the screen.
A promise that resolves to the normal vector, or null if not found.
Gets the bounding box of the measurement.
A promise that resolves to the bounding box of the measurement.
Gets the rectangle of the measurement.
A promise that resolves to the rectangle of the measurement.
Gets the data of the measurement.
A promise that resolves to the data of the measurement.
Represents a measurement with various settings and properties.