@novorender/web_app / DrawPart
Interface: DrawPart
Information about object to draw for measurement
Properties
drawType
readonly drawType:
| "vertex"
| "angle"
| "curveSegment"
| "lines"
| "filled"
| "text";
Type of object to draw
Defined in
@novorender/measure/modules/draw/index.ts:97
elevation?
readonly optional elevation: ElevationInfo | (undefined | ElevationInfo)[];
From/to 3d elevation of object, used for cylinder to or lines to show slope
Defined in
@novorender/measure/modules/draw/index.ts:99
indicesOnScreen?
optional indicesOnScreen: number[];
Indices reffering to vertices3D and text if it is a list, -1 means an added empty text
Defined in
@novorender/measure/modules/draw/index.ts:109
name?
readonly optional name: string;
Name of the part
Defined in
@novorender/measure/modules/draw/index.ts:88
text?
readonly 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. First list is for the outer loop while the remaining is for the voids
Defined in
@novorender/measure/modules/draw/index.ts:95
vertices2D?
optional vertices2D: ReadonlyVec2[];
View space coordinates, in pixel values, empty if the entire part is out of view
Defined in
@novorender/measure/modules/draw/index.ts:106
vertices3D
readonly vertices3D: ReadonlyVec3[];
World coordinates
Defined in
@novorender/measure/modules/draw/index.ts:103
voids?
readonly optional voids: DrawVoid[];
Void in the draw part, only valid for filled kind