Skip to main content

@novorender/web_app / DrawPart

Interface: DrawPart

Information about object to draw for measurement

Properties

angles2D?

optional angles2D: number[];

Angles in 2D space. Angle will be defined only if directions3D is present

Defined in

@novorender/measure/modules/draw/index.ts:112


color?

readonly optional color: string;

Optional color

Defined in

@novorender/measure/modules/draw/index.ts:90


directions3D?

readonly optional directions3D: ReadonlyVec3[];

Direction of the points. Used for text rotation

Defined in

@novorender/measure/modules/draw/index.ts:107


drawType

readonly drawType: 
| "vertex"
| "angle"
| "curveSegment"
| "lines"
| "filled"
| "text";

Type of object to draw

Defined in

@novorender/measure/modules/draw/index.ts:99


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:101


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:115


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:97


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:110


vertices3D

readonly vertices3D: ReadonlyVec3[];

World coordinates

Defined in

@novorender/measure/modules/draw/index.ts:105


voids?

readonly optional voids: DrawVoid[];

Void in the draw part, only valid for filled kind

Defined in

@novorender/measure/modules/draw/index.ts:103