Hide menu
Loading...
Searching...
No Matches
AngularDimension

Describes an angular dimension for an angle given by three points.

anglePoint specifies the tip of the measured angle. firstReferencePoint and secondReferencePoint lie on the extension lines. dimensionArcPoint lies on the dimension line.

Extends

Constructors

Constructor

new AngularDimension(anglePoint?, firstReferencePoint?, secondReferencePoint?, dimensionArcPoint?, measurementValue?): AngularDimension

Creates an angular dimension.

The provided points are copied.

Parameters

anglePoint?

Point2d = ...

Tip of the measured angle.

firstReferencePoint?

Point2d = ...

First extension line reference point.

secondReferencePoint?

Point2d = ...

Second extension line reference point.

dimensionArcPoint?

Point2d = ...

Point specifying the position of the dimension arc.

measurementValue?

number

Actual measurement value. If omitted, the inherited default value is kept.

Returns

AngularDimension

Overrides

Dimension.constructor

Properties

arrowheadPlacement

arrowheadPlacement: ArrowheadPlacementType = ArrowheadPlacementType.INTERNAL

Arrowhead placement.

The default value is ArrowheadPlacementType.INTERNAL.

Inherited from

Dimension.arrowheadPlacement


firstArrowType

firstArrowType: ArrowType = ArrowType.CLOSED_FILLED

First arrow type.

The default value is ArrowType.CLOSED_FILLED.

Inherited from

Dimension.firstArrowType


isTextAlignedHorizontally

isTextAlignedHorizontally: boolean = false

Indicates whether the measurement text is aligned horizontally.

Inherited from

Dimension.isTextAlignedHorizontally


measurementValue

measurementValue: number = 0

Actual measurement value.

Inherited from

Dimension.measurementValue


secondArrowType

secondArrowType: ArrowType = ArrowType.CLOSED_FILLED

Second arrow type.

The default value is ArrowType.CLOSED_FILLED.

Inherited from

Dimension.secondArrowType


text

text: Text

Dimension text.

Inherited from

Dimension.text

Accessors

anglePoint

Get Signature

get anglePoint(): Point2d

Tip of the measured angle.

Returns

Point2d

Set Signature

set anglePoint(point): void

Sets the tip of the measured angle.

The coordinates are copied from the provided point.

Parameters

point

Point2d

Angle point.

Returns

void


dimensionArcPoint

Get Signature

get dimensionArcPoint(): Point2d

Point specifying the position of the dimension arc.

Returns

Point2d

Set Signature

set dimensionArcPoint(point): void

Sets the point specifying the position of the dimension arc.

The coordinates are copied from the provided point.

Parameters

point

Point2d

Dimension arc point.

Returns

void


firstReferencePoint

Get Signature

get firstReferencePoint(): Point2d

First extension line reference point.

Returns

Point2d

Set Signature

set firstReferencePoint(point): void

Sets the first extension line reference point.

The coordinates are copied from the provided point.

Parameters

point

Point2d

First reference point.

Returns

void


id

Get Signature

get id(): bigint

Returns the unique identifier of the object.

Returns

bigint

Inherited from

Dimension.id


secondReferencePoint

Get Signature

get secondReferencePoint(): Point2d

Second extension line reference point.

Returns

Point2d

Set Signature

set secondReferencePoint(point): void

Sets the second extension line reference point.

The coordinates are copied from the provided point.

Parameters

point

Point2d

Second reference point.

Returns

void


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

Dimension.uuid

Methods

accept()

accept(visitor): void

Accepts an element visitor.

Parameters

visitor

ElementVisitor

Element visitor to accept.

Returns

void

Overrides

Dimension.accept