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


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


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


name

name?: string

Name of the part

Source

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


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


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


vertices3D

readonly vertices3D: ReadonlyVec3[]

World coordinates

Source

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


voids

voids?: DrawVoid[]

Void in the draw part, only valid for filled kind

Source

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