Measure API
Measure.DrawPart
Information about object to draw for measurement
Properties​
drawType​
• Readonly
drawType: "lines"
| "filled"
| "vertex"
| "curveSegment"
| "angle"
| "text"
Type of object to draw
elevation​
• Optional
Readonly
elevation: Object
From/to 3d elevation of object, used for cylinder to show slope
Type declaration​
Name | Type |
---|---|
from | number |
horizontalDisplay | boolean |
to | number |
name​
• Optional
Readonly
name: string
Name of the part
text​
• Optional
text: string
| string
[][]
Display text of the part, For lines of 2 points it is the length For angles its the angle in degrees For surfaces its a list of list strings. One list for out then for its voids
vertices2D​
• Optional
vertices2D: ReadonlyVec2
[]
View space coordinates, in pixel values, empty if the entire part is out of view
vertices3D​
• vertices3D: ReadonlyVec3
[]
World coordinates
voids​
• Optional
Readonly
voids: DrawVoid
[]
Hole in the draw part, only valid for filled kind