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

Base class for various dimension types.

Dimension elements 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.

The default value is ArrowheadPlacementType.INTERNAL.


firstArrowType

‍firstArrowType: ArrowType = ArrowType.CLOSED_FILLED

First arrow type.

The default value is ArrowType.CLOSED_FILLED.


isTextAlignedHorizontally

‍isTextAlignedHorizontally: boolean = false

Indicates whether the measurement text is aligned horizontally.


measurementValue

‍measurementValue: number = 0

Actual measurement value.


secondArrowType

‍secondArrowType: ArrowType = ArrowType.CLOSED_FILLED

Second arrow type.

The default value is ArrowType.CLOSED_FILLED.


text

‍text: Text

Dimension text.

Accessors

id

Get Signature

‍get id(): bigint

Returns the unique identifier of the object.

Returns

bigint

Inherited from

Element.id


uuid

Get Signature

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

UUID of the drawing element.

The value is null if no UUID is assigned.

Returns

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

Set Signature

‍set uuid(uuid): void

Sets the UUID of the drawing element.

Parameters

uuid

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

UUID to assign to the drawing element.

Returns

void

Inherited from

Element.uuid

Methods

accept()

‍abstract accept(visitor): void

Accepts a drawing element visitor.

Parameters

visitor

ElementVisitor

Visitor to accept.

Returns

void

Inherited from

Element.accept