Hide menu
Loading...
Searching...
No Matches
Dimension

Base class for various dimension types.

Dimension entities show length, angle, radius and diameter measurements.

Extends

Extended by

Constructors

Constructor

new Dimension(): Dimension

Returns

Dimension

Inherited from

Element.constructor

Properties

arrowheadPlacement

arrowheadPlacement: ArrowheadPlacementType = ArrowheadPlacementType.INTERNAL

Arrowhead placement.


firstArrowType

firstArrowType: ArrowType = ArrowType.CLOSED_FILLED

First arrow type.


isTextAlignedHorizontally

isTextAlignedHorizontally: boolean = false

Indicates whether the measurement text is align horizontally


measurementValue

measurementValue: number = 0

Actual measurement value.


secondArrowType

secondArrowType: ArrowType = ArrowType.CLOSED_FILLED

Second arrow type.


text

text: Text

Dimension text.

Accessors

id

Get Signature

get id(): bigint

Returns object id.

Returns

bigint

Inherited from

Element.id


uuid

Get Signature

get uuid(): `${string}-${string}-${string}-${string}-${string}` | null

Returns uuid of the drawing element. null if the drawing element has no assigned uuid (by default).

Returns

`${string}-${string}-${string}-${string}-${string}` | null

Set Signature

set uuid(uuid): void

Sets uuid of the drawing element.

Parameters

uuid

Uuid of the drawing element.

`${string}-${string}-${string}-${string}-${string}` | null

Returns

void

Inherited from

Element.uuid

Methods

accept()

abstract accept(visitor): void

Accepts a drawing element visitor.

Parameters

visitor

ElementVisitor

Accepted drawing element visitor.

Returns

void

Inherited from

Element.accept