Skip to main content

interface.DrawPart

API > 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

Source

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


elevation

elevation?: object

From/to 3d elevation of object, used for cylinder to show slope

Type declaration

elevation.from

from: number

elevation.horizontalDisplay

horizontalDisplay: boolean

elevation.to

to: number

Source

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


indicesOnScreen

indicesOnScreen?: number[]

Indices reffering to vertices3D and text if it is a list, -1 means an added empty text

Source

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


name

name?: string

Name of the part

Source

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


text

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

Source

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


vertices2D

vertices2D?: ReadonlyVec2[]

View space coordinates, in pixel values, empty if the entire part is out of view

Source

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


vertices3D

readonly vertices3D: ReadonlyVec3[]

World coordinates

Source

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


voids

voids?: DrawVoid[]

Void in the draw part, only valid for filled kind

Source

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